Java Homework

Write a class name 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. If any score in the array is negative or greater than 100, the class should throw an IllegalArgumentException. Demonstrate this class in a program.

This should be easy for an experianced programmer. 2 files. I am taking an 8 week online course where the instructor does not answer any emails or post with my questions. It is a “read the book and post answers” type of class. I have no idea what im doing but if I fail my tuition is not covered. 2 weeks to go so there will be more programs needed!
I have seen this exact questioned posted and answered here.

Leave a Reply

Your email address will not be published. Required fields are marked *