Anyone can help me solve this????
Question 1:
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, highest and lowest score of the test scores. If any test score in the array is negative or greater than 100, the class should throw an IllegalArgumentException. Demonstrate the class in a JAVA program.
(10 marks)
Question 2:
Write an exception class named InvalidTestScoreException. Modify the TestScores class you wrote in Question 1 so that it throws an InvalidTestScore Exception if any of the test scores in the array are invalid.
(10 marks)
Question 3:
Modify the TestScores class that you created in Question 1 to be serializable. Write a JAVA program that creates an array of at least five TestScore objects and serializes them. Write another JAVA program that deserializes the objects from the file.
(10 marks)
Question 4:
Modify your coding in Question 3 so that all the valid scores are written into an ArrayList. Write a Java Program to display all elements you have been added into your ArrayList.
(10 marks)
thx alot!!!