Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a program in python that automates a restaurant's billing system. The program will: A) begin by printing a list of available menu items and

write a program in python that automates a restaurant's billing system. The program will:
A) begin by printing a list of available menu items and prices
B) allow customer to select more than one menu item
C) calculate & print the receipt of the customer. The receipt should include a receipt number (4 random digits), the list of all items ordered, and the amount due
D) program shoudl return to the menu once receipt is printed to process next order
E) program should keep track of all bills & receipts and print them all as well

Restaurant has the following menu items:
1. Plain Egg                     $1.45
2. Bacon and Egg           $2.45
3. Muffin                        $0.99
4. French Toast               $1.99
5. Fruit Basket                 $2.49
6. Cereal                         $0.50
7. Coffee                         $0.50
8. Tea                             $0.75

**there is a sales tax of 5 percent**

customer will be asked to enter their selection as one single string related to the menu items that they want (EX: 578 for an order of fruit basket, coffee, and tea). After the order is placed, program should print receipt for customer. The program should store the receipt of the customer not in a file and return to the program menu to take the next order. If custoomer hits the enter key without placing a new order, program should print all receipts for all orders then exit the program. EX: if two-three orders have been placed, the program shoudl print all receipts before exiting the program. Program must contain these functions:
A) Menu: prints all items available (listed above)
B) Receipt: prints customer receipt & also takes the customer's entry
C) AllReceipts: takes an object containing all orders placed and prints receipts

Step by Step Solution

There are 3 Steps involved in it

Step: 1

This seems like a fun and engaging program to implement We can structure this program by creating classes for Menu Receipt and AllReceipts Utilizing P... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems Analysis And Design

Authors: Alan Dennis, Barbara Wixom, Roberta M. Roth

7th Edition

1119496489, 978-1119496489

More Books

Students also viewed these Programming questions

Question

understand possible effects of ethnicity;

Answered: 1 week ago

Question

Create several guidelines for developing good documentation.

Answered: 1 week ago