Write cpp program that is menu-driven that allows for choice

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

1. Write a C++ program that is menu-driven that allows for the following menu choices:

Load an exam: Loading an exam should prompt the user for an exam file. If no file exists, it should allow the user to specify a different file. Upon a successful load of an exam, 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 exam will be created in Week 5). Upon displaying the exam 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 exam that will hold the actual exam and provide behavior such as loadExam and also displayExam.

Reference no: EM13963178

Questions Cloud

Million in debt outstanding : The firm has $100 million in debt outstanding and 50 million shares outstanding, selling for $10 per share. The firm currently has net income of $90 million and depreciation charges of $10 million. It also has the following projects available:
Calculate the frequency of oscillation and explain it : The figure attached shows the Armstrong oscillator. A transformer with two secondary winding's has been use, one to give feedback and one to give the oscillator's output
Write a java program that repeatedly enters a date : Write a Java Program that repeatedly enters a date and prints the day of the week that corresponds to each input date. Use a Calendar class object to find the day of week.
Marginal interest rate on the debt : GL Corporation, a retail firm, is making a decision on how much it should pay out to its stockholders. It has $100 million in investible funds. The following information is provided about the firm:
Write cpp program that is menu-driven that allows for choice : Write a C++ program that is menu-driven that allows for the following menu choices: Load an exam: Loading an exam should prompt the user for an exam file.
Firm current and projected income statement : JLChem Corporation, a chemical manufacturing firm with changing investment opportunities, is considering a major change in dividend policy. It currently has 50 million shares outstanding and pays an annual dividend of $2 per share. The firm curren..
How far is the coin from the side of the container : A beam of light with red and blue components of wavelengths 670 nm and 425 nm, respectively, strikes a slab of fused quartz at an incident angle of 30 degree. On refraction, the different components are separated by an angle of 1.31 X 10^-3 rad. I..
Dividend payout compare to the industry : The following is a regression of dividend payout ratios on the risk and ln(market capitalization: in millions) of chemical firms: Dividend Payout Ratio = 0.14 + 0.05 [ln (Market Capitalization in millions)] - 0.1 (Beta) Harman Chemicals has a mar..
How can people be granted access to an efs-encrypted file : From what security risks does EFS offer protection, and from what risks does it not offer protection? With some detail, how can multiple people be granted access to an EFS-encrypted file?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program to simulate lines in a grocery store

Write a program to simulate lines in a grocery store. We want to determine what line configuration is best

  Uses classes with linked list

Turning a work in C++ that uses classes with a linked list to a no classes project

  Program should read in the file and place periods

Create a C++ program that will read this file and correct errors in the English syntax of the file. The program should Read in the file and Place periods at the end of all sentences throughout this file

  Develop a data representation for the current position

Develop a data representation for the current position of the ball. The position is best described with a pair of positive integers. Develop a data representation for velocity of the ball. You may assume that the ball always moves exactly 10 pixe..

  Program that allows the user to enter two numeric values

Prepare a program that allows the user to enter two numeric values. Then let the user enter a single character as the desired operation, for example 'A', 'a', or '+' for add.

  Checking for a palindrome

For this Programming Activity, you will write a GUI-based program checking for a Palindrome.Turn to Page 959 in your text.Complete Programming Activity 1: Checking for a Palindrome.

  Identify the base case.

What valid values can be passed as parameters to the function mystery?

  Called cbankaccount

Create a base class, called CBankAccount, and two additional classes (each derived from CBankAccount), called CSavingsAccount and CCheckingAccount.

  Detailed proposal of the hardware and types

Write a detailed proposal of the hardware and types of NICs you recommend they must purchase to make this project a success.

  Function definitions of the pixel class constructor

Write client code to print out the current X and coordiantes and the status of the first pixel

  Differentiate between declaration and definition in cpp

Differentiate between declaration and definition in C++. What is cloning? 3) Describe the main characteristics of static functions.

  Sum of all odd numbers between a and b

The sum of all odd numbers between a and b (inclusive). Where a and b are read in by the user - Can you find the error in this code.

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