Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a program in C++ that simulates a simple blackjack card game. in BJ, the object is to get card totaling 21, or to get

write a program in C++ that simulates a simple blackjack card game. in BJ, the object is to get card totaling 21, or to get closer to 21 than dealer without going over 21,

1) the player receives two cards from the dealer. 2) then the dealer gets two cards, one face up, and one face down. 3) you can keep asking for additional cards from the dealer ( a 'hit" ) until you decide to quit taking cards ( to "stand" ) once the player either goes over to total of 21 (termed a "bust" ) or decides to stand. 4) the dealer draws cards according to dealer rules ( see notes, below, for these rules.) whoever is closer to 21 (without busting) is the winner. NOTES : -(1)card values : face cards (10points), ACE (only worth 1pt, not 11 points...to comlicated with both values), numbered cards (each its worth its number) -(2)there are 52 cards in deck cards -(3) dealer rules: the dealer must "hit" on a total of 16(or under), and "stand" on a total of 17(or greater) - (4)if the player "busts", the dealer should not bother drawing (the game's over) -(5)put your game in loop, so that you can continue to play additional games without rerunning the program everytime. - (6) 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

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

Database Publishing With Filemaker Pro On The Web

Authors: Maria Langer

1st Edition

0201696657, 978-0201696653

More Books

Students also viewed these Databases questions

Question

Understand how customers respond to effective service recovery.

Answered: 1 week ago