my last files
Chrome
File
Edit
View History Bookmarks
28% M Sun 2:56 PM
Q DE
People Window Help
C++ for Engineers and Scientists 4th Edition.pdf (page 254 of 850)
ООО
所。
e
5
Q
pat
ller
14. (General math) In the game of blackjack, the cards 2 through 10 are counted at their face
values, regardless of suit; all face cards (jack, queen, and king) are counted as 10; and an ace is
counted as a 1 or an 11, depending on the total count of all 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 doesn’t exceed
21; otherwise, it’s counted as 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), cal-
culates the total value of the hand, and displays the value of the three cards.
26
POO
?
WARNI
997:36