C language programming:   • If your cards total 17 or higher, always stand regardless of what the dealer is showing in his face-up card. • If your cards total 11 or lower, always hit. • If your cards add up to 13 to 16 (inclusive), hit if the dealer is showing 7 or higher, otherwise stand. • If your cards add up to 12, hit unless the dealer is showing 4 to 6 (inclusive). In that case, stand. The sample runs of the program should look like this: Here's some advice for blackjack. Tell me which card the dealer is showing. Enter 2-9, 10 (Jack, Queen, King) or 11 (Ace): 7 What is the combined total of your hand? 12 You should: Hit Here's some advice for blackjack. Tell me which card the dealer is showing. Enter 2-9, 10 (Jack, Queen, King) or 11 (Ace): 5 What is the combined total of your hand? 12 You should: Stand

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section: Chapter Questions
Problem 14PP
icon
Related questions
Question
100%

C language programming:

 

• If your cards total 17 or higher, always stand regardless of what the dealer is showing in his face-up card.
• If your cards total 11 or lower, always hit.
• If your cards add up to 13 to 16 (inclusive), hit if the dealer is showing 7 or higher, otherwise stand.
• If your cards add up to 12, hit unless the dealer is showing 4 to 6 (inclusive). In that case, stand.

The sample runs of the program should look like this:

Here's some advice for blackjack.
Tell me which card the dealer is showing.
Enter 2-9, 10 (Jack, Queen, King) or 11 (Ace): 7
What is the combined total of your hand? 12
You should: Hit

Here's some advice for blackjack.
Tell me which card the dealer is showing.
Enter 2-9, 10 (Jack, Queen, King) or 11 (Ace): 5
What is the combined total of your hand? 12
You should: Stand

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole