Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Python Expert

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

Python, Programming

  • Category:- Python
  • Reference No.:- M92826460
  • Price:- $50

Priced at Now at $50, Verified Solution

Have any Question?


Related Questions in Python

Homework -this homework will have both a short written and

Homework - This homework will have, both a short written and coding assignment. The problems that are supposed to be written are clearly marked. 1) (Written) Make heuristics Describe two heuristics for the slide problem ...

Question write a python program with a graphical user

Question: Write a python program with a graphical user interface that will allow a user to create a custom pizza which they wish to order. At minimum, the user should be able to choose the size of the pizza, the type of ...

Project reconnaissance and attack on ics

Project: Reconnaissance and Attack on ICS NetworksEnvironment Setup The second mini project will be based on Industrial Network Protocols, specifically the Modbus protocol. Please follow the instructions carefully to set ...

Questionwhat is a python development frameworkgive 3

Question What is a python development framework? Give 3 examples python development framework used today. and explain which development framework is used in which industry.

Question write a simple python program that takes use

Question: Write a simple python program that takes use inputs as non-zero digits and converts them into binary form. The response must be typed, single spaced, must be in times new roman font (size 12) and must follow th ...

Assignment1 utilising python 3 build the following

Assignment 1. Utilising Python 3 Build the following regression models: - Decision Tree - Gradient Boosted Tree - Linear regression 2. Select a dataset (other than the example dataset given in section 3) and apply the De ...

Question a software company sells a package that retails

Question : A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Quantity Discount 10 - 19 20% 20 - 49 30% 50 - 99 40% 100 or more 50% Write a program usi ...

Simple python traffic lightswrite a program that simulates

Simple Python (Traffic lights) Write a program that simulates a traffic light. The program lets the user select one of three lights: red, yellow, or green. When a radio button is selected, the light is turned on, and onl ...

A software company sells a package that retails for 99

A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Quantity Discount 10 - 19 20% 20 - 49 30% 50 - 99 40% 100 or more 50% Write a program using python t ...

Question research pythons dictionary data type dictdiscuss

Question : Research Python's dictionary data type (dict). Discuss its interface and usage. Include examples. Discuss practical applications of dictionaries.

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As