Then modify class Deckofcards of Fig. 8.11 to include methods that determine whether a hand contains

 Modify Fig. 8.12 in the textbook to deal a five-card poker hand. Then modify class Deckofcards of Fig. 8.11 to include methods that determine whether a hand contains:

  1. a pair
  2. two pair
  3. three of a kind (e.g., three jacks)
  4. four of a kind (e.g., four aces)
  5. a flush (i.e., all five cards of the same suit)
  6.  a straight (i.e., five cards of consecutive face values)
  7. a full house (i.e., two cards of one face value, and three cards of another face value.
  • attachment

    Fig8.12.PNG
  • attachment

    Fig8.11.PNG
Looking for a Similar Assignment? Our Experts can help. Use the coupon code SAVE30 to get your first order at 30% off!
%d bloggers like this: