Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

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

image text in transcribed
image text in transcribed
Write a program that defines and tests a class called COP3014. The class resembles our own classroom. It has the following grading scheme: 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 (we will learn on 02/28 ) 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: Frank Fabulous - Z12345678 Quiz 1: 20 Quiz 2: 20 Quiz 3: 10 Midterm: 0 Final: 100 Total grade: 66.67 Final grade: F Gina Genius - 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

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students explore these related Databases questions

Question

What is ambush marketing?

Answered: 3 weeks ago

Question

What is the process of normalization?

Answered: 3 weeks ago