Question: c# ONLY PLEASE Create a method that return the centered average of an array of ints. The centered average is the mean average of the
c# ONLY PLEASE
Create a method that return the "centered" average of an array of ints. The centered average is the mean average of the values WITHOUT the largest and smallest values in the array. If there are multiple copies of the smallest value, we will discard all these copies when calculating the centered average. Likewise, we do the same for multiple copies of the largest value. Use int division to produce the final average. You may assume that the array can have at least one value beside the minimum number and the maximum number.
USE: static int CenteredAverage(int[] a)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
