Question: C programming question This program below performs some basic statistics on an array of integers. It must use the five functions indicated. You need to
C programming question
This program below performs some basic statistics on an array of integers. It must use the five functions indicated. You need to complete this program (write the five functions).
#include#include void getData(int, int[]); double calcMean(int, int[]); double calcVariance(int, int[], double); double calcStdDev(double); void printResults(double, double, double); int main(void) { int size; double mean, variance, stddev; printf("Enter the array size : "); scanf("%d", &size); int array[size]; getData(size, array); mean = calcMean(size, array); variance = calcVariance(size, array, mean); stddev = calcStdDev(variance); printResults(mean, variance, stddev); return 0; }
Hint: the math involved is not hard and can be found at https://www.mathsisfun.com/data/standard-deviation.html
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
