Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions

Question

What is the correlation between EXPERIENCE and NO. DEGREES?

Answered: 1 week ago

Question

4-54. High profits are publicized by management.

Answered: 1 week ago