Please boost your Plan to download papers
Pages 2 (502 words)
There are two files. 'MainClass.java' has the Main method and 'ReadAndSave.java' 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.
Not exactly what you need?