Question: Here is a program I need as a teacher. Suppose that scores is an array of the 10 (integer) scores on homework assignments for a
Here is a program I need as a teacher. Suppose that scores is an array of the 10 (integer) scores on homework assignments for a student. I need a method to calculate the total of the scores, throwing out the lowest 2 values. Use your main method to test your method on several sample arrays. Hint: You can use the Java library method Arrays.sort(int[] a) to sort the elements of an array into ascending order. Note that this method does not return a value it modifies the array that is passed in as a parameter by reordering its elements.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
