A program takes two integers as input from the keyboard


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:

  1. Person.java file
  2. Player.java file that captures the batting average, hire date, position, jersey number and salary
  3. GUI java file that will capture the input from the user and display the results to the user.
  4. The Class diagram that shows the relationships between the classes.

Solution Preview :

Prepared by a verified Expert
Business Management: A program takes two integers as input from the keyboard
Reference No:- TGS02944660

Now Priced at $25 (50% Discount)

Recommended (98%)

Rated (4.3/5)