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
2013-03-13T05:26:38-0400
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
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment