Ask Experts Questions for FREE Help !
Ask
    ahmed166's Avatar
    ahmed166 Posts: 1, Reputation: 1
    New Member
     
    #1

    Apr 24, 2014, 06:17 PM
    Lottery program
    Build a complete java program using JOptionPane that randomly generates a lottery of a three-digit number,prompts the user to enter a three-digit number, and determines whether the user wins according to the following rule:
    a. if the user input matches the lottery in exact order the award is 5,000
    b.if the user input matches three digits in different order, the award is 2,000
    c.if any 1 or 2 digits in the user input matches the lottery the award is 5,00

    Note
    1 if the user keyed in less than three digits or more than 3 digits prompt an error message and urge the user to key in again the numbers.
    2.use widow for input and output.
    smoothy's Avatar
    smoothy Posts: 25,490, Reputation: 2853
    Uber Member
     
    #2

    Apr 24, 2014, 06:28 PM
    Since that's a homework assignment. And we don't do your assignment for you. Show us what you have already. And someone can offer advice on the coding.
    odinn7's Avatar
    odinn7 Posts: 7,691, Reputation: 1547
    Entomology Expert
     
    #3

    Apr 24, 2014, 07:09 PM
    LOL!!!! You build it and let us know how it works.

    You seriously think someone here is going to do that so you don't have to?

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Program that convert a NFA to an equivalent DFA,I found this program in C [ 0 Answers ]

Program that convert a NFA to an equivalent DFA,by C++

DV lottery [ 0 Answers ]

I am a 3rd year MBBS student of Bangladesh.it needs 3 years more to complete the course here.But I have won DV lottery 2011.Is it possible to go to USA after completing my course by my current DV?

Change Position Of A Program In Program List? [ 2 Answers ]

How do I change the position of a program in the list of "All Programs"? (after placing the curser over the "Start" button then on "all programs".

Qestion1:emplyee pay program, question2:average program [ 1 Answers ]

I would just like to know how to write these programs and the proper way in which to go about doing so. Question #1 In this exercise you create a program that displays an employee’s name and gross pay. a) The figure below shows the partially completed IPO chart for the payroll program....


View more questions Search