Instructions
Select one of three sports, football, hockey, or basketball, and create a program that calculates at least one of statistics provided below:
Football: Calculate the team’s winning percentage.
Hockey: Calculate S% (percentage of shots that end up scoring a goal).
Basketball: Calculate a player's three point percentage.
The program will contain two classes. The main class will request the user to enter all necessary information to determine the statistic, and the server class will take that information and calculate the sport statistic selected.
The main class should contain:
• The main method.
• A server object.
• A request for the user to enter all necessary information and pass it as parameters to the server class.
• A display of the statistic, passed back from the server class.
The server class should contain:
• A constructor method.
• Private variables needed to accomplish the task.
• All private variables instantiated inside the constructor.
• At least 3 methods, including the toString() and constructor methods.