Question: Below is the stat.cpp Third step Write a function to receive an int array of 8 values as an input parameter and a pointer to

Third step Write a function to receive an int array of 8 values as an input parameter and a pointer to a struct of 2 float variables as shown in the accompanying source file stat.cpp. The function is to calculate the mean (average) of the 8 values as a float value, and the variance of the 8 values as a float value. They are stored in the structure and then the function returns. The definition of variance to use is Var = (x,-*..)? where xm is the mean of the data. // An stub to implement a function in #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
