Question
Project4 Specifications: Determine Poker Hand A poker hand can be stored in a two-dimensional array. The statement: Dim aryintCards(4,14) as Integer (See AryCardExample.xlsx excel spreadsheet)
Project4 Specifications: Determine Poker Hand A poker hand can be stored in a two-dimensional array. The statement: Dim aryintCards(4,14) as Integer (See AryCardExample.xlsx excel spreadsheet) declares an array which the first subscript 1-4 are the four suits and the second subscript ranges over the card denominations: 1-14: Ace, 2, ..., 10, Jack, Queen, King, Ace (repeated). First subscript of 0 is Total of each denomination. Second subscript of 0 is Total of each suit. Using these totals can determine what hand has been selected. Write a program that requests the five cards as input from the user, creates the related array, totals the special 0 rows and columns, uses those total to determine the type of hand. Poker hands are: Deck of Cards: 52 cards. 4 suits: Hearts, Spades, Clubs, Diamonds 13 cards per suit: 2,3,4,5,6,7,8,9,10,Jack,Queen,King,Ace( or 1) 5 Card Stud Poker (no Draws) Poker Hands - From Greatest to Least: Royal Flush - Ace, King, Queen, Jack, 10 of the same Suit Straight Flush - any straight with same suit. Four of Kind - 4 of the same value Full House - 3 of same value and 2 of another same value Flush - all of the same suit. Straight - sequentially in order none missing any suit. Three of A Kind - 3 of same value Two Pair - 2 pairs of the same value One Pair - 1 pair of the same value Nothing
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started