Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

please follow the steps carefully... Problem statement Write a modular C program to compute the mean and standard deviation of three numbers inserted by the

image text in transcribedimage text in transcribed

please follow the steps carefully...

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) . If the user inserts 2, do the following: a. In the moin 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 c. Call StdFun function to compute the standard deviation using the mean computed in Mteanfun function and the three numbers that are inserted in the main function. d. Print the mean and standard deviation in the main function. b. Call MeanFun function to compute the mean of the three numbers that are insertin the main function Call Stdfun function to compute the standard deviation using the mean computed in MeanFun function and the three nu.nbers that are inserted in the main function. Print the mean and standard deviation in the main function. 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 a. b. In MeanAndstd function, call MeanFun and StdFun functions, created in the previous question, to compute the mean and standard deviation c. Print the mean and standard deviation in the main function. Notes: Mean of three numbers (number1, number2, and number3) is computed as following: number1 +number2+ number3 The standard deviation is computed as follows: N 1 where f is the mean value of N numbers inserted by the user, In this problem, N is 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions