Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

2. Implement a second function named calculateStandardDeviation(). This function takes the same two parameters, the size of the array of values (n) and and array of integers. This function will also return a double result. The function will calculate and return the standard devation of any array of integers of any size passed to it. Some further requirements of this function. You must demonstrate the use of prede- ned functions from such as the pow() and sqrt() functions. 2 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. Here is the correct output you get from your program if you correctly implement the two functions and use the array given to you in the starting template for this assignment:

The calculated mean is: 5.6363636

The calculated standard deviation is: 2.6206428

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Management Systems

Authors: Patricia Ward, George A Dafoulas

1st Edition

ISBN: 1844804526, 978-1844804528

More Books

Students also viewed these Databases questions

Question

Explain the types of memory and memorys role in learning?

Answered: 1 week ago