(Project: Card Shuffling and Dealing)Modify the program developed in Exercise so that it can simulate the dealer. The dealer’s five-card hand is dealt “face down” so the player cannot see it. The program should then evaluate the dealer’s hand, and based on the quality of the hand, the dealer should draw one, two or three more cards to replace the corresponding number of unneeded cards in the original hand. The program should then reevaluate the dealer’s hand. [Caution: This is a difficult problem!]
Exercise
(Project: Card Shuffling and Dealing)Use the functions developed in Exercise to write a program that deals two five-card poker hands, evaluates each, and determines which is the better hand.
Exercise
(Card Shuffling and Dealing)Modify the program in Fig. so that the card-dealing function deals a five-card poker hand. Then write the following additional functions:
a) Determine whether the hand contains a pair.
b) Determine whether the hand contains two pairs.
c) Determine whether the hand contains three of a kind (e.g., three jacks).
d) Determine whether the hand contains four of a kind (e.g., four aces).
e) Determine whether the hand contains a flush (i.e., all five cards of the same suit).
f) Determine whether the hand contains a straight (i.e., five cards of consecutive face values).
Figure Card shuffling and dealing.



We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.