[Solved] Module 11 Post-Assessment Part 2

$25

File Name: Module_11_Post-Assessment_Part_2.zip
File Size: 301.44 KB

SKU: [Solved] Module 11 Post-Assessment Part 2 Category: Tag:
5/5 - (1 vote)

5/5 – (5 votes)

TestScores Class

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

TestScores Class Custom ExceptionWrite an exception class named InvalidTestScore. Modify the TestScores class you wrote in Programming Challenge 1 so that it throws an InvalidTestScore exception if any of the test scores in the array are invalid.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] Module 11 Post-Assessment Part 2
$25