Question: Please show all work, the code and the output. Will upvote if correct. C + + Blackjack Assignment: Create a Blackjack ( 2 1 )

Please show all work, the code and the output.
Will upvote if correct.
C++
Blackjack
Assignment: Create a Blackjack (21) game. Your version of the game will imagine only a SINGLE suit of cards, so 13 unique cards, {2,3,4,5,6,7,8,9,10,J,Q,K,A}. Upon starting, you will be given two cards from the set, non-repeating. Your program MUST then tell you the odds of receiving a beneficial card (that would put your value at 21 or less), and the odds of receiving a detrimental card (that would put your value over 21). Recall that the J, Q, and K cards are worth 10 points, the A card can be worth either 1 or 11 points, and the other cards are worth their
numerical values.
FOR YOUR ASSIGNMENT: Provide two screenshots, one in which the game suggests its a good idea to get an extra card and the result, and one in which the game suggests its a bad idea to get an extra card, and the result of taking that extra card.
Output should look something like this:
Bad -idea
Your cards: [,]
Your current points:
Odds of receiving a beneficial card (that would put your value at 21 or less):
Odds of receiving a detrimental card (that would put your value over 21):
It is a bad idea to draw another card !
Do you want to draw another card? (yes/no): yes
Result: You lost!
good - idea
Your cards: [,]
Your current points:
Odds of receiving a beneficial card (that would put your value at 21 or less):
Odds of receiving a detrimental card (that would put your value over 21):
It is a good idea to draw another card !
Do you want to draw another card? (yes/no): yes
you count is less than 21 and you are still in the game!

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 Programming Questions!