Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Donna Young would like to forecast the daily demand for pizza crust using the algorithm below. Apply the algorithm to the given inputs in the
Donna Young would like to forecast the daily demand for pizza crust using the algorithm below. Apply the algorithm to the given inputs in the Table.
Inputs:
- C = an array of N integer variables
- N = the number of integer variables in array C
- v(i) = integer variable representing sales of the day i in the array
Algorithm:
- step 1: set min = 100, i = 1, and forecast = 0.
- step 2: select pizza crust sales of day i from the list.
- step 3: if v(i) < min, then set min = v(i). If v(i) > min, min = min.
- step 4: if i < N, then set i = i + 1 and go to step 2, otherwise go the step 5.
- step 5: forecast = (min + v(i)).
- end
- Output: forecast
Table. Daily pizza crust demand (in units) for the last 7 days
Day (i) | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
---|---|---|---|---|---|---|---|
Pizza crust demand (in units) (v(i)) | 87 | 87 | 99 | 77 | 88 | 65 | 96 |
If the algorithm is applied to the data array in Table, what would be the output "forecast" Donna Young will get at the end of the algorithm?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started