Question: Analyzable Interface Modify the CourseGrades class you created in Programming Challenge 5 so it implements the following interface: public interface Analyzable {double getAverage(); GradedActivity getHighest();

 Analyzable Interface Modify the CourseGrades class you created in Programming Challenge

Analyzable Interface Modify the CourseGrades class you created in Programming Challenge 5 so it implements the following interface: public interface Analyzable {double getAverage(); GradedActivity getHighest(); GradedActivity getLowest();} The getAverage method should return the average of the numeric scores in the grades array. The getHighest method should return a reference to the element of the grades array that has the highest numeric score. The getLowest method should return a reference to the element of the grades array that has the lowest numeric score. Demonstrate the new methods in a complete program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!