The file input.txt contains all of the winning number combinations from the Missouri Lottery since it took its current form on January 3, 1998. The data is in a file called "input.txt" All of the data in the file is integer. You should read the file as integers and do calculations in integers as much as possible. You are to read the data in the file and then print out the following information:
- The total number of picks in the file (not counting the header row)
- The number of times 7 was drawn and the percent of the total that 7's represent.
- The number of times 13 was drawn and the percent of the total that 13's represent.
Use the format shown below. Use the System.out.printf() command for the printing:
There were 9888 numbers read.
The number 7 was read 225 times (2.275%)
The number 13 was read 232 times (2.330%)
You should print your report from a method with a declaration similar to the following:
public static void printReport(int total, int sevens, int thirteens)