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)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education