Write a class named testscores.Write a class named testscores.

Feb 15, 2024

 

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.

Don't use plagiarized sources. Get Your Custom Essay on
Write a class named testscores.Write a class named testscores.
Just from $13/Page
Order Essay

If any test score in the array is negative or greater than 100, the class should throw an IllegalArgumentException. Demonstrate the class in a program.

 

Recent Posts