Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using Microsoft Visual Studio C++ Programming, create a menu that does the follo

ID: 3872720 • Letter: U

Question

Using Microsoft Visual Studio C++ Programming, create a menu that does the following: Use structs to store names, prices, and quantities for all items in your menu Read in menu item information from separate input files and store that information within your struct variables (Example: appetizer information stored into appetizer variables) Create a main menu system which gives the user options for purchase: Appetizers, Main Courses, Desserts, and Drinks When a user selects an option, such as drinks, then the list of items read in from the file is displayed on the screen in a sub-menu . . The user is given an option to choose items from the sub-menu for whatever he/she wants to purchase As the user selects items, a current subtotal is displayed within the sub-menu and in the main menu as well As the user selects items, your program will have each item's quantity stored within a struct varible (example Cheese Dip has a quantity of 5 available) Once the quantity has been reduced to 0, the item will no longer be for sale, but will have a **sold Outmessage beside it You may not sell more items than you have in stock (Example: if you have 2 steaks in stock, you cannot allow the customer to purchase 25) If the user selects that is sold out, the user is given a message saying the item is not available and will be given a 10% discount on any remaining item in that category Once the user has finished selecting items for purchase, the subtotal, tax (10% for easy math), and total will be displayed on the screen Get the tip amount after the total is displayed · The customer is prompted to enter payment, if the user enters a payment greater than or equal too than the total due, then the change is displayed If the user enters a payment less than the total, then the user is prompted to pay more money to meet the required total owed Once the total has been paid, then some message is displayed thanking the customer for eating at the restaurant Absolutely no redundant code in your program! You are far enough along in your programming classes now to recognize where functions would be needed Format the code so that it is clean, neat and easy to read. Braces should line up as well. I will count off a significant amount of points for messy code If you cannot solve any part of the above programming problem before the due date (example discount), submit your incomplete, but working, program anyway for partial credit.

Explanation / Answer

ANSWER::

#include <iostream>
using namespace std;
int main(void)
{
char selection;
cout<<" Menu";
cout<<" A - Append";
cout<<" M - Modify";
cout<<" D - Delete";
cout<<" X - Exit";
cout<<" Enter selection: ";
cin>>selection;
switch(selection)
{
case 'A' :
case 'a' :{cout<<" To append a record ";}
break;
case 'M' :
case 'm' :{cout<<" To modify a record";}
break;
case 'D' :
case 'd' :{cout<<" To delete a record";}
break;
case 'X' :
case 'x' :{cout<<" To exit the menu";}
break;
default : cout<<" Invalid selection";
}
cout<<" ";
return 0;
}