Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program in C language Follow the instruction as described Plz submit the text in the answer Submit today plz Many students graduate from college with

Program in C language
Follow the instruction as described
Plz submit the text in the answer
Submit today plz image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Many students graduate from college with substantal debt. In order to help you reduce it, we are going to create a Blackjack game so you can practice your card-counting skills before going to the boat to make your fortune. The Game I encourage you to look at wikipedia for a fuller description of the game. Here are the essentials: * A blackjack hand starts with two cards. The values of the cards are 10 for face cards(J, Q, K), 1 or 11 for Aces, and the number for all the rest of the cards The goal is to try to get a total as close to 21 as possible without going over. Note: since Aces can be either 1 or 11, you pick the largest value which doesn't exceed 21 if possible The only options you have are to either hit, which means to add another card to your hand, or to stand which ends your turn. You are playing against the dealer. At the beginning of the game, you only get to see one of the dealer's cards. After you are done playing, the dealer reveals the second card and plays his turn The dealer must follow this rule: If the total is less than 17, he must hit, otherwise, he must stand . If you go over 21, you lose. Otherwise, if the dealer goes over 21, you win. Otherwise, the person with the larger total wins. If the totals are the same its a tie. Blackjack is a gambling game, so before each hand you make a bet. If you win, you get double the amount of your bet back. If you lose, you get nothing. If there's a tie, you get your original bet back, but with no extra. The Program The sample run will show a typical interaction with this program, Since there is a random element to this game, the submission system will actually be checking your implementation of the card-playing library.I will check your actual game by hand In our program, the user will start with $1,000. The game will end either when the player runs out of money, or signifies that they are done by placing a negative bet. Also, typical casino blackjack games use multiple decks of cards (called a shoe) to make it more difficult to count cards. At the beginning of the program, you will ask the user how many decks they wish to play with Design We will be using several different structs to represent the different data types in this program, along with functions that perform operations on them. These functions are what the submission system will test. All of these functions must be defined in a file cards.c with prototypes in cards.h. Cards Cards are represented by a structure named card- lt must have two fields representing the suit and the value of the card. Both of these fields should be enumerated types

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

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions