Write cpp program to read in various types of test questions

Assignment Help C/C++ Programming
Reference no: EM131251203

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):

(This link should show the class hierarchy, please let me know if it doesn't) 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.

Reference no: EM131251203

Questions Cloud

Analyze the prioritizing process : Analyze the prioritizing process at D. D. Williamson. Suggest two (2) recommendations to improve the prioritizing process. Create a scenario where the implemented process at D. D. Williamson would not work.
Sole proprietor who performs excavating services : In July of 2009, Mr. Mann, a sole proprietor who performs excavating services, purchased and put to use for business a piece of heavy equipment for $36,500. This piece of equipment was depreciated using the MACRS 150% DB method of depreciation over t..
Corporate social responsibility : 1. In terms of corporate social responsibility, discuss three ways that a company can focus on the needs of its stakeholders without neglecting its shareholder obligations.
Compute the gross pay for outbound sales representatives : Elemarketers receive $15 commission on all new customers they sign up for phone service through Birch Phones. Each telemarketer works 40 hours. Because these employees are paid solely on commission, the employer must ensure that they earn the federal..
Write cpp program to read in various types of test questions : 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.
Examples of political risks on economic systems : What are some micro and macro examples of political risks on economic systems?
What are the possible issues if your os automatically mounts : What is the significance of the Chain of Custody PDF form from Adepto? Why is it needed? What are the possible issues if your OS automatically mounts your drive prior to creating your forensic duplicate?
Unethical decision or exhibited unethical behavior : Think back to a time when you had a supervisor or coworker who you believe made an unethical decision or exhibited unethical behavior. List at least two reasons why you think people are tempted to act unethically. Describe the most effective safe ..
What will your annual loan payment be : Dinero Bank offers you a five-year loan for $50,000 at an annual interest rate of 7.5 percent. What will your annual loan payment be?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd