Create a program called TennisWinPercentageArray.java. An input file called tennisInput.txt contains the following data:
• Name of a tennis player
• The year the player turned pro
• The number of years the player has played competitive tennis
• The number of wins and losses for each year starting from the player’s first year (if the player has been pro for three years, there will be six int values: wins, losses, wins, losses, wins, losses)
In the main method:
• Read the name of a tennis player
• Read the year the player turned pro
• Read the number of years the tennis player has played competitive tennis. Use this value as the size of an array of type double.
• Create a for loop that iterates from 0 to the number of years the player has played pro. In the loop, read the number of wins and losses for the year. Calculate win percentage (wins / (wins + losses)) and store this value in the array. The element at index 0 will store the win percentage for the player’s first year.
• Call the method printWinPercentage() with the player’s name, the first year of play, and the array
In the printWinPercentage() method:
• There should be three parameters: a String for the player’s name, int for the first year of play, and a double array
• Display the player’s name
• Display the year and the win percentage (multiplied by 100, output to 1 decimal) for each year.