Question: This question from MyProgramminglab Write an exception class named InvalidTestScore. Modify the TestScores class you wrote in Exercise 1 so that it throws an InvalidTestScore

 This question from "MyProgramminglab" Write an exception class named InvalidTestScore. Modify

This question from "MyProgramminglab"

Write an exception class named InvalidTestScore. Modify the TestScores class you wrote in Exercise 1 so that it throws an InvalidTestScore exception if any of the test scores in the arra are invalid. Test your exception in a program (in a Driver class located in the same file) Your program should prompt the user to enter the number of test scores, and then ask for each test score individually. Then, it should print the average of the test scores. if the average method throws an InvalidTestScore exception, the main method should catch it and print "Invalid test score a SAMPLE RUN # 1: java Driver Highlight: Non Interactive Session Hide Invisibles 5how Highlighted Only Entermnber .op. test , score,. 5e Enter , test , score " L 70J ntur test sr 3.94 7480

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!