C++ Programming (5 pages)
5 Pages delivery length.
Write a C++ program to read in various types of test questions (multiple choice and True/False) from a test bank (text file), and load the questions into an array of questions. You will need to implement the following class hierarchy (given in UML):
Once the test bank has been loaded, simply iterate over the array of questions and have each question printed out to the screen.
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".
A sample test bank file is as follows:
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
10 years ago 3
Purchase the answer to view it
- answer_questions_using_c.zip
Purchase the answer to view it
- 11_siontbank1.zip
- I need help with SECTION A (all questions) that starts from page no. 6 with correct answers and proper explanations. Charts need to be plotted using JMP software only.
- Summary Hunger game
- Assignment 3: A New Strategy for Kodak
- iLab 2 of 7: Managing Project Resources (DeVry Project MGMT)
- OPS-571-Week-2-PPT
- DB wrk
- For Expert_Researcher
- STR 581 Week 1 Practice Quiz
- Multilism Software
- (edit solidworks assignment) and (after that front view and right view in hand sketch)