Question: Hi, can anyone please write .NET (VB) programming code for this question: Project4 Specifications: Determine Poker Hand A poker hand can be stored in a
Hi, can anyone please write .NET (VB) programming code for this 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 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
Output:

This is the only information available.
Shown with Straight Flush selected: Project4: Poker Hand Determinator Poker Hand Determinator Hearts Spades Clubs Diamonds Ace ? King ?King ?Queen ? Jack ?10 King ? Queen ?Jack ?10 Ace King ?Queen Jack Queen Jack ? 10 ?10 4 4 ?3 ?2 4 ?3 Restart Close Show Poker Hand Displays this Msgbox: Project4 Straight Flush OK Shown with Straight Flush selected: Project4: Poker Hand Determinator Poker Hand Determinator Hearts Spades Clubs Diamonds Ace ? King ?King ?Queen ? Jack ?10 King ? Queen ?Jack ?10 Ace King ?Queen Jack Queen Jack ? 10 ?10 4 4 ?3 ?2 4 ?3 Restart Close Show Poker Hand Displays this Msgbox: Project4 Straight Flush OK
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
