Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please refer to the code below and write a C + + code that outputs heat or state according to the roles showed in the

please refer to the code below and write a C++ code that outputs heat or state according to the roles showed in the table the coach should take in three input values and pl
If the player has a usable ace
\table[[Player,Dealer's Card],[,2,3,4,5,6,7,8,9,10,A,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,],[12,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,],[13,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,],[14,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,],[15,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,],[16,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,],[17,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,],[18,Stand,Stand,Stand,Stand,Stand,Stand,Stand,Hit,Hit,Hit,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,],[19+,Stand,Stand,Stand,Stand,Stand,Stand,Stand,Stand,Stand,Stand,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]]
If the player does not have a usable ace
\table[[Player,Dealer's Card],[,2,3,4,5,6,7,8,9,10,A],[4-8,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit],[9,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit],[10,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit],[11,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit,Hit],[12,Hit,Hit,Stand,Stand,Stand,Hit,Hit,Hit,Hit,Hit],[13,Stand,Stand,Stand,Stand,Stand,Hit,Hit,Hit,Hit,Hit],[14,Stand,Stand,Stand,Stand,Stand,Hit,Hit,Hit,Hit,Hit],[15,Stand,Stand,Stand,Stand,Stand,Hit,Hit,Hit,Hit,Hit],[16,Stand,Stand,Stand,Stand,Stand,Hit,Hit,Hit,Hit,Hit],[17+,Stand,Stand,Stand,Stand,Stand,Stand,Stand,Stand,Stand,Stand]]
7.1 Input
Input consists of three cards, each on their own line. The first card belongs to the dealer, while the remainung two belong to the player.ease let it be a viable code that runs
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

clarify and articulate your research methodology;

Answered: 1 week ago

Question

consider how to build on prior learning.

Answered: 1 week ago