Question: You are expected to write a C program that produces simple moving average and weighted moving average value estimates for any month based on monthly

 You are expected to write a C program that produces simple

You are expected to write a C program that produces simple moving average and weighted moving average value estimates for any month based on monthly sales data. Sales data for 12 months will be entered by the user in order. The monthly sales values entered by the user must be different from each other. Then, the month information to be estimated, the technique to be used (SMA or WMA) and the forecast time size information will be requested from the user. The forecast time dimension can take values between 3 and 5. Also, this value must be less than the month value to be predicted. The estimation result is listed on the screen according to the values entered by the user. It is mandatory to use a function within the program. Example Screen: Enter monthly sales data (1-12): 15 32 40 18 24 16 45 28 39 27 13 21 Enter the month information to estimate: 4 Enter the technique to be used (SMA/WMA): SMA Enter the forecast time size (3-5):5 The forecast duration dimension cannot be larger than the month information to be forecast. Re-enter the forecast time size : 3 Estimated value: 29 You are expected to write a C program that produces simple moving average and weighted moving average value estimates for any month based on monthly sales data. Sales data for 12 months will be entered by the user in order. The monthly sales values entered by the user must be different from each other. Then, the month information to be estimated, the technique to be used (SMA or WMA) and the forecast time size information will be requested from the user. The forecast time dimension can take values between 3 and 5. Also, this value must be less than the month value to be predicted. The estimation result is listed on the screen according to the values entered by the user. It is mandatory to use a function within the program. Example Screen: Enter monthly sales data (1-12): 15 32 40 18 24 16 45 28 39 27 13 21 Enter the month information to estimate: 4 Enter the technique to be used (SMA/WMA): SMA Enter the forecast time size (3-5):5 The forecast duration dimension cannot be larger than the month information to be forecast. Re-enter the forecast time size : 3 Estimated value: 29

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!