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 MAX_SIZE and initialize to 10.
Declare a function of type double named stdDev.
1st 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 MAX_SIZE.
Declare two double variables named stdDeviation and avg;
Cout input for MAX_SIZE
Create for loop for input use stdDeviation variable to function call stdDev and output.
}
Define stdDev function
{
Declare a variable named sumSquares, initialize to 0.
Declare a variable named avg and use it for average function call.
Create for loop(int i=0, i

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!