Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am so sorry about the clarity, I took these photos from computer screen. Please be careful for spaces and output. thank you so much...
I am so sorry about the clarity, I took these photos from computer screen.
Please be careful for spaces and output.
thank you so much...
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, dothe fallowing: . 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, al computations wilf be in the main function) " 3. If the user inserts 2, do the following: a in the main function, get three numbers from the user b. Call Meanfun function to compute the mean of the three numbers that are inserted in the main function. Calf tdfun function to compute the stendard deviation using the mean computed in Meanfun functioniand the three nueibersthat are inserted in the main function. s. Print she heari and stendard deviation in the main function 4: if the user inserts 3, a the following: 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 staridard deviation. Print the mean and standard deviation in the main function. a. b. c. Mean of three hmbers (humberL, numbr2, and number3) is computed as following: number1 +nuberz+ number3 The standard is compted as followus where t is the meah value of N numbers insert the user, in this problem, N is3 Sample run (1) omgute mean and stancar variation in the main iunction (2) Compute mean in MeanFun funotion and standard variation in Stdfun unction 3Use MeanAndstd to compute the mean and Std (4)Quit Please insert your choice: 7 Wrong 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 (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 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 standard variation in the main function (2)Compute mean in Mean Fun function and standard variation in StdFun function (3)Use MeanAndStd to compute the mean and Std (4)Quit Please insert your choice:4Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started