Donna Young would like to forecast the daily demand for pizza crust using the algorithm below. Apply
Fantastic news! We've Found the answer you've been seeking!
Question:
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?
Posted Date: