In c++
Write a class named TestScores.The class constructor shouldaccept an array of test scores as its argument.
The class should have a method that returns the average of the testscores.
If any test score in the array is negative or greater than 100, theclass should throw an Exception.
Demonstrate the class in a program.
Expert Answer
An answer will be send to you shortly. . . . .