Question
Write program in C++ Language Please read carefully! Write a program that defines and tests a class called COP3014. The class resembles a classroom. It
Write program in C++ Language
Please read carefully!
Write a program that defines and tests a class called COP3014. The class resembles a classroom. It has the following grading scheme: 3 quizzes 20 points each 20% Mid term 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 displays the information of any student: including their z-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:
Examples: Frank Fabulous Z12345678 Quiz 1: 20 Quiz 2: 20 Quiz 3: 10 Mid term: 0 Final: 100 Total grade: 66.67 Final grade: F Gina Genius Z98765432 Quiz 1: 20 Quiz 2: 20 Quiz 3: 20 Mid term: 98 Final: 95 Total grade: 96.9 Final grade: A Notes: - Equation to compute total grade: Total grade = (quiz1 + quiz2 +quiz3)/3 + mid term *0.3 * final * 0.5 - Z-number is 8 digits long.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
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