Question: JAVA You are training to complete in a local 5K run. You record your time scores in minutes after completing seven practice runs. Write a

JAVA

You are training to complete in a local 5K run. You record your time scores in minutes after completing seven practice runs. Write a method to calculate and return the average score based on the data. Before calculating the average, you decide to throw out the lowest and highest scores.

Your program should do the following:

declare and initialize the array with the recorded time scores such as 24.6

determine the maximum and minimum values in the array

compute the average of the array contents, excluding the maximum and minimum values (array methods may not be used)

calculate and return the average, excluding the maximum and minimum values Complete your code below:

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!