A program takes two integers as input from the keyboard, representing the number of hits and the number of at-bats for a batter. Calculate the batter's hitting percentage. Check the hitting percentage to determine if it is above .300. If it is, output that the player is eligible for the All Stars Game; otherwise, output that the player is not eligible.
Example: A player had 70 hits and 200 at-bats. The batting percentage is 70 / 200 = .350.
You added hire date, position played, jersey number, and salary of the baseball player to the better's hitting percentage.
For this assignment, add a third class to the solution to present the user with a GUI to use for both data input and results output.
Turn in the following:
- Person.java file
- Player.java file that captures the batting average, hire date, position, jersey number and salary
- GUI java file that will capture the input from the user and display the results to the user.
- The Class diagram that shows the relationships between the classes.