Question: a ) Write a function called readArray ( ) that will accept a double array of size 1 0 0 as its only parameter and
a Write a function called readArray that will accept a double array of size as its only parameter and will prompt for and read in values into the array.
b Write a function called avg that will accept a double array of size as its only parameter and will calculate and return the average of the numbers stored in the array.
c Write a function called var that will accept two parameters a double array of size and a
double value, the average of the array values. It will then calculate and return the variance of the values stored in the array. Here is a description of how to calculate the variance: If we denote the array values as xxx and denote the array value average as x then
thevariancexxxxxx
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
