Problem

The Main Menu A. Modify the mainmenu .cpp program so it validates the user's input...

The Main Menu

A. Modify the mainmenu .cpp program so it validates the user's input. If a value out-side the range of 1 through 4 is entered, the program should display an error mes-sage. Here is an example screen:

B. Later, in Chapter 6, you will begin merging all the programs you have written into the niaininenu.cpp file. You will now start making preparations for that. After the user input has been validated, add a switch statement that branches to a section of code, depending on which menu choice the user made. For now, the program should simply display a message like "You selected item 1" when the user enters a number. Here is an example of the screen:

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT