C++ Serendipity Booksellers Software Development Project— Part 4: C++ Making Decisions

Share it with your friends Like

Thanks! Share it with your friends!

Close

MAIN MENU:
A: Modify the mainmenu.cpp program so it validates the user’s input. If a value outside the range of 1 through 4 is entered, the program should display an error message

B: Later, in Chapter 6, you will begin merging you will begin merging all the programs you have written into the mainmenu.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

INVENTORY MENU
A: Modify the invmenu.cpp program so it validates the user’s input. If a value outside the range of 1 through 5 is entered, the program should display an error message.

B: 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.

REPORT MENU
A: Modify the reports.cpp program so it validates the user’s input. If a value outside the range of 1 through 7 is entered, the program should display an error message.

B: 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.

DOWNLOAD FILES: Serendipity4

Comments

Write a comment

*