Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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-9
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started