In the main method
- Ask the user for the name of a tennis player
- Ask the user for the number of years the tennis player has played competitive tennis.Use this value as the size of a double array.
- Ask the user for the year the tennis player began playing competitive tennis
- In a for loop, ask the user to enter the number of wins and losses starting from the first year of play and store the win percentage (wins/(wins+losses)) 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 for each year with 1 number after the decimal.