6.1 Naming Some "cool-sounding" name. 6.2 Brainstorming Explicit specifications: - the computer picks a random number between 1 and 3, inclusive - the simulation ends when the bin contains eight or more boxes - initialization of program variables: number of boxes added to bin, efficiency, total number of boxes on truck, total number of boxes in bin, number of boxes extracted by worker, etc. - efficiency reduced every 4th. cycle - update variables for each cycle - print desired output Implicit specifications: - is the computer picking an integer or float? - is there a limit to the number of cycles that the simulation can perform? - does the program need to keep track of the number of cycles? - what happens when a fraction of boxes is obtained 6.3 Research - number of boxes added to bin - worker efficiency - total number of boxes put on truck - total number of boxes in bin - number of boxes extracted by worker - cycle counter - number of boxes extracted by worker 6.4 Outlining - initialize (to zero) number of boxes added to bin from chute - initialize (to one) worker efficiency - initialize (to zero) total number of boxes put on truck - initialize (to zero) total number of boxes in bin - initialize (to zero) number of boxes extracted by worker - initialize (to one) trips made by worker - begin loop which continues while total number of boxes in bin is less than bin capacity - choose random number of boxes added to bin (from chute) - add this number of boxes to bin - choose random number of boxes to be extracted from bin - take boxes out of bin - update number of boxes on truck - if on a 4th. cycle - reduce efficiency by 25% - increment cycle counter - end loop - print total number of boxes on truck