Create a Java program to read in an unknown number of lines from a data file. YOu will need to create the data file in Notepad. The contents of the file will be posted by Courtney. This file contains a football team’s name, the number of games they have won, and the number of games they have lost.
1. Process all data until it reaches the end-of-file. Calculate the win percentage for each team.
2. OUtput to a file (”top.txt”) a listing of all teams with a win percentage greater than .500. This file should contain the team name and the win percentage.
3. Output to a file (”bottom.txt”) a listing of all teams with a win percentage of .500 or lower. This file should contain the team name and the win percentage.
4. Print in a message box: The number of teams with a record over .500 and the number of teams with a record of .500 and below, each appropriately labeled.
5. Print in the same message box: the team with the highest win percentage and the team with the lowest win percentage, each appropriately labeled.