
C++ - Creating a menu (menuOption)
- Need assistance in creating a menu that opens up an entirely new menu once the user inputs the appropriate value (range is 0 to 13).
- The main photo shows how the initial menu should look like and each title has its own value assigned to it. Also, in the bottom of the photo is "Option : " and there, the user is suppose to input a value that will open up one of the menus.
- So if the user inputs 3, then a completely new menu populates on the user's screen (please review photo number two). And in this new populated screen it is title "3. Drop Lowest Score." There is a line below the title and under that line the user is suppose to perform an action but I have yet to create code for that (hence is why I have "case #: Challenge#(); break;").
- But if the user inputs a value that is not within the range OR a letter, then below "Option : " (on the main menu) the program must state an error message such as the following:
Option : 14
ERROR - Invalid option. Please re-enter.
Option:
So far I have the following on my Visual Studio:
int main()
{
do
{
switch (menuOption())
{
case 0: exit(1); break;
case 1: Challenge1(); break;
case 2: Challenge2(); break;
case 3: Challenge3(); break;
case 4: Challenge4(); break;
case 7: Challenge7(); break;
case 8: Challenge8(); break;
case 9: Challenge9(); break;
case 10: Challenge10(); break;
case 11: Challenge11(); break;
case 12: Challenge12(); break;
default: cout << "\t\tERROR - Invalid option. Please re-enter."; break;
}
cout << "\n";
system("pause");
} while (true);
return EXIT_SUCCESS;
}
So to sum it up, I just need assistance on having my initial menu open up an entirely new menu depending on what value the user inputs (ranging from 0 to 13)



Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 2 images

- Write the code to allow the user to enter a list of positive integers via input boxes and add each number entered to the lstNums list box. Use a Do-While or Do-Until Loop to let the user continue to enter numbers until -1 is entered. Do not add the -1 entry to the list box. In visual Basic please.arrow_forwardFill in the first blank to compute the total number of calories for all items on the menu and fill in the 2nd blank to compute the number of items on the menu:arrow_forwardFor this lab, you will be doing the following in C#: 1) Create a Home form with buttons that when clicked, will open the Account, Email, and eventually the Contact forms. The Account form should be opened in "View" mode. 2) Add code to the Login form so the Account form opens when the user clicks "Create New Account". The Account form should be opened in "Modify" mode. 3) Add code to the Login form that validates the user input before allowing the user the access the Home form. For now, just verify the user enters "user1" and "12345" for the username and password respectively.arrow_forward
- Directions: Write a program that will perform a casino game using C. Provide comments in the codeexplaining everything. See above deliverable instructions. Requirements: A menu will first appear asking the user to choose which game they would like to play. The userwill be able to choose between blackjack and roulette.The blackjack game will only play one hand at a time against the dealer. If the dealer and the user have the same,then it’s a draw. If you do not know how to play blackjack, then you might need to research the game.The roulette game will ask the user what numbers they would like to bet on. If the random number is chosen, thenthe user wins.Each game should ask the user how much money they would like to bet before the game starts. The user shouldhave a starting amount of money, once the user loses their money, the user will then need to stop playing. Expert Solutionarrow_forwardQuestion 2: Write a program to check responses of a student to the multiple-choice final exam. The final exam consists of 20 questions, and answer sheet is abedeabcdeabedeabcde. Your screen should look like: Please, write your answers: abbdeabbdeabbdeabbde Please, write your answers: or aaaaaaaaaaaaaaaaaaaa Your score is 16 out of 20. Your score is 4 out of 20.arrow_forwardChange the order of the numbered Use Case Definition steps to correspond to the following problem definition: A college provides every incoming freshman with a gift card for a choice of two specialty restaurants within the cafeteria. Students should select one specialty restaurant they want. A program opens a window that displays each specialty restaurant one picture at a time when a student clicks the corresponding button. After making a decision, the student should click the Select Restaurant button. After selecting a restaurant, the student should exit the application.arrow_forward
- woulb you please help me work on this program C# visual Studio. Given the following: Listbox Name: lstDemo private void btnDisplay_Click(object sender, EventArgs e){ //Your code goes here }Using a for loop code the statements that will display the values below in the above listbox with each one on a new line. Use the btnDisplay_Click event to place you code in. The output should look like this in the listbox:510152025arrow_forwardLanguage c++arrow_forwardA program is needed to manage sales of Super Bowl souvenir t-shirts. There are three types of shirts that we are selling: Chiefs t-shirts Eagles t-shirts Super Bowl t-shirts The t-shirts are all priced at $40 each without any customization. Input: Your program is to display a menu listing each type of shirt. It should then prompt the user for the number of Chiefs t-shirts they would like to order. After the number of Chiefs t-shirts has been entered (which may be 0), if the number was greater than 0, we will ask if they need to add lettering to the shirt (costs 1 dollar per printed letter) the program should continue displaying a prompt and reading the number to order for the other two types of t-shirts in the same way. The program also needs to keep track of the customer name and mailing address. Prompt and read the customer’s name, street address, city, state, and zip code.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





