question 3 write a function ‘double average(double numbers[], int size)’ which takes as input an array of numbers and the size of the array, and returns the average of all the numbers in the array...

question 3 write a function ‘double average(double numbers[], int size)’ which takes as input an array of numbers and the size of the array, and returns the average of all the numbers in the array excluding the greatest and least number. double nums[] = {5.5, 2, 7.5, 1.5, 4.5};
cout 5); // should display 4 (because (5.5 + 2 + 4.5)/3 = 4)

////////*Suppose the array from problem #3 contains n items. What is the big-Oh run time of your solution?





Suppose you want to search for a value in a sorted array. How fast (big-Oh run time) can an item be found in a sorted array?*/
Oct 07, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here