Question: ( In C + + ) Any help regarding putting together a inheritance code would be amazing, as I am struggling to understand and make

(In C++)
Any help regarding putting together a inheritance code would be amazing, as I am struggling to understand and make them currently!
Create a program using Inheritance implementing the following classes:
Course (base class)
Every course has a course id.(Example: CSC210)
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: 78
90
Course Name: CSC222
Final Grade: 90.00
Course Name: MTH261
Final Grade: 72.00
( In C + + ) Any help regarding putting together

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 Programming Questions!