Question: please write in c. Moving average A simple moving average of some data is the mean of m consecutive data values. Write a program that

please write in c.
Moving average A simple moving average of some data is the mean of m consecutive data values. Write a program that reads an integer m and a sequence x1,X2,...,.xn and computes moving averages a1, a2,..., an-m+1 such that X1 +X2 + + Xm a,= x2 +X3++am+1 72 7m The input sequence is terminated by 0. The output values are printed rounded to two digits after the decimal point An example of input: 3 2 4778 11 12 0 The corresponding output: 4.33 6.00 7.33 8.67 10.33 (4.33 is an average of 2, 4 and 7, 6.00 is an average of 4, 7 and 7, etc.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
