Here is the assignment. A program is required for a factory which is putting together packs of products (you can choose a food factory, a garage, a computer factory or another appropriate scenario). The user should be able to press a button to sell a fixed quantity of packs (say 100), and the stock levels of all the components will be reduced accordingly. It should not be possible to sell a pack for which we do not have the required parts. At the start of the program, the current stock levels should be loaded from disk, and at any time, the user should be able to store the current stock levels to disk. Users should not be allowed to exit from the program unless the current stock level has been stored on disk. (This can be done with a button or without a button.) Buying should also be possible, with a button to process the adding of stock to the total, with consequent effects on the other buttons. Records should be kept of all the orders processed during the run, and this should be printed out when the program is exited.(This is known as an "audit trail".)
## Deliverables
You should submit a program specification that states exactly what the program will do. This will include describing what the finished products are, what the raw materials are, how many of each is needed for each, and so on. Are we working in hundreds or dozens? What are the units? The specification has to be very specific. You must submit a program design including the following parts: 1)data held(on forms,as variables,as constants,on disk),including its structure(such as arrays and files).For each item of data give its name,a description,constraints on its value and its type 2)The screen layouts 3)Arrangements for data validation on input(including turning buttons off) 4)For each button on the screen,produce a state transition diagram to show the conditions under which the buttons status may change You must produce program code for the above
## Deadline information
I have to hand in this assignment by 18/06/01