Question: IDefine a function that takes a partially filled array of doubles as one of two arguments ( the other is the size ) , and
IDefine a function that takes a partially filled array of doubles
as one of two arguments the other is the size and returns the
standard deviation of the numbers in the partially filled array.
Embed in a program and test. include cmath
Include iostream
Using namespace std
Create a const named MAXSIZE and initialize to
Declare a function of type double named stdDev.
st parameter is of type double named s second parameter is
named size of type int.
Declare a function named average of type double, same parameters as stdDev function.
Define main function
Declare an array variable named s with parameter MAXSIZE.
Declare two double variables named stdDeviation and avg;
Cout input for MAXSIZE
Create for loop for input use stdDeviation variable to function call stdDev and output.
Define stdDev function
Declare a variable named sumSquares, initialize to
Declare a variable named avg and use it for average function call.
Create for loopint i i
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
