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 game. Your version of the game will imagine only a SINGLE suit of cards, so unique cards, JQKA Upon starting, you will be given two cards from the set, nonrepeating. Your program MUST then tell you the odds of receiving a beneficial card that would put your value at or less and the odds of receiving a detrimental card that would put your value over Recall that the J Q and K cards are worth points, the A card can be worth either or 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 or less:
Odds of receiving a detrimental card that would put your value over :
It is a bad idea to draw another card
Do you want to draw another card? yesno: yes
Result: You lost!
good idea
Your cards:
Your current points:
Odds of receiving a beneficial card that would put your value at or less:
Odds of receiving a detrimental card that would put your value over :
It is a good idea to draw another card
Do you want to draw another card? yesno: yes
you count is less than 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
