Question

Need help writing this program! Thanks in advance. Project4 Specifications: Determine Poker Hand A poker hand...

Need help writing this program! Thanks in advance.

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.

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Need help writing this program! Thanks in advance. Project4 Specifications: Determine Poker Hand A poker hand...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • I need to write a vb program for a poker game that uses a two-dimensional array......

    I need to write a vb program for a poker game that uses a two-dimensional array... Here is the problem: A poker hand can be stored in a two-dimensional array. The statement Dim hand(3, 12) As Integer declares an array with 52 elements, where the first subscript ranges over the four suits and the second subscript ranges over the thirteen denominations. A poker hand is specified by placing 1%u2019s in the elements corresponding to the cards in the hand. Write...

  • 1. Find the probabilities of Poker hands not covered in class. Recall in a Poker game,...

    1. Find the probabilities of Poker hands not covered in class. Recall in a Poker game, 5 cards are drawn uniformly at random from a deck of 52 cards. Each deck has 13 denominations ({A, 2, 3, . . . , 10, J Q, K)) and 4 suits (4,◇,0,6 ). In what follows consecutive denominations are But (J,Q,K, A, 21 is not considered consecutive. Find the probabilities of a. Straight Flush (5 cards of consecutive denomination, all of the same...

  • Help with Intro to Visual Basic homework program. I have to build a Poker Hand Determinator...

    Help with Intro to Visual Basic homework program. I have to build a Poker Hand Determinator like the one that's pictured below: You select five cards and after that click on the "Show Poker Hand" button and it should display the value of the poker hand for example: Please help! Project4: Poker Hand Determinator PokerHand Determinator Hearts Spades Diamonds 「Ace 「King 「Queen 「Jack 「10 Clubs 「Ace 「King 「Queen 「Jack 「10 「Ace 「King 「Queen 「Jack 「10 「Ace 「King 「Queen 「Jack 「10...

  • This has to be done in Haskell only. Write a program that: Given 2 poker hands...

    This has to be done in Haskell only. Write a program that: Given 2 poker hands (5 cards) in list of tuples form (ex. hand1 = [(1,0),(2,0),(3,0),(4,0),(5,0)]). Each tuple represents a card where first number of a tuple is its value (1=Ace, 2=2,...,10=10, 11=Jack, 12=Queen, 13=King) and second number its suit (0=Clubs, 1=Diamonds, 2=Hearts, 3=Spades) so (1,0) will be Ace of Clubs, or (5,2) will be 5 of Hearts, etc. Rule website: https://www.fgbradleys.com/et_poker.asp These hands are generated by an end...

  • Consider a strange variant of poker. You are drawn 7 cards from which you are to...

    Consider a strange variant of poker. You are drawn 7 cards from which you are to make your best 5 card hand, following the normal poker hand ranks. 1. What is the probability of a royal flush (The Ace, king, queen, jack and 10 all of the same suit)? 2. What is the probability of two pairs? се

  • discrete structure Recall that a standard deck of 52 cards has 4 suits (hearts, diamonds, spades, and clubs), each of w...

    discrete structure Recall that a standard deck of 52 cards has 4 suits (hearts, diamonds, spades, and clubs), each of which has 13 ranks: 2-10, Jack, Queen, King, and Ace (in order from lowest to highest). Order of cards in a hand does not matter (a) (10 points) A full house is 3 cards of one rank and 2 of another rank. How many full houses are there in a 5-card hand if either the pair or the 3 of...

  • A standard poker deck of 52 cards has four suits, (symbols C, H, S, and D) and thirteen ranks (sy...

    A standard poker deck of 52 cards has four suits, (symbols C, H, S, and D) and thirteen ranks (symbols A, 2, 3, 4, 5, 6, 7, 8, 9, T, J, Q, and K). Every card in the deck has both a value and a suit.1 A poker hand is any set of 5 cards from the standard poker deck. There are some special hands in poker, and these have ranks (i.e. some are better, some are worse). From best...

  • This activity needs to be completed in the Python language. This program will simulate part of...

    This activity needs to be completed in the Python language. This program will simulate part of the game of Poker. This is a common gambling game comparing five-card hands against each other with the value of a hand related to its probability of occurring. This program will simply be evaluating and comparing hands, and will not worry about the details of dealing and betting. Here follow the interesting combinations of cards, organized from most common to least common: Pair --...

  • I’m confused with the 52 cards problems, so I really need an explanation for each problem....

    I’m confused with the 52 cards problems, so I really need an explanation for each problem. I appreciate it. Question: A five-card hand is selected from a standard deck of 52 cards. Find the probability the hand: A Royal Flush (that is Ace, King, Queen, Jack, and Ten from the same suit) Two Pair (that is two of one kind of card and two of another) Containing at Ace,2,3,4 and 5 all the same suit.

  • 1. Probabilities of Poker Hands These questions refer to a standard deck of 52 cards having...

    1. Probabilities of Poker Hands These questions refer to a standard deck of 52 cards having 4 suits , A, 0,♡ and 13 ranks 2,3,4,5,6,7,8,9,10,J,Q,K, A. You are dealt a 5-card hand from such a deck (so there are (53) possible hands, each one is equally likely). 1. A flush is a hand consisting of 5 cards that all have the same suit. For example {24,54, 104, JA, A$} is a flush. What is the probability that your hand is...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT