Java programs

Other types
Pages 2 (502 words)
Download 0
There are two files. '' has the Main method and '' performs the File Input and File Output. As soon as the application is powered up, the application asks the lottery administrator to enter the winning lottery number. Immediately a file titled 'AdminFile.txt' is created that holds that number.


The application then turns to user mode. It asks the number of tickets purchased. Based on the number entered it asks for the ticket numbers. Another file called 'UserFile.txt' is created that holds all the numbers entered by the user. The numbers are then checked against the winning number and appropriate results are announced. The application then asks if another user wants to try his own. The loop continues until 'n' is typed indicating end of application.
Download paper
Not exactly what you need?