Question: Every time you exceute your code, you set a random horizon length and the corresponding (random) demand for each period in the horizon. Now the

Every time you exceute your code, you set a random horizon length and the corresponding (random) demand for each period in the horizon. Now the height of a rectangle represents the demand in a particular period. On the other hand, you will use other two sets of rectangles to represent the production and stock. The production policy is as follows: if the stock level is not sufficient to meet the demand in the period, produce a lot of 3 times the demand for the product. Try to print your rectangles in the screen in such a way they represent the calendar of activities of a firm (e.g., to put all of them in the same horizontal line). Paint in red, blue, and green, the demand, production and stock rectangles, respectively. Consider the demand per period is uniformly distributed between 5 and 20 (only integer values). For the horizon, assume the length is uniformly distributed between 10 and 40. on vba

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 Economics Questions!