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 value