Write a java application that allows user to play blackjack

Assignment Help JAVA Programming
Reference no: EM131374086

Java - Black Jack Application- FOR SOLUTION MESSAGE ME

Write a Java application that allows a user to play Blackjack against the computer. The computer will act as the house, dealing the cards and paying when you win. There is a general set of rules along with optional plays for both the player and dealer. For this assignment you will implement just a simple version of the game using the following basic rules: Only one deck is used and it is shuffled after every hand. Dealer hits on 16 or under and stands on all 17s or better. Your application does not include betting nor does it track a player's performance; it simply plays one hand at a time and declares a winner after each hand.

As mentioned before, there are many other variations, including splitting, doubling down, surrender possibilities, insurance, and more. Please do not implement any of these rules unless you are attempting the extra credit (see below). Classes: Your application must include the following six classes: BlackJack (the test class), Card, Deck, Player, Dealer, and Game. The BlackJack class and the Card class are complete. Do not change them. For the other four classes I have included partially complete templates to help get you started. NOTE: Your application must use all of these and must work with the BlackJack test class. For maximum points all I/O operations (printing to the monitor and reading from the keyboard) should happen in the Game class or the Player class.

For the Aspiring Hacker: Allow the player to buy chips, bet on each hand, and track how much money a player has from hand-to-hand.

Here are the specifications for this:

- The player must buy-in for at least $100.00.
- You must keep track of the player's funds from hand to hand.
- A player must bet between $10.00 and $1000.00 dollars on any hand.
- Blackjack pays 1.5 to 1 unless the dealer also has blackjack in which case it's a push (tie).
- Player may double down on any two card hand except blackjack.

Reference no: EM131374086

Questions Cloud

Write a definition of the error : Requirement:  In your own words: (a) write a definition of the error, and (b) describe how you will locate such errors in your own writing
Reproductive and central nervous systems : Objective:  Discuss a disease, condition or syndrome affecting the reproductive and central nervous systems and current research, events, or interesting facts about the disease/condition/syndrome.
List the seven categories of complaints with gas furnaces : List the seven categories of complaints with gas furnaces.
What if the good ethics are also good business practice : The case states that higher wage rates at the Alta Gracia factory have raised the cost per item by 20 percent. Can you see any way in which the philosophy with regard to pay and working conditions at Alta Gracia might lower costs in the long run?
Write a java application that allows user to play blackjack : Write a Java application that allows a user to play Blackjack against the computer. The computer will act as the house, dealing the cards and paying when you win.
Organ systems working together to maintain homeostasis : Help with the following grade 12 bio questions Excretory system. Explain why diseases in the kidney are diagnosed by urinalysis? Give an example of two organ systems working together to maintain homeostasis.
Explain the nature of the characters decision : Consider in the short story in which the central character has to make a decision or must take some decisive step that will alter the rest of his life as conciously and as thoroughly as you can, explain the nature of the characters decision
What explains the high level of corruption at siemens : What explains the high level of corruption at Siemens? How did managers engaged in corruption rationalize it?- What do you think would have happened to a manager at Siemens if he or she had taken a stand against corrupt practices?
Degrees of dominance : What are the three degrees of dominance and briefly what happens in each.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Is a java applet different than a java program

Is a Java Applet different than a Java program? Why do we need to write HTML code for a java Applet to run it? How do we test a Java Applet

  Identify contacts by type when displaying details of contact

Identify contacts by type when displaying the details of a contact: business or personal. Display all contacts' first and last names when the "display contacts" command is selected.

  Use javascript to write the onmouseenter event handler

Use JavaScript to write the onmouseenter event handler for the mouse enter event of the img tags (similar to the onclick event handler of the img tags in the ImageSwap/SlideShow applications). This handler should change the src attribute of the im..

  Implement methods insert and extract

The abstract class provides methods to add and remove a string from the front or back of the list. You will need to implement two additional methods: insert and extract.

  Create your own short and simple jdbc java code

Create your own short and simple JDBC Java code example that inserts 2 records into an Oracle table of your creation. Post your fully functional code along with screen shots demonstrating the successful running of it.

  Create a class named purchase

Create a class named Purchase. Each purchase contains an invoice number, amount of sale, and amount of sales tax. Include set methods for the invoice number and sale amount.

  Maintain a constant media schedule

It is usually unnecessary or not feasible to maintain a constant media schedule all year. What are the two other alternatives and what key characteristics of these two alternatives would be taken into account?

  Calculates the total annual compensation of a salesperson

Write a Java application using an Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson

  Implement a modified version of the card game war

Implement a modified version of the card game WAR

  Constructing a simple flowchart that describes simple logic

Constructing a simple flowchart that describes simple logic flow through a program. Translating the flowchart into pseudo code. Creating a simple module, based on the pseudo code created in step 2, which accepts a parameter and returns a value.

  How are the packaged files viewed

How are several Java files packaged, Why is there a need for packaging java files and How are the packaged files viewed?

  Write a java program that repeatedly enters a date

Write a Java Program that repeatedly enters a date and prints the day of the week that corresponds to each input date. Use a Calendar class object to find the day of week.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd