Question: Java Powerball simulation You will be given two input files. One with players names and ticket numbers and the other file with the winning six
Java Powerball simulation
You will be given two input files. One with players names and ticket numbers and the other file with the winning six numbers.
Example:
(file for winning numbers, the first five numbers are white balls the last number is the red ball)
15 36 52 01 03 19
(file for players names and tickets)
Chuck E. Cheese,19,18,10,29,39,17
Mary D. Popins,07,19,11,04,01,11
You are to ask the user to input both files and read with SCANNER
Your program needs to be able to generate two CVS files and screen output.
One file should contain names and lottery ticket values and numbers on one line
Then you should close and re open the file for reading and use the contents as your input
When calculating the game statistics
**It is very important to set up the program in a way so it can be tested with another file.
**you will first generate this as output file and then uses it s an input file.
The second file statistics.cvs should contain the following
Each persons name, and the number of white ball matches, the number of red ball matches.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
