n the main method
Ask the user for the name of a sports player
Ask the user for the number of years the sports player hasplayed competitive sport. Use this value as the size of adouble array.
Ask the user for the year the sport player began playingcompetitive sport
In a for loop, ask the user to enter the number of wins andlosses starting from the first year of play and store the winpercentage (wins/(wins+losses)) value in the array. The element atindex 0 will store the win percentage for the player’s firstyear.
Call the method printWinPercentage with the player’s name, thefirst year of play and
PayPal Gateway not configured
PayPal Gateway not configured