Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

LO2 Explain the nature of the psychological contract.

Answered: 1 week ago