Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Write a program that display the restaurant menu, lets user make an order, and dis- plays the total price of

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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: kenneth e. kendall, julie e. kendall

8th Edition

135094909, 013608916X, 9780135094907, 978-0136089162

More Books

Students also viewed these Programming questions

Question

understand possible effects of lifestyle risk factors;

Answered: 1 week ago

Question

Draw a context-level data flow diagram for Perfect Pizza.

Answered: 1 week ago