You are training to complete in a local 5K run.

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

 

Leave a Comment

Your email address will not be published. Required fields are marked *

GradeEssays.com
We are GradeEssays.com, the best college essay writing service. We offer educational and research assistance to assist our customers in managing their academic work. At GradeEssays.com, we promise quality and 100% original essays written from scratch.
Contact Us

Enjoy 24/7 customer support for any queries or concerns you have.

Phone: +1 213 3772458

Email: support@gradeessays.com

© 2024 - GradeEssays.com. All rights reserved.

WE HAVE A GIFT FOR YOU!

15% OFF 🎁

Get 15% OFF on your order with us

Scroll to Top