Question: WRITE C++ 7. TestScores Class Design a TestScores class that has member variables to hold three test scores. The class should have a constructor, accessor,
7. TestScores Class Design a TestScores class that has member variables to hold three test scores. The class should have a constructor, accessor, and mutator functions for the test score fields and a member function that returns the average of the test scores. Demonstrate the class by writing a separate program that creates an instance of the class. The program should ask the user to enter three test scores, which are stored in the TestScores object. Then the program should display the average of the scores, as reported by the TestScores object
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
