Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use C language please 1) Write a main program that prompts the user to enter a fixed number of integer data items using the keyboard
Use C language please
1) Write a main program that prompts the user to enter a fixed number of integer data items using the keyboard and stores them in an array a. The program should display each entered array element on a separate line. b. The program should then call 2 functions: i. ii ii. Note that the user data acquisition task can also be written as The first function returns the average of the values in the data array The second function uses the average above to calculate the standard deviation of the array values. a function. 2) Average calculation: a. Use the usual sum of all elements divided by the number of elements to calculate the average Standard Deviation calculation: 3) a. Subtract the calculated average from each array value. The result is o new set of array values, each called a deviation. b. Square each deviation. c. Take the average of the squared deviations, as in step 2 d. Take the square root of the result of step c (above). This is the Standard Deviation. 4) 5) Display the Average and Standard Deviation Loop the program continually so new arrays can be enteredStep 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