Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C program using loops. Problem 2 (40 points): Finding statistics of data set: Average, Standard Deviation and Maximum 1) Average Given a list
Write a C program using loops.
Problem 2 (40 points): Finding statistics of data set: Average, Standard Deviation and Maximum 1) Average Given a list of n data values/points: mi, m2, , mn, the average value is defined as average= mn- For example with 2 data values: with 3 data values: average = m1+m2 2 m1+m2 +m3 average- 3 We want to find the average value of incoming data without having to store all previous data values in memory. This can be done by 1) Find accumulated sum of all data values 2) Once all n data values are entered (for this problem, n is 8) average- accumulated sum / total number of data points b) Standard Deviation Once a user enters all numbers, the value of standard deviation can also be calculated as sum_squares sum_squares -2 standard deviation average2- Note: sum-squares = (ml) 2 + (m2) 2 + + (mn) 2 Hint: After each value is entered, your program should find the accumulated sum of each value square c) Maximum Once a user enters all numbers, maximum data point can be determined Hint: After each value is entered, your program should decide whether the entered value is a maximum of all entered value thus far. If it is, update the variable used to keep the maximum valueStep 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