Answer to Question #26531 in C++ for red rose

Question #26531
In the game of blackjack, the cards 2 through 10 are counted at their face values, regardless of suit, all face cards (jack, queen, king) are counted as 10, and an ace is counted as either a 1 or an 11, depending on the total count of all the cards in a player’s hand. The ace is counted as 11 only if the resulting total value of all cards in a player’s hand does not exceed 21, else it is counted as a 1. Using this information, write a C++ program that accepts three card values as inputs (a 1 corresponding to an ace, a 2 corresponding to a two and so on), calculates the total value of the hand appropriately, and displays the value of the three cards with a printed message.
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS