Write program in C++ Language The other solutions on chegg were incorrect! 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 student’s total grade e. A function that computes the student’s 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.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter12: Adding Functionality To Your Classes
Section12.2: Providing Class Conversion Capabilities
Problem 2E
icon
Related questions
Question

Write program in C++ Language

The other solutions on chegg were incorrect!

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 student’s total grade
e. A function that computes the student’s 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.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Reference Types in Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning