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

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!