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

You are training to complete 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

3.53 Rating (146 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Certainly To solve this problem we need to write a program likely in a programming language like Python to perform the steps mentioned Heres a stepbys... View full answer

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 Programming Questions!