Question: In c + + using an array for the grades. Create a program using Inheritance implementing the following classes: Course ( base class ) Every
In c using an array for the grades.
Create a program using Inheritance implementing the following classes:
Course base class
Every course has a course idExample: CSC
MathClass
ComputerScienceClass feel free to change the name
Your program should complete the following tasks:
The ComputerScienceClass and MathClass will inherit from the Course class.
Use separate h and cpp files for your classes
In your Course class create a CalcFinalGrade method requiring a list of grades The
method does not need to do anything
Each derived class will override the method CalcFinalGrade from the base class
completing the following:
MathClass calculates the average of a list of grades for the final grade.
ComputerScienceClass uses the highest grade from a list of grades as the final
grade.
Create a main file to test your CalcFinalGrade methods.
Sample Output
Grades:
Course Name: CSC
Final Grade:
Course Name: MTH
Final Grade:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
