A store gives a 15% discount to customers who are at least 55 years old, and a

Question:

A store gives a 15% discount to customers who are at least 55 years old, and a 10% discount to all other customers. Using only the instructions shown in Figure 1-9, write an algorithm that displays the amount of money a customer owes. Be sure to indent the instructions appropriately. 

Figure 1-9

calculate the amount due by subtracting the discount from the sales amount
calculate the discount by multiplying the sales amount by 10%
calculate the discount by multiplying the sales amount by 15%
display the amount due
else
end if
enter the customer’s age and the sales amount
if (the customer’s age is less than 55)

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: