Question: may you please help me program this in c + + . Please see picture Create a program using Inheritance implementing the following classes: -

may you please help me program this in c++. Please see picture
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
51
55
86
Course Name: CSC222
Final Grade: 90.00
Course Name: MTH261
Final Grade: 72.00
may you please help me program this in c + + .

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!