IS:227 C Programming Program 3

Program Three - Spring 2001

DUE:

Write a program that will deal a hand of either 5 or 7 cards (user chooses). The program should display the suit and rank of the cards and then display a list of poker hands.

Hands are as follows:
Royal Flush     T J Q K A of spades
Flush               5 cards all of same suit
Straight          5 cards in consecutive order
4 of a kind     4 cards of same rank
Full House     3 cards of same rank and 2 cards of same rank
3 of a kind     3 cards of same rank 2 pair     2 set of 2 cards of same rank Pair     2 cards of same rank