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

  What are the steps necessary to create a jar file

What are the steps necessary to create a JAR file where the main entry point is identified?

  Write a java program to simulate a die

Write a Java program to simulate a die. A die has values of either 1, 2, 3, 4, 5 or 6 on the face. You should use the Math.Random() or the java.util.Random() class to generate the values on the die.

  We will simulate a very simple network by having a process

we will simulate a very simple network by having a process correspond to a node in the network and files correspond to

  Write a method called add uneven arrays

Write a method called addUnevenArrays that takes two arrays, a and b, and returns a new array, c, with alength that is the maximum of the lengths of a and b. Each c[i] is the sum of the corresponding elementsof a and b if both elements exist.

  Create both method contract and the method specification

Your demonstrations of how to create both method contract and the method specification for the GetCourseByCourseID() method of the CourseList class were very well received by your team members

  Create a program that asks a user for a number

Create a program that asks a user for a number between 1 and 100, the program should then output to the user higher, lower, or correct, depending upon the input from the user and the random number assigned to the number to be guessed

  A jsp expression can contain any java expression

A JSP expression can contain any Java expression that evaluates to a

  Cognitive-based approaches to understanding motivation

Compare and contrast the need-based and cognitive-based approaches to understanding motivation?

  Design the static method to find the smallest number

A Given a "Complex" class with all the standard methods for complex numbers, design the static method below to find and return the smallest complex number - Design the static method to find and return the smallest complex number.

  Define responsive design

Define Responsive Design and clarify what techniques can be used to create a responsive design for a web application? Explain what makes jQuery Mobile different from other JavaScript libraries such as jQuery and jQueryUI

  Development of a real-time driver tracking system

Development of a Real-Time Driver Tracking System. Putting comments on every major function and methods explaining its use and brief description.

  Find the errors in the code

You may assume that the following statements precede those in the table below:

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