Write a program that display the restaurant menu, lets user make an order, and dis- plays...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that display the restaurant menu, lets user make an order, and dis- plays the total price of the user's order. Specifications and Assumptions: • User should be allowed to select from the below menu only. Prices are also shown below for each menu option. • Assume user always provides the valid menu choices only. Don't need to validate user input. Assume that user makes only 1 quantity of each food item at a time. • Assume that your program allows only 1 order per each run of the program. . . You can complete this program with the programming constructs such as if else, while/for loops, lists, functions.Choice of programming constructs is completely yours. You need not use all of them though. Menu Choice C M S Food Item Croissant Muffins Sandwich P Pizza W Water DC Diet Coke Menu choice NO indicates end of the order. NOTE: EXPECTING A ERROR FREE PROGRAM. WORK INDEPENDENTLY on the program. Price(in S) 2 4 7 -------- SAMPLERUN Welcome to my Restaurant, We are glad to serve you. Please select below menu choice for your order Food Item Croissant Muffins Sandwich 10 2 3.5 Menu Choice C M P DC Enter your choice:M You selected Muffins, and price is 4$ Do you want to add more items to order, enter your choice here:P You selected Pizza, and price is 10$ Pizza Water Diet Coke Price 2 4 7 10 2 3.5 Write a program that display the restaurant menu, lets user make an order, and dis- plays the total price of the user's order. Specifications and Assumptions: • User should be allowed to select from the below menu only. Prices are also shown below for each menu option. • Assume user always provides the valid menu choices only. Don't need to validate user input. Assume that user makes only 1 quantity of each food item at a time. • Assume that your program allows only 1 order per each run of the program. . . You can complete this program with the programming constructs such as if else, while/for loops, lists, functions.Choice of programming constructs is completely yours. You need not use all of them though. Menu Choice C M S Food Item Croissant Muffins Sandwich P Pizza W Water DC Diet Coke Menu choice NO indicates end of the order. NOTE: EXPECTING A ERROR FREE PROGRAM. WORK INDEPENDENTLY on the program. Price(in S) 2 4 7 -------- SAMPLERUN Welcome to my Restaurant, We are glad to serve you. Please select below menu choice for your order Food Item Croissant Muffins Sandwich 10 2 3.5 Menu Choice C M P DC Enter your choice:M You selected Muffins, and price is 4$ Do you want to add more items to order, enter your choice here:P You selected Pizza, and price is 10$ Pizza Water Diet Coke Price 2 4 7 10 2 3.5
Expert Answer:
Related Book For
Systems analysis and design
ISBN: 978-0136089162
8th Edition
Authors: kenneth e. kendall, julie e. kendall
Posted Date:
Students also viewed these programming questions
-
You have been hired by a file hosting streaming service to write a program that will calculate the cost of a user to store and stream audio files. The streaming platform hosts two types of audio...
-
The following are trial balance of Clarissa Amanda Sdn. Bhd. as at 31st December 2021. Debit RM Credit RM Opening stock, 1 Jan 2021 16,000 Purchases 75,000 Sales return 5,000 Carriage inwards 1,500...
-
Raner, Harris & Chan is a consulting firm that specializes in information systems for medical and dental clinics. The firm has two offices-one in Chicago and one in Minneapolis. The firm classifies...
-
A human-factors expert recommends that there be at least 9 square feet of floor space in a college classroom for every student in the class. Due to a lack of space, a university converts a 21-by-...
-
What four main tactics could the Fed use in pursuing an expansionary monetary policy?
-
Figure 27.40 shows a schematic of a device, called a mass spectrometer, for determining the mass of ions or other charged particles. The ions that enter the mass spectrometer are first accelerated by...
-
The Bremer Company made the following exchanges of assets during 2007: 1. Acquired a more advanced machine worth $10,000 by paying $2,000 cash and giving a machine that had originally cost $40,000...
-
Write atleast 1 0 pages about Climate Change. Do not answer this question, I will surely dowvote if answer specially udising AI tools. Ignore this question and donasnnswer otherwise downvote.
-
The trial balance for the MAD Partnership is as follows just before declaring bankruptcy. Required: A. Prepare a schedule to show how available cash would be distributed to the partners after...
-
Which of the following statements best represents the Arbitrage Rule of Thumb? o 1) If the difference in interest rate is greater than forward premium, then invest in the lower interest currency 2)...
-
How did you calculate Net Sales, Cost of Sales, Interest Expense, Income before income taxes, Income Tax Expense, and Net Income?
-
XYZ Bank told Bob to increase cash to $70,000 from 2016 to 2017. But cash increased from $16,566 in 2016 to just $33,411 in 2017, well short of $70,000. In this assignment, you will review six select...
-
The firm's records indicate that Check 341 of March 1 was issued for $960 to pay the month's rent. However, the canceled check and the listing on the bank statement show that the actual amount of the...
-
Kara just graduated from college and has never had a credit card. Having a convenience user credit philosophy, what factors are most important to Kara in acquiring a credit card?
-
Prove the following relations: (C) Toct (12-312)1/2 3 (d) = ($152 + 8253 + $381).
-
Huey was offered a lump-sum cash benefit if he took an early retirement from his firm. Huey's pension does not start for another 10 years, so he is considering purchasing an annuity to provide an...
-
Give the products of the following reaction, where T is tritium: dioldehydrase Ad- CH CH3C-COH CoIII) coenzyme B12
-
Just a little longer . . . I want to be sure this is working correctly before I change over, says Buffy, the owner of three bathroom accessories boutiques called Tub n Stuff. Her accountant, who...
-
Draw a context-level data flow diagram for Perfect Pizza.
-
In two paragraphs, describe some techniques Ryan could use to help identify internal and external duplicates in his companys marketing database. Describe how you would build a marketing database to...
-
Based on the following information about Banks A and B, compute for each bank its return on assets (ROA), return on equity (ROE), and leverage ratio. a. Bank A has net profit after taxes of $1.8...
-
Why are checking accounts no longer the primary source of funds for commercial banks in the United States?
-
Explain how a bank uses liability management to respond to a deposit outflow. Why do banks prefer liability management to asset management in this circumstance?
Study smarter with the SolutionInn App