Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started