Figure 1 shows a decision tree that was used by a programmer in a company to compute the discount offered to customers. Use it to answer the question that follows.
Write a Pascal program that prompts a user to enter the amount spent by the customer. The program then computes and displays the discount offered using the logic depicted In Figure 1