Question: Could anyone please help me with this program for APCS. It would be greatly appreciated and I think other students will have similar questions stemming

Could anyone please help me with this program for APCS. It would be greatly appreciated and I think other students will have similar questions stemming from this program. Thank you!

You are training to compete in a local 5K run. You record your time scores in minutes after completing seven practice runs. Write a program to calculate and print 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
  • print the values in the array, excluding the maximum and minimum values
  • print the average

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!