Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions