Question: CSC 162 - Lab 6 (4 programs)_exceptions From the Gaddis (6th ed.) textbook 1, P. 757 #1 Create a TestScoresDemo class. o Create a double

 CSC 162 - Lab 6 (4 programs)_exceptions From the Gaddis (6th

CSC 162 - Lab 6 (4 programs)_exceptions From the Gaddis (6th ed.) textbook 1, P. 757 #1 Create a TestScoresDemo class. o Create a double 1-D array called badScores with the following test scores: 97.5, 66.7, 88.0, 101.0, 99.0 Create another array called goodScores with the following scores: 97.5, 66.7, 88.0, 100.0, 99.0 o Create a TestScores object initialized with badScores. o Create a TestScores object initialized with goodScores. Output the message: "Invalid score found" ion of the element and the score that was invalid. Give the average of the good grades to 2 decimal places Create a TestScores class Include the following methods: Overloaded constructor initializes an object with an array of scores. If the array contains an invalid value, an exception is thrown. getAverage - returns the average of the object's test scores

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!