Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

* @description Assignment 01, practice on functions, user defined * types and arrays. */ #include #include using namespace std; /** main * The main entry

* @description Assignment 01, practice on functions, user defined * types and arrays. */ #include #include using namespace std;

/** main * The main entry point for this program. Execution of this program * will begin with this main function. * * @param argc The command line argument count which is the number of * command line arguments provided by user when they started * the program. * @param argv The command line arguments, an array of character * arrays. * * @returns An it value indicating program exit status. Usually 0 * is returned to indicate normal exit and a non-zero value * is returned to indicate an error condition. */ int main(int argc, char** argv) { int n = 22; int x[] = {5, 8, 3, 7, 9, 2, 7, 5, 4, 5, 2, 1, 9, 8, 9, 3, 5, 2, 5, 8, 8, 9}; double xbar; double std;

// calculate and display mean of values //xbar = calculateMean(n, x); cout << "The calculated mean is: " << setprecision(8) << xbar << endl;

// calculate and display standard deviation of values //std = calculateStandardDeviation(n, x); cout << "The calculated standard deviation is: " << setprecision(8) << std << endl; // return 0 to indicate successful completion return 0; }

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_2

Step: 3

blur-text-image_3

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

Databases Illuminated

Authors: Catherine M. Ricardo, Susan D. Urban, Karen C. Davis

4th Edition

1284231585, 978-1284231588

More Books

Students also viewed these Databases questions

Question

1. What physical and mental tasks does the worker accomplish?

Answered: 1 week ago