Question: We are studying c programming and only working on while loop and if else loop is the problem statement. There will be another section for
is the problem statement. There will be another section for you to write your own program. A moving average can be very useful in statistics and financial applications. It is also known as the rolling average, running average, moving mean, or running mean. For systems engineers, they might recognize it as a type of finite impulse response fiter For this problem, our simple moving average (SMA) will be defined as the unweighted mean of the previous n data points. SimpleMovingAverage-SMA- VN-1 72 And to calculate it in our program, we will use this formula: SMA = SMaprevious -L + N cirrent You might need a moving average when you are analyzing stock prices, lab experiment data, or power level consumption of a satellite. Write a program that willalow the user to enter in data points. After each data point entered, the program will return the simple moving average using this simplified formula
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
