Question: Arrays review In this exercise, you are computing the average of an array of integers. However, averages are statistically sensitive to outiers ( very large

Arrays review
In this exercise, you are computing the average of an array of integers. However, averages are statistically sensitive to outiers (very large or very small values relative to the others in the array). Therefore, this problem asks you to throw out both the largest.and the smallest values that exist in the array when computing the average. If there are multiple copies of the largest or smallest values, you should only throw out one of those. You are guaranteed that there will be at least three elements in the parameter array. Xour function should retum the integer average using integer division. Well call this function insensitiveAverage().
For example:
Insensitiveaverage ([55,7,-8]) Should return 7
insensitiveAverage([7,33,1,19] should return 13
Starter code and tests have been provided for you.
 Arrays review In this exercise, you are computing the average of

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!