Create a python program that will compute the orders for a


Create a Python program that will compute the orders for a Takeaway Coffee shop. The program will show a summary of the total order amount and the average amount per order. The user will have the option of continuing by adding additional orders.

An order set must contain one item from Main Menu and optionally additional items. Each order contains a number of identical order sets. The subtotal is the total amount of an order. The program should include some validation to check for missing data.

If any required input is missing for the calculation, the program should display a message showing the appropriate error message and not carry out the calculation.

The prices of the Items are saved in a file. Name the file as "prices.txt".

The prices of the selling items are listed below:

Main Menu Price Additional ItemPrice
Banana bread $4.50 Water
$2.00
Walnut Bread $5.50 Latte (Any)
$3.50
Chocolate Muffin $3.00 Ice Cream
$2.50
Blueberry Muffin $3.50 Juice
$2.00

If the Discount voucher box is given, the customer gets 5% discount of the subtotal amount.

(Looking clear, easy to understand and easy to use). For example, your UI could look like the following:
Start Running:
*** Coffee Now Take Away - Main Menu ***
1. Banana Bread
2. Walnut Bread
3. Chocolate Muffin
4. Blueberry Muffin
Choose menu item: __
Quantity: __
*** Coffee Now Take Away - Additional Items ***
1. Water
2. Latte(Any)
3. Ice Cream
4. Juice
Choose additional item: __
Quantity: __
*** Coffee Now Take Away - Discount Voucher ***
Customer has a discount voucher (Y/N): __
After 3 orders:
***Coffee Now Take Away - Summary ***
Order Sub Total: $23.40
Total Order: $74.75
Average Order: $24.92 per order

Solution Preview :

Prepared by a verified Expert
Python Programming: Create a python program that will compute the orders for a
Reference No:- TGS02783276

Now Priced at $50 (50% Discount)

Recommended (94%)

Rated (4.6/5)