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

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

The second portion (instruction shown below) which is the actual C++ program is needed by this Saturday. 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: EM131323867

Questions Cloud

Which the fund invests increase in value : You purchased 1,000 shares of the New Fund at a price of $20 per share at the beginning of the year. You paid a front-end load of 4.25%. The securities in which the fund invests increase in value by 16.75% during the year. The fund's expense ratio is..
Why are the money and capital markets important : Why are the money and capital markets important? What factors characterize the instruments of the money and capital markets? What are the two ways money can be exchanged in the economy?
What are advantages and disadvantages of being in such role : How you would like to be in a position that involves performing these types of tasks? What are the advantages and disadvantages of being in such a role?
How did management overcome that resistance : Since change in the workplace is constant, a good leader knows how to implement and lead effective change. A description on p. 418 and 419 explains how change affects top management, middle management, and frontline employees. Read this section, a..
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.
Find the maximum normal and shear stresses in beam : A linearly increasing load sits on a brass rail of length L. Find the centroid (4) of the cross section below. Using successive integration, find the maximum bending moment (5) and deflection (8) in the rail and their respective locations along th..
Design a program that asks the user to enter a string : Sum of Digits in a String Design a program that asks the user to enter a string containing a series of single digit numbers with nothing seperating them.
Why did you decide on this profession-health counselor : Part of developing your clinical mental health counselor identity is exploring your motivations for entering this profession. Why did you decide on this profession? What experiences have you had in the past that make you think this profession woul..
Calculate that the correct answer : For example, if you calculate that the correct answer is 514 mm Hg, simply type "510" in the box without the quotation marks (") or units as part of your answer.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Problem 1greatest common divisor write code for a recursive

problem 1greatest common divisor write code for a recursive implementation of euclids algorithm for searching the

  What is the output of the following code

What is the output of the following code

  Define a relation rf by the rule

Consider three sets A, B, and C, where A has 7 elements, B has 5 elements, and C has 2 elements. How many (ternary) relations are there on the sets A, B, C?

  Write function that calculates the pay amount

Write a second function that calculates the pay amount. If the salesperson owes money, the return amount from the function is a negative number.

  What''s a more efficient way to write

What's a more efficient way to write this function for a matrix? This one has to go through all the numbers, but that would take too long. r_num is row and c_num is column

  Write a c program to find the 2s complement

Write a C program to find the 2's complement of a binary number.

  Write a program using a function and a switch statement

Write a program using a function and a switch statement. The user should be prompted to enter a number in main.

  Implement the delivery company

Implement the delivery company using the classes given in the class diagram above.

  Rewrite the overloaded input operator for the ratio class

Rewrite the overloaded input operator for the Ratio class so that, instead of prompting for the numerator and denominator, it reads a fraction type as "22/7".

  Define the following pointer and array

Define the following Pointer and Array. Answer the following question and provide an example: What is the difference between a one-dimensional and a two-dimensional array

  Lab11

ltbrgt

  Compute square roots to a desired degree of accuracy

write a program which will compute square roots to a desired degree of accuracy.

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