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
1
Expert's answer
2012-11-21T08:15:07-0500
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment