Question: Write a program that reads HAND _ SIZE cards from the user, then analyzes the cards and prints out the type of poker hand that
Write a program that reads HANDSIZE cards from the user, then analyzes the cards and prints out the type of poker hand that they represent. HANDSIZE will be a global constant, typically but your program must still work if it is set to something other than
Poker hands are categorized according to the following handtypes: Straight flush, four of a kind, full house, straight, flush, three of a kind, two pairs, pair, high card.
To simplify the program we will ignore card suits, and face cards. The values that the user inputs will be integer values from LOWESTNUM to HIGHESTNUM. These will be global constants. We'll use LOWESTNUM and HIGHESTNUM but your program must work if these are set to something different. When your program runs it should start by collecting HANDSIZE integer values from the user and placing the integers into an array that has HANDSIZE elements. It might look like this
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
