Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C programing X Normal distribution or bell curves is used widely in natural and social sciences. It's required to develop a program in C that

C programing image text in transcribed
X Normal distribution or bell curves is used widely in natural and social sciences. It's required to develop a program in C that performs the following operations: Normal atribution 1- Accept number of samples (n), then accepts samples of a random variable X in sequence and save them in an array. 2. Compute the mean of X HE 71 3. Compute the variance of X E=(u x;) n-1 4- Compute the standard deviation of X: 0 = Vvariance The requirements: 1- The program starts by showing a menu and asks the user to select an option. 1. Input samples 2. Compute the mean 3. Compute the variance 4. Compute the standard deviation 5. Exit 2- The program accepts the option from the user then perform the suitable operation as shown above. 3- Create the necessary validations to make sure your program works properly. 4- Test your program by run the following examples: Example (1) Example (2) n 10 20 x 10, 15, 18, 15, 10, 7, 16, 18, 13, 20 25, 26, 26, 28, 29, 29, 29, 30, 29, 30, 32, 29, 29, 28, 28, 29, 28, 26, 27, 28 13.2 o? 20.96 4.8258 Deliverables: 1- Reports shows the test examples results from your program. 2- The source code of the program in C. Deadline will be Tuesday and Wednesday 12.13 January 2021, the discussion and delivery will be with lab instructors. Hints: math.h contains these functions, you may need them. double sqrt(double x): Returns the square root of x. double pow(double x, double y): Returns x raised to the power of y. o o O

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions