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 Should return
insensitiveAverage should return
Starter code and tests have been provided for you.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
