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

  What is the 2''s complement of f

Both paging and segmentation are forms of contiguous storage allocation.

  After the array is created and loaded

After the array is created and loaded, the problem is then to sort the array and print out the contents of the sorted array. Please use a separate function for the sort routine and also a separate function for the print out of the array.

  What are the advantages of using an ordered array

What are the inefficiencies associated with using an unordered array if duplicates are not allowed? What are the advantages of using an ordered array? When would using an unordered array be preferred over using an ordered array

  Five elements similar to having different variables

How is an array with five elements similar to having five different variables?

  Program to count the number of heart beat

If a human heart beats on the average of once a second, how many times does the heart beat in a lifetime of n years? (Use 365.25 for days in a year). Write a program to count the number of heart beat.

  Program that uses the attached data file as input

Please do this the easiest way possible, I am learning C++ by myself but I just don't understand input/output so this will help me understand it better.

  A password must have at least eight characters

A password must have at least eight characters. A password must consist of only letters and digits. A password should contain at least one uppercase letter. A password must contain at least two digits.

  Write an iterative function power

Write an iterative function power1 to compute xn for n >= 0 and write a recursive function power2 to compute xn by using the following recursive formulation

  Implementation of matrix multiplication

Show the matrix product and implementation of matrix multiplication. Please show me all the working and provide the answer.

  Create a global array of structures

Create a global array of structures with the following data. Each structure should store the data (Employee Table - Name, age, salary information) . Array size must be at least 10

  How to declare c++

How to declare C++

  Write a program that request a students name

Write a program that request a student's name in the subsequent form: lastName,firstName.

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