Write a java program to simulate a pick 3, 4 or 5 lottery drawing. a

 

Write a Java program to simulate a pick 3, 4 or 5 lottery drawing. A lottery game of this type
will draw values between 0 and 9. You should use the Math.Random() or the java.util.Random() class to
generate the values in the lottery drawing. The program should prompt the user for which lottery game
they want to play. The program should also ask how many times they want to play the game. The output
should show the numbers picked for each game and the sum of the numbers of all games. Here is a
sample run:
Which lottery game do you want to play (Enter 3 for pick-3, 4 for pick-4 or 5 for pick-5? 3
How many games would you like to play? 10
Thank you! The numbers selected were:
3 4 9
2 4 7
3 3 1
0 3 2
9 3 1
9 2 4
4 5 2
1 1 0
0 1 7
8 6 3
The sum for all numbers picked was: 107
Grading Rubric:

Submission requirements:
Your deliverables include all Java files (.java) and a single word (or PDF) document. The Java files should
be named appropriately for your applications. Your word document should include screen shots
showing the successful compiling and running of each application, and a detailed description of the test
plan for each application. The test plan should include the input, expected output, actual output and if
the test case passed or failed.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"