Normal distribution or bell curves is used widely in natural and social sciences. It's required to...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
any problem add comment according to given formula result of example I is wrong you can chec... View the full answer
Related Book For
Business
ISBN: 978-1133595854
12th edition
Authors: William M. Pride, Robert J. Hughes, Jack R. Kapoor
Posted Date:
Students also viewed these programming questions
-
What are the steps required to develop a social media plan?
-
Suppose company A wants to develop a program that duplicates the functionality of a program made by company B. Describe how company A may do this without violating the copyrights held by company B.
-
What basic skills are required to develop a good tax plan?
-
Figlio (1999) found that legislators are more likely to mirror their constituents preferences during election years than in earlier years of their terms. This is particularly true for relatively...
-
Suppose that in Table 3.5 the company decides to use a hedge ratio of 1.5. How does the decision affect the way the hedge is implemented and the result?
-
The specific heat of a 100-g block of material is to be determined. The block is placed in a 25-g copper calorimeter that also holds 60 g of water. The system is initially at 20oC. Then 120mL of...
-
Amanda Forbes was hired as a nail technician by Showmann, Inc., in 2011. In 2017, Forbes attended a work-related holiday party where Showmann distributed raffle tickets to employees. One of the...
-
The following transactions occurred in October at Pawnee Workshops, a custom manufacturer of furniture: 1. Purchased $16,000 of materials. 2. Issued $800 of supplies from the materials inventory. 3....
-
What is the central concept in urban economics that says people/businesses being physically next together increases overall productivity? Why does it increase productivity?
-
Liquid extraction is an operation used to separate the components of a liquid mixture of two or more species. In the simplest case, the mixture contains two components: a solute (A) and a Liquid...
-
Write a paper on the following topic: (Starbucks in 2012: Evolving into a Dynamic Global Organization) from the book Crafting & Executing Strategy.
-
You are the audit senior for the audit of Grosse Ltd. and have been given the audit file to review. The reporting date is December 31, 2023, and the materiality for the client has been set at...
-
Alex Wong, CPA, is a sole practitioner. He is having lunch with one of his long-time clients, Hudson Hughes. Hudson is very excited because he just hired a new bookkeeper, Laura Ling. This name seems...
-
Berry Co. started business in 2017. Its ending inventory at actual prices was \(\$ 150,000\) at base-period prices. It uses the simplified dollarvalue LIFO inventory method and the price index was...
-
A Bermudan cancelable swap allows the owner to cancel a swap at some point before the swap maturity. The cancellation option is economically equivalent to a Bermudan swaption into an offsetting swap....
-
Diamond Construction is an owner-managed entity with contracting revenues of $20 million in 2023. As construction is a labour-intensive industry, one of Diamonds largest expense accounts is labour...
-
Article/textbook: Orwell's 1984 Part 1 COPY & PASTE LINK: https://www.youtube.com/watch?v=jSIIXB9QaXY
-
Find the equation of the plane passing through the points P 5,4,3 ,Q 4,3,1 and R 1,5,4
-
Visit the YouTube channel for Turbo Tax (www.youtube.com/user/TurboTax/videos).Do you think social media is an effective method of obtaining the tax information you might need to prepare your taxes?
-
Today, many companies have a social media presence on Facebook, Twitter, Flickr, and other sites beyond their corporate Website. Think of three of your favorite car companies and conduct a quick...
-
In your own words, describe how social media can help businesses to connect with other businesses and consumers.
-
Find the Laplace transform of the function \[y(t)=\alpha \sin ^{2} t+\beta \cos ^{2} t .\]
-
Consider the dynamic system, a mass, spring and damper structure, discussed in Example 2.1 and shown in Figure 2.9. Find the Transfer Function model of the dynamic system, where \(f(t)\) is the input...
-
Consider a system with the following State-Variable Matrix model where \(x_{1}(t)\) and \(x_{2}(t)\) are the state variables, the \(u(t)\) is the input and \(y(t)\) is the output. Find the Transfer...
Study smarter with the SolutionInn App