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).
We’re always looking for international STEM educators to join our team. If you are interested, please send us a mail and we’ll get back to you!
If you have any questions, kindly send us a mail. Don’t forget to follow and like all our social accounts to get updates on competitions!