Question: Store the following data in three 2D arrays. A = -1 5 9 13 B = 7 -9 12 26 0 -17 C = 8

Store the following data in three 2D arrays. A = -1 5 9 13 B = 7 -9 12 26 0 -17 C = 8 16 25 22 7 32 64 -5 10 41 For each array, calculate the average of each column. To do that| write a function with the following input: a. a 2D array of ints with two columns b. an int; this is the number of rows of the 2D array c. a double*; this is the average of the first column d. a double*; this is the average of the second column The function will have return type void and be used for each group. This function will use pointers to get the average values back to main(). This will require that these variables be defined in main() and their addresses passed to the function during the function call. DO NOT PRINT FROM THIS FUNCTION. For each array, calculate the average of all elements. To do that write a function with the following input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
