Homework 9 Csc309.

Due Friday June 2, 2006 by 11:59pm.

Problem 1

50 points.

This one is open ended its up to you to come up with a design.

From the Kalin text

Implement a CardGame class that represents an ordinary 52-card deck with four suits ( hearts, clubs, diamonds, and spades) and 13 cards per suit: ace, king, queen, jack, 10, ... ,2. Represent the deck in any convenient way. Derive a Bridge class that includes a method deal to divide the deck into four 13-card hands. Derive a Poker class that includes a method deal to divide the deck into a specified number (between 2 and 7, inclusive) of 5-card hands. After creating the classes, write a test client for the hierarchy.