Question
Python 3.0 code 3. Program Description: Write a program that will display a final receipt for a customer order at Delicious Donut Shoppe. The customer
Python 3.0 code
3. Program Description: Write a program that will display a final receipt for a customer order at Delicious Donut Shoppe. The customer can enter 3 amounts for 3 of the following menu items they select:
Enter 1 for Donut
Enter 2 for Milk
Enter 3 for Coffee
The price for Donuts = $1.25
The price for Milk = $1.00
The price for Coffee = $1.50
Tax = $.06
The program will keep track of how many they order of each item and the total price for each item and the total order price. You will use a python for loopthat will only allow them to enter 3 items total.
Results from running Python Code:
Enter 1 for Donut
Enter 2 for Milk
Enter 3 for Coffee
Enter yes to End
Enter food option now ->1
Enter the number of donuts you would like to order ->5
Enter 1 for Donut
Enter 2 for Milk
Enter 3 for Coffee
Enter yes to End
Enter food option now ->2
Enter the number of milks you would like to order ->6
Enter 1 for Donut
Enter 2 for Milk
Enter 3 for Coffee
Enter yes to End
Enter food option now ->3
Enter the number of Coffees you would like to order ->7
*** Delicious Donut Shoppe Receipt ***
5 donuts: $ 6.25
6 milks: $ 6.00
7 coffees: $ 10.50
Total: $ 24.11
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started