Question: Write a C++ program to read in various types of test questions (multiple choice and True/False) from a test bank (text file), The test bank

Write a C++ program to read in various types of test questions (multiple choice and True/False) from a test bank (text file), The test bank (text file) will have the following format: Line 1 will be an integer value, indicating how many questions in the file Each question will start with a line that starts with either "MC" or "TF" followed by a space and then the point value of the question. The next line will be the actual question. If the question was True/False, the following line will be the answer, either "True" or "False" If the question was multiple choice, the following line will be an integer value indicating how many choices will be provided for that question. The following lines will be the choices. There will never be more than 6 choices. The final line following the choices will be the answer: "A" or "B" or "C" or "D" or "E" or "F". 3 TF 5 There exist birds that cannot fly? true MC 10 Who was the President of the USA in 1991? 6 Richard Nixon Gerald Ford Jimmy Carter Ronald Reagan George Bush Sr. Bill Clinton E TF 10 The city of Boston hosted the 2004 Summer Olympics? false

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!