USING JAVA IDE NETBEANS
1)TestScoresclass
write a class named test scores. 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 test score in the array is negative or greater than 100 ,the class should throw an IllegalArgumentException. Demonstrate the class in a program.
2)TestScores Class Custom Exception
Write an exception class named InvalidTestscore.Modify the testscores class you wrote in programming challenge1.So that it throws an invalidtestscore exception if any of the testscores in the array are invalid.