Question: Create an app that calculates the total amount based on the type of customer and subtotal amount. If the Customer type is R: If
Create an app that calculates the total amount based on the type of customer and subtotal amount. If the Customer type is R: If the Subtotal is greater than or equal to 250, the Discount percent is 25%. . . . If the Subtotal is greater than or equal to 100 and less than 250, the Discount percent is 10%. If the Subtotal is less than 100, the Discount percent is 0%. If the Customer type is C: If the Subtotal is greater than or equal to 250, the Discount percent is 30%. If the Subtotal is less than 250, the Discount percent is 20%. The program uses switch..case to chose the customer. The program displays the discounted amount and the total. Allow the user to try again the application using a while loop. Here is a sample run: Sample: Enter customer type: R Enter subtotal: 150 Discount percent: 10% Discounted Amount: $15.00 Total: $135.00 Do you want to try again (yes/no): no Thanks for using the application...
Step by Step Solution
3.43 Rating (153 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
