Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can someone help me program this in C. Thanks. Write a program that computes some simple statistics from user specified input. Your program should prompt
Can someone help me program this in C. Thanks.
Write a program that computes some simple statistics from user specified input. Your program should prompt the user to enter four integer values, and then compute the following statistical values based on the user input: the mean, the standard deviation the maximum value, and the minimum value You must write the following four functions to perform the computation for these statistical values mean Computes the mean of four input values Input: Accepts four integer arguments Returns the mean of the four integer input values as a double . stddev - Computes the standard deviation of four input values (see below for an example of how to compute the standard deviation) Input: Accepts four integer arguments Returns the standard deviation of the four integer input values as a double max - Determines the maximum of four input values Input: Accepts four integer arguments Returns the maximum of the four integer input values as an integer min - Determines the minimum of four input values . Input: Accepts four integer arguments Retuns the minimum of the four integer input values as an integer In all, your final program should have a total of five functions (the four above, plus your main function) Example run (user input in bold) Enter four integer values 66 12 33 99 The mean of your values is 52.50 The standard deviation of your values is 33.03 The max of your values is 99 The min of your values is 12 When you are ready to compile the program, in the Cygwin window type the command make To run the program, in the Cygwin window type the command ./Stats.exeStep 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