Question: Design and code a function that accepts an array and its size and returns both the mean and the deviation of the values results should
Design and code a function that accepts an array and its size and returns both the mean and the deviation of the values
results should be returned in variables passed by reference.
The prototype of you function should look like this: void meanAndDeviation(double A[], int size, double& M, double& D);
A is the array of double values, size is its size, M is where the mean should be returned and D is where the deviation should be returned.
Write a main where you make a call to the function with appropriate values and variables.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
