Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

X Normal distribution or bell curves is used widely in natural and social sciences. Its required to develop a program in C t 

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 distribution 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. y-1. = 1=0 x1 71 3- Compute the variance of X PR-1 ( - x.) i=0 0 n-1 4- Compute the standard deviation of X: o = variance 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 G 20.96 6 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. O double sqrt(double x): Returns the square root of x. O double pow(double x, double y): Returns x raised to the power of y.

Step by Step Solution

3.45 Rating (158 Votes )

There are 3 Steps involved in it

Step: 1

any problem add comment according to given formula result of example I is wrong you can chec... 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

Business

Authors: William M. Pride, Robert J. Hughes, Jack R. Kapoor

12th edition

1133595855, 1133595854, 978-1133595854

More Books

Students also viewed these Programming questions

Question

What are the steps required to develop a social media plan?

Answered: 1 week ago

Question

What basic skills are required to develop a good tax plan?

Answered: 1 week ago