Question: * c++ * Write a class called Grades, define 3 private variables as Test1, Test2 and Test3. The class would include public setters and getters

* c++ * Write a class called Grades, define 3 private variables as Test1, Test2 and Test3.

The class would include public setters and getters to set and get the private variables.

Write a function to calculate average of 3 Tests.

Create 2 objects as Student1 and Student2 and enter test grades for both. At the end, print average grades of

students.

Example output: Average of student1= 91.6667 Average of student2= 60.3333

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