NEW HERE? USE "AFORUM20" TO GET GET 20 % OFF CLAIM OFFER

UK: +44 748 007-0908 USA: +1 917 810-5386
My Orders
Register
Order Now

Programming Fundamentals

          Revise Listing 3.8, Lottery.java, to generate a lottery of a three-digit integer. The program prompts the user to enter a three-digit integer and determines whether the user wins according to the following rules: • If the user input matches the lottery number in the exact order, the award is $10,000. • If all digits in the user input match all digits in the lottery number, the award is $3000. • If one digit in the user input matches a digit in the lottery number, the award is $1000. Your program’s output should look like the sample shown below. Green text represents information entered by the user. Black text is produced by the program. Enter your lottery pick (three digits): 768 Lottery is 723 Match one digit: you win $1,000 Store the source code in a file named Lottery<your_name>.java. For example, your instructor’s source code would be stored in a file named LotteryPeggyDoerschuk.java. In comments at the top of the source code file place the following: <Alex John> COSC 1336