java programming

posted by .

Create a program that will generate lottery numbers for the user. There are two types of numbers in the lottery, the standard numbers 1-43 and the power ball number 1-60.There are three different lottery games, a three number game, a five number game with a power ball, and a seven number game with a power ball. Ask the user for the game type and number of lottery plays that they would like to purchase. The three number games is 1 dollar per play, the five number game is 2 dollars per play and the seven number game is 3 dollars per play.After each selection show the numbers selected in sorted order (assume that the order does not matter in determining the winner).When the user is done with their plays,display the total cost of the plays purchased. I'm stuck with this question, can someone help? Thanks JR

  • java programming -

    Tell us where you're stuck, what bugs you, and we'll start from there.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Computers(Java Programming)

    Service Class: Lottery Write a Lottery class that simulates a lottery. The class should define an array of five integers named lotteryNumbers. The constructor should use the Random class (see the Java API) to generate a random number …
  2. Math

    In a certain lottery, five different numbers between 1 and 30 inclusive are drawn. These are the winning numbers. To win the lottery, a person must select the correct 5 numbers in the same order in which they were drawn. What is the …
  3. Statistics

    "Buy a Match 6 lottery ticket every day until you win the lottery. (In a Match 6 lottery, a player chooses 6 different numbers from the set {1, 2, 3, ..., 44}. A lottery representative draws 6 different numbers from this set. To win, …
  4. math!

    1) A lottery is set up in which players pick six numbers from the set 1, 2, 3, ... , 39, 40. How many different ways are there to play this lottery?
  5. math help pls!

    A lottery is set up in which players pick six numbers from the set 1, 2, 3, ... , 39, 40. How many different ways are there to play this lottery?
  6. math help pls!

    A lottery is set up in which players pick six numbers from the set 1, 2, 3, ... , 39, 40. How many different ways are there to play this lottery?
  7. programming

    Problem 6.9 Lottery Number Generator A lottery commission offers four different lottery games to play: Three-number, Four-number, Five-number and Five-number + 1 lotteries. Each game has independent numbers. Develop an application …
  8. statistics

    In a certain lottery, five different numbers between 1 and 31 inclusive are drawn. These are the winning numbers. To win the lottery, a person must select the correct 5 numbers in the same exact order in which they were drawn. What …
  9. Java programming

    Need help here how to do this program write the definition of a method that takes as input three numbers and returns the sum of the first two numbers multiplied by the third number (Assume that the three numbers are of type double.) …
  10. math

    in a certain, lottery five different numbers between 1 and 35 inclusive and drawn. these are the winning numbers. to win the lottery, a person must select the 5 correct numbers in the same order in which they were drawn. what is the …

More Similar Questions