Question: Write a C# method that takes an integer array. The method should return a new int array with the following elements: 1- Element at
Write a C# method that takes an integer array. The method should return a new int array with the following elements: 1- Element at index O is the lowest number in the original array 2- Element at index 1 is the highest number in the original array 3- Element at index 3 is the (int) average of all numbers in the array 4- Element at index 4 is the (int) average of the first three elements in the passed array 5- Element at index 5 is the (int) average of the second three elements in the passed array 6- ... and so on. If you are left with one or two elements at the end then average them out.
Step by Step Solution
3.41 Rating (157 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
