Question: Write a function called C + + centeredAverage that takes two parameters: an array of integers and the number of elements in the array and
Write a function called C centeredAverage that takes two parameters: an array of integers and the number of elements in the array and returns the "centered" average of the array. Define the "centered" average to mean the floating point average of the values, except ignoring a single occurrence of the largest and smallest values in the array. If there are multiple copies of the smallest value, ignore just one copy, and likewise for the largest value. You may assume that the array is of length or more.
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
