Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This program needs to be completed in Java. Thank you so much for your help. Description: Your program will play the simplified version of Blackjack,

image text in transcribed

This program needs to be completed in Java. Thank you so much for your help.

Description: Your program will play the simplified version of Blackjack, which plays at many casinos. The computer will be the dealer and 1 user will play against the dealer. In this game the player/user cannot split the card. The player will be given 100 initially and he must bet a positive number to play. When the player runs out of money the game will stop. The dealer will win when there is a tie. Initially both dealer and player will get 2 cards. If the dealer has 21, he wins. Otherwise if the player has 21, he wins. Both initial cards of the player will be face-up. The dealer first card is face-down and the second card is face-up. When both sides do not have 21 initially, the user gets the chance to get more cards or stand. The user can win by having more points than the dealer but not more than 21. He can also win when dealer draws a total greater than 21. When the user draws a value larger than 21, he loses the bet. When the player stands, it is time for the dealer to play. His first card must turn its face The dealer will draw to a value of 17 or larger if his initial value is less than 17. It is a rule of the black jack. When the dealer draws a value larger than 21, the user wins. The dealer wins when there is a tie, or he draws a value higher than the user. Jack, Queen and King are valued at 10. Ace has 1 or 11 value. The program must calculate the best value for the dealer and player. For example, 3 cards, 7ofSpade, AceofDiamond and 10ofClub, will be evaluated as a value of 18, (not 28); In addition, the program should have three more features. It should display a menu of 4 choices: 1. 2. 3. 4. Create a new deck Deal 4 cards and show the number of remainder cards Shuffle the card and show the cards. Play the Blackjack game

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

HOW MANY TOTAL WORLD WAR?

Answered: 1 week ago

Question

Discuss the scope of financial management.

Answered: 1 week ago

Question

Discuss the goals of financial management.

Answered: 1 week ago

Question

2. How will you handle the situation?

Answered: 1 week ago