PROBLEM: Write a C++ program that will display a menu consisting of 3 brands of soda, 3 kinds of sandwiches, and 3 kinds of sides. Include the price and the product code. Display it in matrix form (1 column product, 2nd column price, 3rd columnrcode) The program will prompt the user to enter the product code for soda, sandwich and sides. The program will compute the total bill and will display the summary of the orders and the total bil. In case of an invalid code entry, the summary will include a message "You have entered an Invalid code for soda/sandwich/sides", but still the total bil will be computed and displayed. SPECIFICATIONS: You may only use the codes that we studied under our lectures - All lines of codes should have a comment. Save your cpp file as Sumame - PE (Example: Pangaliman - PE.cpp) TEST CASES: The user inputs valid codes Available Products Soda Price Code Coke P50 A Royal P45 Sprite P45 Sandwiches Price Code P65 Hamburger Chicken Burger P75 2 Footlong P80 3 Sides Price Code French Fries P35 Apple Pie P30 Sundae P25 Enter valid soda code: A Enter valid sandwich code: 1 Enter valid sides code: x Result: You have the following order: Coke Hamburger French Fries Your total bill is P150 The user input 1 invalid code Available Products Soda Price Code Coke P50 A Royal Sprite P45 в P45 C Sandwiches Price Code Hamburger Chicken Burger P65 1 P75 Footlong P80 3 Sides Price Code French Fries P35 Apple Pie P30 y Sundae P25 Enter valid soda code: A Enter valid sandwich code: B Enter valid sides code: x Result: You have the following orders: Coke You have entered an invalid code for sandwich French Fries Your total bill is P85
PROBLEM: Write a C++ program that will display a menu consisting of 3 brands of soda, 3 kinds of sandwiches, and 3 kinds of sides. Include the price and the product code. Display it in matrix form (1 column product, 2nd column price, 3rd columnrcode) The program will prompt the user to enter the product code for soda, sandwich and sides. The program will compute the total bill and will display the summary of the orders and the total bil. In case of an invalid code entry, the summary will include a message "You have entered an Invalid code for soda/sandwich/sides", but still the total bil will be computed and displayed. SPECIFICATIONS: You may only use the codes that we studied under our lectures - All lines of codes should have a comment. Save your cpp file as Sumame - PE (Example: Pangaliman - PE.cpp) TEST CASES: The user inputs valid codes Available Products Soda Price Code Coke P50 A Royal P45 Sprite P45 Sandwiches Price Code P65 Hamburger Chicken Burger P75 2 Footlong P80 3 Sides Price Code French Fries P35 Apple Pie P30 Sundae P25 Enter valid soda code: A Enter valid sandwich code: 1 Enter valid sides code: x Result: You have the following order: Coke Hamburger French Fries Your total bill is P150 The user input 1 invalid code Available Products Soda Price Code Coke P50 A Royal Sprite P45 в P45 C Sandwiches Price Code Hamburger Chicken Burger P65 1 P75 Footlong P80 3 Sides Price Code French Fries P35 Apple Pie P30 y Sundae P25 Enter valid soda code: A Enter valid sandwich code: B Enter valid sides code: x Result: You have the following orders: Coke You have entered an invalid code for sandwich French Fries Your total bill is P85
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 2 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY