Write an exception named invalidtestscores which is thrown


TestScores Class

Write a class named TestScores. The class constructor should accept an array of test scores as its argument. The class should have a method that returns the average of the test scores.

Write an exception named InvalidTestScores, which is thrown by the TestScores class if any of the test scores in the array are invalid.

Sample Output:

Invalid score found.

Element: 3 Invalid Score: 101.0

The average of the good scores is 90.24

Press any key to continue . . .

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write an exception named invalidtestscores which is thrown
Reference No:- TGS02945063

Expected delivery within 24 Hours