Question: Write a C++ program that is menu-driven that allows for the following menu choices: Load an exam: Loading an test should prompt the user for
Write a C++ program that is menu-driven that allows for the following menu choices:
Load an exam: Loading an test should prompt the user for an test file. If no file exists, it should allow the user to specify a different file. Upon a successful load of the test, the user should be presented with the menu again.
Display exam: The program should simply display each question, its point value, and the answer to the screen. (The functionality of actually taking the test will be created in Week 5). Upon displaying the test to the screen, the user should be presented with the menu again.
Quit: Quit the program gracefully by displaying a "thank you" message to the user, and ensure that all files have been closed along with any other housekeeping that should be done as your program shuts down.
Consider creating a class test that will hold the actual test and provide behavior such as loadTest and also displayTest. This class will be enhanced in Week 5.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
