Write a program that asks user the total amount of purchase


Problem:

Question- Write a program that asks a user the total amount of their purchase in a store and calculates their discount based on the following rule: If they spend $50, give them a 10% discount If they spend $75, the discount is 15% If they spend $100, the discount is 25% Finally, if they spend $250 or more, they get 40% off. Display the amount of their purchase, subtract the discount and display the result.

 

Please describe the code of a program that asks a user the total amount of their purchase in a store.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program that asks user the total amount of purchase
Reference No:- TGS0892858

Expected delivery within 24 Hours