Question: 1. Implement a function named calculateMean(). This function takes two parameters, an integer indicating the size of the array of values (n), and an array

1. Implement a function named calculateMean(). This function takes two parameters, an integer indicating the size of the array of values (n), and an array of integers. This function will return a value of type double. The functions should calculate the mean for any array of any sized passed in to it, as described above.

2. Implement a second function named calculateStandardDeviation(). This function takes the same two parameters, the size of the array of values (n) and an array of integers. This function will also return a double result. The function will calculate and return the standard deviation of any array of integers of any size passed to it. Some further requirements of this function. You must demonstrate the use of predefined functions from such as the pow() and sqrt() functions. Also, you must call the calculateMean() function from this function, e.g. do not repeat the calculation of the mean value, but reuse your previous function to do this work to obtain x.

Have to implement a code that outputs this:

The calculated mean is: 5.6363636

The calculated standard deviation is: 2.6206428

C++ thank you! 1. Implement a function named calculateMean(). This function takes two parameters, an

E a l er e din a TH-GCC 4.9.2 64-bit Release globals) roject Classes Debug assg-01.cpp 2author Jane Programmer *@cwid 12345678 4 @cLass COSC 2336, Spring 2019 S eide Visual Studio Community 2017 6 date January 12, 2019 7Bassg Assignment e1 9 @description Assignment 01, practice on functions, user defined 10types and arrays 12 #include ostream> 13 #includeiomanip> 14 using namespace std 17main 18 The main entry point for this progrom. Execution of this program 19 wiLl begin with this main fanction. 21 aram arge The commond Line argument count which is the number of 22and Line arguments provided by user when they started 23theprogram. 24 @param argv The commond Line arguments, on array of character arrays. 27e-eturns An it yolue indicating program exit status. UsuaLLy e 28is returned to indicate normil exit and a non-zero value is returned to indicate an ernor condition 31 int main(int argc, char** argv) 32GI int n 22; int xl 5, 8, 3, 7, 9, 2, 7, double xbar e.e doublc std 6.85 l calculate and display mean of values //xbar calculateltean(n, x)i cout

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!