Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need C++ Code Please Create a Blackjack (21) game. Your version of the game will imagine only a SINGLE suit of cards, so 13 unique

Need C++ Code Please

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 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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions

Question

Show the properties and structure of allotropes of carbon.

Answered: 1 week ago