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