Question: C++ 1) Card Games Using the DeckOfCards class and the hit on soft-17 rule for the dealer, write a complete program that plays the game

C++

1) Card Games Using the DeckOfCards class and the "hit on soft-17" rule for the dealer, write a complete program that plays the game of Blackjack. The computer should act as the dealer and allow the player to indicate if she/he wants to "hit" or "stand".

Example (user input underlined):

Your hand: K 2 My hand: 7 3

Hit or Stand? (h/s): h 6

Your hand: K 2 3

Hit or Stand? (h/s): h

Your hand: K 2 3 4

Hit or Stand? (h/s): s

My hand: 7 3 8

You win!

Play again? (y/n): n

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!