Question: Please use indirect addressing with pointers. T-Mobile 9:40 PM instructure-uploads.s3.amazonaws.com 3. (8 points) In statistics, when a set of values is sorted in ascending or

Please use indirect addressing with pointers.  Please use indirect addressing with pointers. T-Mobile 9:40 PM instructure-uploads.s3.amazonaws.com 3.

T-Mobile 9:40 PM instructure-uploads.s3.amazonaws.com 3. (8 points) In statistics, when a set of values is sorted in ascending or descending order, its median is the middle value. If the set contains an even number of values, the median is the mean, or average, of the two middle values. Write a function that accepts as arguments the following a. An array of integers b. An integer that indicates the number of elements in the array CS 1-Spring 2018 E. Ambrosio The function should determine the median of the array. This value should be returned as a double. (Assume the values in the array are already sorted.) You'l create two arrays: one with three elements (e.g. 1, 3, 7) and one with four elements (e.g. 2, 4, 5, 9). Demonstrate your pointer prowess by using pointer notation instead of array notation in this function. (In other words, you cannot access an array at any point using array[1], for example. It must be "(array1))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!