CSC 7000 - Algorithms and Programming

Project #4

Due 9am Wednesday, February 13, 2002

Programming project 4.2, p 217 of text. Note that you need to submit the following files:

  1. Die.java to implement class for a single die (copy from text, p204)
  2. PairOfDice.java to implement class for a pair of dice, using the Die class
  3. Pig.java that plays the game "pig"

Be sure to test it well. Your program must be well documented and formatted and please remember to put some extra comments and blank lines at the beginning and end of files, so as to avoid the submission problems that we experienced last week.

Please follow the instructions for submitting a project (cross your fingers!).