Question: Code in python 3.0 2. Program Description: Write a program that will display a final receipt for a customer order at Delicious Donut Shoppe. The
Code in python 3.0
2. Program Description: Write a program that will display a final receipt for a customer order at Delicious Donut Shoppe. The customer can keep entering amounts for each 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 while loop that will keep looping until the customer types in yes.
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
Enter 1 for Donut
Enter 2 for Milk
Enter 3 for Coffee
Enter yes to End
Enter food option now ->yes
*** 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
Get step-by-step solutions from verified subject matter experts
