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)

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 15RQ
icon
Related questions
Question

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) 

CMPR121 Chapter 9: Pointers (page 553-555)
1. Array Alocator
2. Test Scores #1
3. Drop Lowest Score
4. Test Scores #2
5. Pointer Rewrite
6. Case Study Modification #1
7. Case Study Modification #2
8. Mode Function
9. Median Function
10. Reverse Array
11. Array Expander
12. Element Shifter
13. Movie Statistics
0. Quit
Option :
Transcribed Image Text:CMPR121 Chapter 9: Pointers (page 553-555) 1. Array Alocator 2. Test Scores #1 3. Drop Lowest Score 4. Test Scores #2 5. Pointer Rewrite 6. Case Study Modification #1 7. Case Study Modification #2 8. Mode Function 9. Median Function 10. Reverse Array 11. Array Expander 12. Element Shifter 13. Movie Statistics 0. Quit Option :
3. Drop Lowest Score
Transcribed Image Text:3. Drop Lowest Score
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning