Create a Python program that will compute the orders for a Takeaway 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 box showing the appropriate error message and not carry out the calculation.
The prices of the selling items are listed below:
Main Menu Price Additional Item Price
Superburger $6.50 Chips $3.00
Hamburger $4.50 Soft Drink $2.00
Mini Pizza $5.00 Ice Cream $2.50
Meat Pie $4.00 Juice $3.00
If the Discount voucher box is given, the customer gets 10% discount of the subtotal amount.
You must make use of files by storing the history of product names and their prices for orders received into a file.
Design your user interface to fit the above requirements. Make sure that your interface is user-friendly (Looking clear, easy to understand and easy to use). For example, your UI could look like the following:
*** FastTrain Take Away - Main Menu ***
4. Meat Pie
Choose menu item: __
*** FastTrain Take Away – Additional Items ***
2. Soft Drink
3. Ice Cream
Choose additional item: __
*** FastTrain Take Away – Discount Voucher ***
Customer has a discount voucher (Y/N): __
After 3 orders:
*** FastTrain Take Away – Summary ***
Order Sub Total: $23.40
Total Order: $74.75
Average Order: $24.92 per order
7 freelancere byder i gennemsnit $26 på dette job
Hi, I have read the requirements carefully. I am a python developer with 5+ years of experience. please give me this opportunity to work on this project. I will be happy to assist you. Thanks,
Hi, Dear How are you doing? I am very interested in your project. I am always ready for you. I wish you contact me as soon as possible. Let us discuss your project on chat in detail. Thanks for your regards.