Project 5, due July 25 (Wednesday).
-
Make a deck of cards. It must be in a file called Deck.C
and Deck.h
-
Each Deck will read in a set of cards, from a file.
The file will be the same type used in project 4 as input to the employees.
-
The deck must read in the cards, with the first thirteen
entries being the first suit, the second being the second suit and so on.
The name of the employee read in should be the value returned as the card
number, and the suit should be the title the employee carries. (Program
Manager, Programmer, Project Leader, Executive).
-
The deck must return a Top card, and mark that card as read,
so that it is not selected again, until the deck is re-shuffled.
The card returned should be a random card from the deck. Your program
must give some indication that the deck is out of cards. This must
be:
Card getTopCard() throw(int);
-
You must also be able to get the last card drawn. This
must be:
Card lastCardDrawn();
-
You should be able to output all cards not yet drawn as well:
void output();
-
You must be able to shuffle the deck:
void Shuffle();