Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(C++) Urgent help, I need a simple code for blackjack. Rules and what the program must do are below. into functions if you plan on
(C++) Urgent help, I need a simple code for blackjack. Rules and what the program must do are below.
into functions if you plan on doing the optional...it's easier ite aDrogram (organ cimple Blackjack card game. In Blackjack, the object is to get into functions if you p that way) that simulates a card cards totaling 21, or to get closer to 21 than the dealer without player receives two cards from the dealer. (2) Then th up, and one face-down. (3) You can keep asking for additionals "hit"), until you decide to quit taking cards (to "stand"). Once the etotal of 21 (termed a "bust") or decides to stand, (4) the dealer draws cards according to going over 21. (1) The dealer gets two cards, one face- from the dealer (a player either goes over dealer rules (see notes, below, for these rules.) Whoever is closer is the winner. to 21 (without busting) Notes: card values: face cards (10pts), Ace (only worth Ipt, not 11pts...too complicated with both values), numbered cards (each is worth its number) there are 52 cards in a deck cards (information needed for Optional part) dealer rules: the dealer must "hit" on a total of 16 (or under), and "stand" on a total of 17 (or greater) - if the player "busts", the dealer should not bother drawing (the game's over) -put your game in a loop, so that you can continue to play additional games without re- running the program every time -make the game user-friendly (i.e. print out the cards drawn and the totals in a clear, readable manner, as the game progresses.) 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