Question: Write a C++documented program to perform the role of a quiz maker. The program should randomly display True/False questions, record student's answers, keep track of
Write a C++documented program to perform the role of a quiz maker. The program should randomly display True/False questions, record student's answers, keep track of the timing, and calculate the final score out of 10 The program should work as follows: 1. Prompt the student to enter their First name and Last name (both of type string), and ID (a number of 6 digits) 2. Validate the entered ID, if the length of ID is not 6 digits, stay at step 2 and prompt the user to re-enter the correct ID After 3 failed attempts, exit the program. If the student entered a valid name and ID go to step 3 3. Randomly pick ten questions with their answers form the 4. Display one question at a time. Get the answer, then move 5. Do not accept answers other than true or false (T or F Q and A arrays to the next question. should be fine too). The answers should not be case sensitive 6. When the user is done with the quiz, print out a report (On screen) with the below information in it First name and Last name .Score Elapsed time . Student's answers and the correct answer 7. Prompt the student to enter Q to exit the program, or to enter S to clear the screen and start a new quiz for another student
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
