Question: Objective You are to design a program to play a simplified version of Black Jack. The outline of the algorithm and data structures you are

 Objective You are to design a program to play a simplified
version of Black Jack. The outline of the algorithm and data structures
you are supposed to use are given below. Your task is to
design the complete algorithm and to implement it following the top-down approach.

Objective You are to design a program to play a simplified version of Black Jack. The outline of the algorithm and data structures you are supposed to use are given below. Your task is to design the complete algorithm and to implement it following the top-down approach. Simplified Computer Black Jack The game is played with one full deck of 52 cards. The values of the cards are as follows: Ace is 1 point, 2 is 2 points,.is 9 points and Ten, Jack Queen and King are 10 points. The game is for two players. A player's turn consists of drawing cards from the deck and adding up their values. The aim is to get to 21 points or close to 21 points. If the drawn cards add up to more than 21 points, the sum is reset to 0 and the player can't draw any more cards. Players start the game with a pot of 10 (this number should be easy to change in your program) cherries each. A round of the game consists of one turn of each player. In each round each player bets one cherry. The player, whose score is closer to 21, gets the other person's cherry. One of the players is simulated by the computer and the other one is a real person, i.e. you are supposed to design a game in which a person can play against the computer. The user goes first. S/he draws cards from the deck and adds their values. S/he can decide to stop drawing cards at any point, but can not draw any more cards if the accumulated sum is bigger than 21. The computer draws cards until the accumulated sum becomes bigger than 15. The user can decide to quit the program after any number of rounds, but the game should stop if MacBook Air

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!