Introduction to Stateflow with Applications

ABC Company manufactures PC boards and these are sold to several computer assembly companies. The daily orders and quantities for boards vary significantly, and for this reason ABC Company maintains three working shifts, first, second, and graveyard shift. Statistics show that, on a weekly basis, the minimum number of boards delivered is 5,000 while the maximum is 15,000.
Create a Simulink model that includes a Stateflow chart to schedule the number of shifts based on the quantities shown below so that the company will meet the promised delivery dates to its customers.
First shift: Less than 5,000 boards
First shift + 2 hours overtime: 5,000 or more but less than 8,000 boards
Second shift: 8,000 or more but less than 12,000 boards
Graveyard shift: 12,000 or more boards