00:01
Hello students, to read the data from the tennisinput .txt file and calculate the win percentage area for each year of the tennis player, so you use the implementation as the tenniswinpercentagearray .java program.
00:20
So here you need to ensure that the tennisinput .txt file is in the same directory as the program provided the correct path in the file as the file reader constructor.
00:33
As the program reads the player's information from the file including their name, their year, their turn, pros and the number of years they played competitive tennis.
00:46
It then creates the array to store the win percentage for each year.
00:52
After reading the data, it calculates the win percentage and stores it in an array.
01:00
Finally, the program calls the printwinpercentage() method to display the player's name and win the percentage of each year.
01:12
As you can see, i'll just summarize the code over here.
01:17
It opens the tennisinput .txt file using the buffer reader to read the player's information and the performance data...