2. A store gives a 15% discount to customers who are at least 55 years old, and
ID: 3743270 • Letter: 2
Question
2. 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. (The answers to TRY THIS Exercises are located at the end of the chapter.) TRYTHIS calculate the amount due by swotracting the discount from the sales amount calculate the discount by multiplying the sales amoant 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) Figure 1-9Explanation / Answer
enter the customers's age and the sales amount if(the customers's age is less than 55) calculate the amount by multiplying sales amount by 10% else calculate the amount by multiplying sales amount by 15% endif calculate the amount due by subtracting the discount from the sales amount display the amount due
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.