Java program on roulette

Assignment Help JAVA Programming
Reference no: EM13839296

1. Consider the game of Roulette, where players bet on the numbers 1 through 36 (as well as 0 and 00). A large wheel consisting all 38 of these numbers and a small ball is spun until the ball lands on one of these numbers at random. If a player correctly placed a bet on the lucky number, then he is paid back his original bet plus 35 times that bet. For example, if a player places a $10 bet on number 20 and 20 comes up, then we will receive his original $10 back plus an additional $350. If a player bets on the wrong number, then he simply loses the amount he betted. For simplicity, you don't need to worry about other types of bets that can be made (e.g. RED/BLACK bets, row/column bets, etc.) Any player can place one or more bets on individual numbers. Design a set of classes that represent objects that would be involved in the implementation of this game. Prepare a UML class diagram that shows the static relationship between all of the classes. Be sure to include all class names, fields, methods (full prototypes), access specifiers (private, public, etc.), data types, associations, dependencies, multiplicities, etc. You will need to think closely about which actions should be associated with which classes. For example, is spinWheel() a method that you will define in a RouletteWheel class or a RouletteDealer class?

Reference no: EM13839296

Questions Cloud

What is the probability that the birthdays of 7 people : What is the probability that the birthdays of 7 people will fall on 7 different days of the weeks, assuming equal probabilities for the seven days?
The cards are of the same denomination : From a deck of 52 cards , 3 cards are drawn at random. Find the following probabilities (A) the cards are of the same denomination (B) 2 are of the same denomination and 1 is different
Create a web page for a store that rents computers : Create a Web page for a store that rents computers by the hour. Use an external style sheet. Format the heading level styles in olive and the paragraphs in blue. Format the heading and body elements using sans-serif fonts, such as Arial and Helvetica..
Find the value of p for which a and b are mutually exclusive : Let A and B be two events with P(A)=0.4, P(B)=p and P(A∪B)=0.7 (a) Find the value of p for which A and B are mutually exclusive  (b) Find the value of p for which A and B are independent
Java program on roulette : Consider the game of Roulette, where players bet on the numbers 1 through 36 (as well as 0 and 00). A large wheel consisting all 38 of these numbers and a small ball is spun until the ball lands on one of these numbers at random.
An airline is deciding how many reservations to accept : An airline is deciding how many reservations to accept for a new flight from Indianapolis to Chicago. The plane has a capacity of 200 seats.  Because only 90 percent of passengers typically show up for this flight, they need to determine how many tic..
How to write a reader response paper : A critical essay that tells the reader what a text means to you. It reflects a close reading of the work, contains specific examples drawn from the work documented MLA style, parenthetically with page numbers
An internal control policy for an online retailer : An internal control policy for an online retailer requires a quality assurance check before a shipment is made. The tolerable exception rate for this internal control is 0.05. During an audit 500 shipping records were sampled from a population of 6,0..
Determine the breakeven level of output and sales : From the data determine the breakeven level of output and sales at which level of production total revenue is equal to total cost

Reviews

Write a Review

JAVA Programming Questions & Answers

  Text file containing the data

This program should begin by asking the user for the name of a text file containing the data. Then read the data which will be a line containing the dimensions of a 2 dimensional array followed by a 2 dimensional array of ints. Then perform variou..

  What will unboxing do with null values

Java Question: Whatwill unboxing do with null values?

  Write an application that displays the factorial

Write an application that displays the factorial for every integer value from 1 to 10. A factorial of a number is the product of that number multiplied by each positive integer lower than it.

  Writing a java program that provides simple statistics

You will be writing a Java program that provides simple statistics about the input data. The method stubs are given below. This assignment will give you experience with methods

  Packer logo method

Being a super Packer fan's wife, this assignment involves the use of the Green Bay Packer logo. Any die-hard Minnesota fans are welcome to use the Viking's logo instead.

  Assume that you are developing a java program which uses

suppose that youre developing a java program that uses decimal numbers and youd like to control the formatting of your

  Prompts user to type a negative number

Displays Quotient and Remainder of above two inputs, Prompts user to type a negative number to exit and any other number to continue

  Design and implement a java program to determine the sum

Design and implement a Java program that will gather a group of floating point numbers and determine the sum and average of the data entered. The program should use separate methods for inputting the data, calculating the sum, calculating the aver..

  Your project as a programming consultant is to create a

your project as a programming consultant is to create a program that develops an amortization schedule.nbsp your

  Write methods to retrieve information about a note

calculate the frequency, use the formula 440 x 2^(n/12) where n is the note number - implement a class that will be used to hold information about a musical note.

  Java program to implement currency converter

Write a JAVA program that helps the user convert currency. The user will enter the amount in Kuwaiti dinars. The program will print the equivalent amount in US dollar and Euros count his change.

  Create a computer class

Create a computer class and assume computers have the following fields: String manufacture, double price, int year

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