Post Lab 8: Rolling a Pair of Dice

Due Monday, November 6, 2006

In this assignment you will write a PairOfDice class (in file and then use it in a program ( with a loop.

The PairOfDice class must meet the following specifications:

Instance data: Two Die objects (die1 and die2). You need to save the class from your textbook (it is on pages 164-165 - an example program that uses Die objects is on page 163). You will not change - you will just use it. For example, you will declare the two instance variables die1 and die2 to be of type Die.


Write a program PlayGame that does the following:

Hand In: