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.
Please display the amount of their purchase, subtract the discount and display the result.