C++ for Engineers and Scientists
C++ for Engineers and Scientists
4th Edition
ISBN: 9781133187844
Author: Bronson, Gary J.
Publisher: Course Technology Ptr
Question
Book Icon
Chapter 4, Problem 14PP
Program Plan Intro

Program plan:

  1. A function getValue() is declared and defined to print the value of the card depending on the given values.
  2. If statements are used to check various conditions and printing the value of card.
  3. Another function printSymbol() is used to print the symbol for Ace, King, Queen and Jack.
  4. After that, another function blackjack() is used to get the value of cards between 1-13 and calculate the sum.
  5. A main() function is defined to callblackjack()function to print the final sum.

Program description:

The main purpose of the program is to get three card values and printing the total of those 3 cards according to the given condition.

Blurred answer
Students have asked these similar questions
How can I perform Laplace Transformation when using integration based on this? Where we convert time-based domain to frequency domain
what would be the best way I can explain the bevhoirs of Laplace and Inverse Transofrmation In MATLAB.
What IETF protocol is NetFlow associated with? Group of answer choices IPX/SPX IPIX HTTPS SSH
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT