Question: Please write the program in C++ Write a command line game that plays a simple version of blackjack. The program should generate random number between

Please write the program in C++

Please write the program in C++ Write a command line game that

Write a command line game that plays a simple version of blackjack. The program should generate random number between 1 and 10 each time the player gets a card. It should keep a running total of the players cards, and ask the player whether or not it should deal another card. Sample output for the game is written below. Your program should produce the same output. Your output message should contain the strings Win, Lose Bust, Push, Blackjack depending on the combination of cards compared to a dealer hand of 18. Submit a single file named Blackjack.cpp using the button below. You do not need to submit sample output. Just the source code. Sample Output: > First cards: 3, 2 > Total: 5 > Do you want another card? (y): y > Card: 6 Total: 11 > Do you want another card? (y): y Card: 7 > Total: 19 > Do you want another card? (y): n > Win. e to play again? (y): y

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!