Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Inputs: C = an array of N integer variables N = the number of integer variables in array C v(i) = integer variable representing sales

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 3. 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 79 88 60 90

If the algorithm is applied to the data array in Table 3, what would be the output "forecast" Kathryn Nelson will get at the end of the algorithm?

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

Information Systems Today Managing In The Digital World

Authors: Joseph Valacich, Christoph Schneider

7th Edition

0133940500, 9780133940503

More Books

Students also viewed these General Management questions

Question

Relax your shoulders

Answered: 1 week ago

Question

Keep your head straight on your shoulders

Answered: 1 week ago