Problem: Write a grading program for a class with the following grading policies: 1. there are two quizzes, each graded on the basis of 10
Problem:
Write a grading program for a class with the following grading policies:
1. there are two quizzes, each graded on the basis of 10 points.
2. there is one midterm test and one final test, each graded on the basis of 100 points.
3. the final test counts for 50% of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (do not forget to normalize the quiz scores. they should be converted to a percentage before they are averaged in.)
Any grade of 90 or more is an A, any grade of 80 or more (but less than 90) is B, any grade of 70 or more (but less than 80) is a C, any grade of 60 or more (but less than 70) is a D, and any grade below 60 is an F. The program will read in the student's scores and output the student's record, which consists of two quiz and two exam scores as well as the student average numeric score for the entire course and final letter grade. Define and use a structure for the student record.
Guidelines from Teacher
private member variables to hold the three values of a CD account
a default constructor that initializes the private member variables
a constructor that accepts three initial values for the private member variables
member functions to return the current value of each of the private member variables
a member function that calculates and returns the account balance at maturity based on the values in the three member variables.
a member function that accepts an argument of type istream and reads the three member values from the open input stream
a member function that accepts an argument of type ostream and writes a nicely formatted summary of the account values to that open output stream
For the sake of this assignment, your test program should only use cin to read and cout to write. Please write your input/output member functions so that they could accept an open file stream, but you don't need to demonstrate reading from or writing to files.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started