CS 35

Program 3

due Tuesday 13 Feb by midnight

Program 3 will be to implement queues for the gas station simulation using linked lists and to compare results of using a common queue for both pumps or two separate queues. Hopefully, once you get your new Queue class working, the rest will be relatively easy.

Once you have the simulation running. Make several runs with two pumps, each with its own queue of 3. Then make several runs with a common queue of length 6 that feeds either pump. Pick probablility values that ensure that at least some customers are lost. After your runs, write a short prose paper called results.txt that lists and summarizes your results.

Good luck.

I should receive the email with tarball attached before midnight on the due date for a program.