Question: CS 444 Project 4 Black Jack Write a C++ program to store a fifty-two cards in an array. The deck of cards consists of 13
CS 444 Project 4 Black Jack Write a C++ program to store a fifty-two cards in an array. The deck of cards consists of 13 spades, 13 hearts, 13 diamonds, and 13 clubs. There are 6 players in the table and a dealer. Your program should have at least the following functions: Shuffle the card .Put the bet on the table. Minimum bet is $5 and maximum bet is $20. The dealer has $ and each player can have up to $1000. filled in. 10000 If dealer's money dropped to $2000 then it has to be Deal two card to each user and two cards to the dealer. the sum of two cards is 21, which is black jack, then it is a winner. If both dealer and player have 21 with two cards then it is a tie. User can hit and request for more cards as long as the sum is the than 21. If the sum is greater than 17 and less than 21 then your program should inform the player the sum. If the sum of cards is greater than 21 then it is busted. If the player is not busted and stays in the game then dealer can get more cards as long as the sum is less than 17 If only user gets 21 with two cards then dealer has to pay 50% more than player's bet. If neither player nor dealer are busted then whoever has higher number is the winner. . . Shuffle the card after 2 deals Repeat your program for 6 times. . Record the total gain/loss of each player and dealer and display them
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
