The cards have the following values 2 to 10 are the value


Design and implement a simplified version of the card game blackjack. The rules are as follows:

a. A standard 52-card deck is used and shuffled well.

b. The cards have the following values: 2 to 10 are the value of the card, jack to king have a value of 10, and ace has a value of 1 or 11.

c. Only you are playing, trying to get the cards to add up to 21 without going over 21. If you go over 21, you lose.

d. Initially you are dealt two cards. If you are dissatisfied with these cards, you can ask for more. It is not a trade; additional cards are added. If you feel like you have enough cards and do not want to bust, you can "stay" and end this round of blackjack.
After the game has ended, the user should be able to play again, if she or he chooses to do so. If so, the game will restart like a brand-new game. Implement this in an OO fashion. If you split the work among your objects properly, you will be able to reuse a significant chunk of code on the next problem.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: The cards have the following values 2 to 10 are the value
Reference No:- TGS01623712

Expected delivery within 24 Hours