# 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 this assignment, you may simplify it by choosing to have the Ace worth only ONE of the two values rather than both. FOR YOUR ASSIGNMENT: Provide two screenshots, one in which the game suggests it’s a good idea to get an extra card and the result, and one in which the game suggests it’s a bad idea to get an extra card and the result of taking that extra card.

Blackjack, also known as 21, is a popular card game played in both casinos and casual settings around the world. In this assignment, we are tasked with creating a simplified version of the game, using only a single suit of cards consisting of 13 unique cards: {2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K, A}. The objective is to determine the odds of receiving a card that would either benefit or detriment the player’s hand value, which must be 21 or less.

Before we delve into the calculations of the odds, let’s clarify the values of the cards in our simplified version of Blackjack. The numerical cards (2 to 10) hold their respective face values. The face cards (J, Q, and K) are worth 10 points each. Lastly, the Ace (A) can be worth either 1 or 11 points, but for the purposes of this assignment, we will consider it as worth only 1 point.

To calculate the odds of receiving a beneficial card (putting the player at 21 or less), we need to consider the current value of the player’s hand. Let’s imagine the player is initially dealt two cards and their values add up to ‘x’. The total number of cards that can be drawn from the deck is 13 – 2 = 11, as we assume that non-repeating cards are dealt.

Out of these 11 remaining cards, we must identify how many of them would result in a beneficial outcome. If the current hand value is less than or equal to 11, any card drawn except a 10, J, Q, or K will result in a beneficial outcome. So, there are 11 – 4 = 7 cards that will benefit the player’s hand.

On the other hand, to calculate the odds of receiving a detrimental card (putting the player over 21), we need to consider the same initial hand value of ‘x’ and the remaining cards in the deck. If the current hand value is greater than 10, any card drawn would result in a detrimental outcome.

Therefore, we can summarize the calculated odds as follows:

– Odds of receiving a beneficial card = (7 / 11) * 100

– Odds of receiving a detrimental card = (11 / 11) * 100

These values indicate the likelihood of drawing a card that would either benefit or detriment the player’s hand value in our simplified version of Blackjack.

### Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.

Click Here to Make an Order Click Here to Hire a Writer