CS1H du Tuc1:59
Project 1: Supermarket (100 points)
Objectives:
- Practice getting, validating, and processing user input
- Practice with conditionals and while loops
- Practice with math operations
Supermarket Menu Program
Using the provided bank_ATM.py program as an example, write a program supermarket.py that does the following:
1. Print the following menu (5 pts):
Welcome to the csii0 Supermarket!
1. Potatoes ($0.25 per potato)
2. Tomatoes ($1.25 per tomato)
3. Apples ($0.75 per apple)
4. Mangoes ($1.75 per mango)
2. When the customer enters a choice between 1-4, ask how many of the item they want. For example, if the customer picks 2 (tomatoes), ask "How many tomatoes?" (10 pts)
3. When the user chooses 5 (checkout), display the total cart amount owed by the customer. (10 pts)
4. Next, ask the customer to enter the amount of money they are paying for the fruits and round it to the nearest cent. Then compute the number of $5, $1, quarters, dimes, nickels, and pennies required to make the change. (20 pts)
5. Finally, prompt the user for input. (20 pts)
Note: Mathematical rounding is acceptable.
Submitting:
Upload supermarket.py with a readme.txt file to Project 1 in Canvas.