Enter the number of players in the game. There must be at least on.docx

This preview shows page 1 - 4 out of 6 pages.

Enter the number of players in the game. There must be at least one player but no more than four. Number of players: 3 Dealer Player 1 Player 2 Player 3 Card 1: 5 7 4 Q Card 2: 5 K 5 2 Card 3: J 4 6 10 Card 4: Hold Hold Q Hold Card 5: Hold Hold Hold Hold Final: 20 21 25 22 Lose Win! Lose Lose These are the program requirements: 1)There is always a dealer in the game. At the start of the game, the dealer s first card will not be shown or displayed. The second card will be displayed. The dealer may draw additional cards. 2)The dealer must use a random-number generator to determine the maximum number of cards the dealer will draw--a value between 0 and 3. In other words, the dealer is a computer player. 3)The dealer does not show all the cards or the total until all the players have either gone bust (over 21) or hold (no more cards drawn). 4)There must be at least one other player (you) and up to a maximum of four other players (all played by you).
5)On a player s turn, that player may either draw a card or hold. Once a player holds, he or she should not be asked to

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture