In JAVA, Write a class encapsulating the concept of statistics for a baseball te
ID: 3641435 • Letter: I
Question
In JAVA, Write a class encapsulating the concept of statistics for a baseball team, which has the following attributes: a number of players, a list of number of hits for each player, a list of number of at-bats for each player.Needs to include:
- A constructor with 2 equal-lenght arrays - number of hits per player and nujmber of at bats per player.
- Accessors, mutators, toString and equals methods
- Generate and return an array of batting averages based on attributes given
- Calculate and return total number of hits for the team
- Calculate and return number of players with batting averages over .300
- a method returning an array holding the number of hits in ascending order
Explanation / Answer
What about the user defined class?
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.