Question 2: If Else

Create a program to determine a user’s eligibility for a discount based on their shopping total.

 

Start by asking for the user’s name.

Then, prompt them to enter the total amount of their purchase.

Check if the total amount is greater than $100.

If it is, congratulate them on their purchase and offer a 10% discount.

If not, inform them that they do not qualify for a discount this time.

Display the final amount they need to pay after applying the discount (if applicable).

Write what you are looking for, and press enter to begin your search!