Question: C PROGRAMMING MICROSOFT VISUAL STUDIOS #define _CRT_SECURE_NO_WARNINGS #include #include #include #define ARRAY_SIZE 20 double CalculateMean(double data[], int size); double CalculateStandardDeviation(double data[], int size); /* TODO:

C PROGRAMMING MICROSOFT VISUAL STUDIOS

#define _CRT_SECURE_NO_WARNINGS #include #include #include

#define ARRAY_SIZE 20

double CalculateMean(double data[], int size); double CalculateStandardDeviation(double data[], int size);

/* TODO: Here is your homework. Create a function that takes in the following: input: An array of doubles, the size of the array as an int output: The value at -3 and +3 standard deviations from the mean

Note: You have TWO outputs from this function so you HAVE to use pass by reference. It is up to you on how you do this, but I would recommend a void function that returns two doubles via pass by reference, one for the +3 standard deviation range, one for the -3. If you do not use pass by reference YOU WILL LOSE POINTS.

Goal of the function: 1) Calculate the mean and standard deviation of the array (which I provided functions that do this). 2) Calculate the -3 standard deviation. That is: mean - (3 * standardDeviation) 3) Calculate the +3 standard deviation. That is: mean + (3 * standardDeviation) 4) Return

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!