The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 1 Day Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
Restaurant Orderer:
Create a Python Program to automate ordering at a restaurant that works as follows:
The program first prints out a welcome statement
Next, the program will ask how many guests there are.
Subsequently the program will take the order for each guest. Each guest will be asked whether or not they would like to order each one of the 5 dishes in the restaurant menu. The user must type a zero (0) if she/he does not want that dish and a one (1) if she/he does want to have that dish. After reading the choices, the program will print the total cost of the dishes, the taxes, and the total amount owed by that user.
You get to decide the dishes, cost of each dish, and the tax rate. It is suggested you include 1 appetizer, 3 main dishes, and a dessert. They will be part of the program.
Hint: Develop the program incrementally. You may want to develop and test the program after just the welcome statement, then with one user ordering one thing, one user ordering all 5 items, and then for a group of users. Add readable comments to your program - there should be a comment at the top explaining what the program does. Please make sure you submit a working program, even if it is not complete, to get partial credit.
.Â
Example of a completed program output:
Welcome to Restaurant Yummy Food!
How many people in your party?: 2
Type 1/0 if you want or not one of the following dishes:
Edamame ($2.00): 0
Alaskan Salmon with garlic ($12.00): 1
Grilled Chicken with Mashed Potatoes ($8.00): 0
Meatloaf English Style ($11:00): 1
Chocolate Chip Cookies ($3.00): 1
Total Cost of Food Items: $26.00
Taxes (8%): $2.08
Total Cost with Taxes: $28.08
Type 1/0 if you want or not one of the following dishes:
Edamame ($2.00): 1
Alaskan Salmon with garlic ($12.00): 1
Grilled Chicken with Mashed Potatoes ($8.00): 0
Meatloaf English Style ($11:00): 1
Chocolate Chip Cookies ($3.00): 0
Total Cost of Food Items: $25.00
Taxes (8%): $2.00
Total Cost with Taxes: $27.00
Attachments:
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly