Question: Please answer this in c language 19.(15 pointy) Finish writing the definition for the function Arraystats ( which takes in 2 parameters: a const 2-dimensional

Please answer this in c language  Please answer this in c language 19.(15 pointy) Finish writing the

19.(15 pointy) Finish writing the definition for the function Arraystats ( which takes in 2 parameters: a const 2-dimensional array of doubles --where there are COLS (a defined constant) number of elements in each row . an unsigned int representing the number of rows. and returns a value of type statistics (a struct as defined below) The function should return the struct containing the low value, the high value, the sum and the mean of all the elements of the array This function performs no input or output to the console! This finction should work on any 2D array of doubles where there are 2 colunms in each row! By way of example, if the function were called by the following code #define COLS 2u #define Rows 3u double da (ROwS) (coL.s)(2.1, 3.2), 1.2, 2.4) 0.6, 5.5) struct stats double lowvalue; double highValue; double sum double mean; typedef struct stats statistics; I/. . statistics myStats- ArrayStats (da, ROwS) for myStats, lowValue would be set to 0.6, highValue would be set to 5.5, Sum would be set to 15.0 and mean would be set to 2.5 (the sum divided by the total number of elements) statistics Arraystats(

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!