Question: Write a program that defines and tests a class called COP3014. The class resembles our own classroom. It has the following grading scheme: 3 quizzes

Write a program that defines and tests a class called COP3014. The class resembles our own
classroom. It has the following grading scheme:
3 quizzes 20 points each 20%
Midterm 100 points 30%
Final 100 points 50%
Based on the total grade of any student for the course, the letter grade of each student can be
computed as follows:
Any grade of 90 or more is an A, any grade of 80 or more (but less than 90) is a 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.
This class needs to have some member variables. The first name, last name, the Z-number, the
grades, the total grade and final letter grade are all considered to be private member variables
of this class.
The class should also have the following public member functions/procedural attributes that can
bring the objects (students of the class) to life and give them some functionality:
a. Constructor and default constructor
b. Setter functions for all the member variables
c. Getter functions for all the member variables
d. A function that computes the students total grade
e. A function that computes the students final letter grade
f. A function that checks whether the student was absent on any exam, and then
automatically fails them by giving them an F.
g. An output function that displaysthe information of any student: including theirz-number,
and grades on all assignment to the screen.
Once you generated the class definition with all its function definitions, the next step is to use
the class and generate test cases. First, construct some objects of this class. Give them names to
represent individual students.
Every student has grades for each of the work assigned to them. These grades can be initialized
in the constructor (initial value is 100, Canvas starts everyone off with 100) and later set using
the setter functions (imagine the TAs grading your work and updating the grades).
Importantly, each student gets a total grade and a letter grade which is computed for them
automatically.
The output function should be called on each student to print their information along with their
grades to the screen. The output can look as follows:
Jack Shab Z12345678
Quiz 1: 20
Quiz 2: 20
Quiz 3: 10
Midterm: 0
Final: 100
Total grade: 66.67
Final grade: F
Giorgina Gia Z98765432
Quiz 1: 20
Quiz 2: 20
Quiz 3: 20
Midterm: 98
Final: 95
Total grade: 96.9
Final grade: A
Notes:
- Equation to compute total grade:
Total grade = (quiz1 + quiz2 +quiz3)/3 + midterm *0.3 * final * 0.5
- Z-number is 8 digits long.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!