Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help me this question is C++ Create an object-oriented program for a simple game of blackjack that provides for one player and a dealer (the

help me this question is C++

Create an object-oriented program for a simple game of blackjack that provides for one player and a dealer (the computer)

image text in transcribed

image text in transcribed

Rule:

52-card deck Face Cards are worth 10. Aces are 1 or 11

Each player starts with two cards. Dealer hides one card

Hit - player can ask for another card Stand player keep what they have and end their turn. Bust: If someones hand goes over 21 it is considered a bust. Player will loses regardless of the dealers hand.

Player wins if: dealer busts and player does not, the player wins. player has a higher final sum than the dealer and does not bust

Dealer wins if: player busts and dealer does not, the dealer wins. dealer has a higher final sum than the player and does not bust.

No one wins if both dealer and player have an equivalent hand It is considered a blackjack if 21 from the start (ace and face or 10, or 2 aces)

Blackjack DEALER'S SHOW CARD: 9 of Clubs YOUR CARDS: 2 of Hearts Queen of Clubs Hit or stand? (h/s): h YOUR CARDS: 2 of Hearts Queen of Clubs 7 of Clubs Hit or stand? (h/s): s DEALER'S CARDS: 9 of Clubs 7 of Spades Queen of Spades 1 19 YOUR POINTS: DEALER'S POINTS: 26 Yay! The dealer busted. You win! Play again? (y): n Come back soon! Specifications Use a Card class to define a single playing card with a suit, rank, and value. Include an insertion operator (

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_2

Step: 3

blur-text-image_3

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 Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions