Thursday
June 20, 2013

Homework Help: programming

Posted by Gabe on Wednesday, November 23, 2011 at 11:19am.

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 that randomly picks numbers for all four games and displays the generated numbers in a GUI. Declare a method that generates a random number based on a range given, and returns the random number as a String. The games are played as follows:
a) Three-number lotteries require players to choose three numbers in the range 0-9
b) Four-number lotteries require players to choose four numbers in the range 0-9
c) Five-number lotteries require players to choose five number in the range 1-39.
d) Five-number + 1 lotteries require players to choose five numbers in the range 1-49 and an additional number in the range 1-42.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

java programming - Create a program that will generate lottery numbers for the ...
Statistics and Probability - The Tri-State Pick 3 lottery game offers a choice ...
Liberal arts math - 1) A lottery draws six numbers from 42 possibilities, ...
stu - An individual with utility function U(X) = X2 bought Lottery A and Lottery...
math - suppose a lottery game allows you to select a 2-digit number. Each digit ...
Math - PLEASE HELP I DON'T KNOW WHAT TO DO D': I don't understand ...
maths - lisa won the lottery she used 1/2 of her lottery win to buy a house she ...
Math - In the town of Niceville, a local lottery is held once a year for the ...
• Use at least five adverbs and five adjectives to - Lottery ticket movie ...
Statistics - "Buy a Match 6 lottery ticket every day until you win the ...

For Further Reading

Search
Members
Community