0
Reply

Programming help

aakanksha das

aakanksha das

Dec 5 2006 9:50 PM
1.5k
I have an assignment to do where we have to design a program that does the following: Create a VB.NET application that will simulate the production progress of a manufacturing line. You will use an appropriate time interval (tick) as the standard measurement. The production line requires 5 ticks to produce a product. In addition, after 7 ticks of running time, there is a shutdown period for 2-4 ticks. Once a product begins production, it must be allowed to complete. If a shutdown period falls mid-production, it must be delayed until the product has finished. For instance, the table below shows some sample data. Time count in this chart represents the end of the time period (tick 1 means that time period 1 has finished, tick 5 means that time period 5 has finished and the first product has completed) Time Producing/Shutdown Interval Shutdown 1 product 1 producing (1) sceduled shutdown at 7 for 2 ticks 2 product 1 producing (2) 3 product 1 producing (3) 4 product 1 producing (4) 5 product 1 producing (5) - product 1 complete, draw a product completion graphic item and show product 2 at step 0 6 product 2 producing (1) 7 product 2 producing (2) Shutdown delayed: rescheduled at 10 for 2 ticks 8 product 2 producing (3) 9 product 2 producing (4) 10 product 2 producing (5) - product 2 complete, draw a product completion graphic item and show product 3 at step 0 Next shutdown at 17 for 3 ticks Calculate the shutdown time at 7 ticks after the resume time When a product has finished completion, draw a graphic icon on the form (square, ellipse, etc). The user can stop production. When the user stops production output a summary to the form listing the number of products completed. A sample screen capture is shown below. Use a design of your own choosing. The form below shows a message with adjusted shutdown and resume times when the original shutdown time would have been during mid-production. The delayed shutdown time occurs after the product has been produced and a new product has not started production.