Question
In C++ your job is to complete the listing of the main menu and three sub menus . More clearly, you will write loops and
In C++ your job is to complete the listing of the main menu and three sub menus. More clearly, you will write loops and show the main menu to the user when the program first starts and then allow the user to make a choice to go to the selected sub menu.
1. The user should be able to make a selection to go back to the main menu when selecting "Go back to main menu" option from a sub menu.
2. The only way for the user to exit the program is to select "Exit" menu item in the main menu.
sample run
Main Menu:
1. Department Menu
2. Staff Menu
3. Patient Menu
4. Exit the program
Enter a choice (1-4):
4 Thank you for using my program
Press any key to continue . . .
3. If the user selects "Add" , "List", etc. menu items in a sub menu, your program will do nothing for now. Later, you will modify your code to actually do the selected task.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started