Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ASSIGNMENT 2A Write a program called [YourName]-Assignment2A (replace [YourName] with your actual name, no spaces) that can be used in a sandwich making restaurant to

image text in transcribed

ASSIGNMENT 2A Write a program called [YourName]-Assignment2A (replace [YourName] with your actual name, no spaces) that can be used in a sandwich making restaurant to make and confirm orders The program should 1. Display the menu bellow (in the table format, no lines needed) BREAD MEAT CHEESE SAUCE DRINK CATEGORY 1 Wheat 2 Sourdough 3 Italian 4Honey Oat 5 Flatbread 1Ham 2 Turk 3 Chicken 4Tuna 5 Vegetarian 5 NONE 1 Coke 2 Sprite 3 Dr.Pepper 4 Bottled Water 5 NONE 1 American 2 Cheddar 3 Mozzarella 4 Provolone 1 Mustard 2 Vinegar 3 Ma 4 Ranch 5 NONE OPTIONS 2. Let the user select a MENU OPTION (the number for the selected option) for each CATEGORY above Enter your choice for BREAD[BREAD Enter your choice for MEAT Enter your choice for CHEESE: [CHEESE] Enter your choice for SAUCE Enter your choice from DRINK MEAT] SAUCE DRINK 3. Compute the COST of the food: sandwiches are $6 and drinks are an additional $2 Output the order confirmation (using the name/textual version for the selected option and not outputting "NONE" or the leading comma for that particular category if the selected option is NONE) and the price in this format: You ordered a sandwich on Your balance is 4. with an For example, if the user selects 1 for BREAD, for MEAT, 4 for CHEESE, 5for SAUCE, and 4 for DRINK, the output should You ordered a sandwich on with an Your balance is: $B In addition to the complete CPP code ([YourNamel-Assignment2A.cpp), you should submit a screenshot Word document YourNamel-Assignment2A. docx) that contains screenshots of your full C++ code (take multiple screenshots if the code is larger than one screen), and the full console output (take multiple screenshots if the output is larger than one window) Submit your [YourName Assignment2ACpp and YourNamel-Assignment2?.docx files under Assignment2A on eCampus

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 1 Lnai 9851

Authors: Paolo Frasconi ,Niels Landwehr ,Giuseppe Manco ,Jilles Vreeken

1st Edition

3319461273, 978-3319461274

More Books

Students also viewed these Databases questions