Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem statement Write a modular C program to compute the mean and standard deviation of three numbers inserted by the user. You should follow the

image text in transcribed
image text in transcribed
image text in transcribed
Problem statement Write a modular C program to compute the mean and standard deviation of three numbers inserted by the user. You should follow the following steps in developing the program: 1. Your program should continue displaying the following menu until the user inserts 4. (1) Compute mean and standard variation in the main function (2) Compute mean in MeanFun function and standard variation in StdFun function (3) Use MeanAndStd to compute the mean and Std (4) Quit The above menu should be created in a function called Menu function. Getting the choice from the user will be in Menu function. 2. If the user inserts 1, do the following: Get three numbers from the user in the main function, then compute and display the mean and standard deviation in the main function (no functions to be used in this part, all computations will be in the main function). 3. If the user inserts 2, do the following: In the main function, get three numbers from the user Call MeanFun function to compute the mean of the three numbers that are inserted ir the main function. Call StdFun function to compute the standard deviation using the mean computed in MeanFun function and the three numbers that are inserted in the main function. Print the mean and standard deviation in the main function. a. b. c. d. 4. If the user inserts 3, do the following: In the main function, get three numbers from the user and call a function called MeanAndStd function In MeanAndStd function, call MeanFun and StdFun functions, created in the previous question, to compute the mean and standard deviation. a. b. c. Print the mean and standard deviation in the main function Notes: - Mean of three numbers (numberl, number2, and number3) is computed as following: numberi + sunber2+ nomber The standard deviation is computed as follows: N-1 where & is the mean value of N numbers inserted by the user. In this problem, N is 3. Sample run (1) Compute nean and standard variation in the main functiorn (2) Compute nean in MeanFun function and standard variation in StdFun functior (3)Use MeanAndstd to compute the mean and Std (4)Quit Please insert your choice:7 Hrong choice, try again Please insert your choice: 1 Insert three numbers: 40 60 80 The main is 60.00 and the standard deviation is 20.00 39 (1) Compute mean and standard variation in the main function (2) Compute mean in MeanFun function and standard variation in StdFun function (3)Use MeanAndstd to cospute the mean and Std (4)Quit Please insert your choice: 3 Insert three numbers: 5 12 36 The main is 17.67 and the standard deviation is 16.26 (1) Compute mean and atandard variation in the main function (2) Compute mean in MeanFun function and standard variation in StdFun function (3)Use MeanAndStd to compute the mean and Std (4)Quit Please insert your choice:4

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

Navigating The Supply Chain Maze A Comprehensive Guide To Optimize Operations And Drive Success

Authors: Michael E Kirshteyn Ph D

1st Edition

B0CPQ2RBYC, 979-8870727585

More Books

Students also viewed these Databases questions

Question

6. Identify characteristics of whiteness.

Answered: 1 week ago

Question

e. What are notable achievements of the group?

Answered: 1 week ago