Player class: There should be two elements: name of player and score collection.
ID: 3631300 • Letter: P
Question
Player class: There should be two elements: name of player and score collection. Accessor and mutator method should be included for each element.
Team Class: There should be at least 2 things: team names and name of player. Accessor and mutator method should be included for each element.
Game Class: There should be 3 things: two team’s names and a int number to identify game.
Input 4: It is provided. It gives data to your programs. It has public method, getNextString, that returns a string to get data for your program.
Your program should display the following information:
For each game:
Display the final score for the game and the name of the highest scoring player(s) in the game, the score and the name of his team.
For each team:
Display the player of each team in alphabetical order by last name with the average score of each player for the season and the average score for the season against each of the two opponent teams.
The output example:
LAKERS
Kobe Bryant, Season Average: 19
Brian Cook, Season Average: 14
Derek Fisher, Season Average: 12
Karl Malone, Season Average: 15
Shaquille O'Neal, Season Average: 26
MAVERICKS
Travis Best, Season Average: 13
Shawn Bradley, Season Average: 15
Tony Delk, Season Average: 24
Dirk Nowitzki, Season Average: 13
Antoine Walker, Season Average: 12
KNICKS
Shanon Anderson, Season Average: 15
Howard Eisley, Season Average: 15
Allan Houston, Season Average: 14
Mike Sweetney, Season Average: 23
Kurt Thomas, Season Average: 23
Game 1: MAVERICKS 74 KNICKS 94
High Score of 25 scored by
Tony Delk of the MAVERICKS
Mike Sweetney of the KNICKS
Game 2: MAVERICKS 70 LAKERS 97
High Score of 28 scored by
Kobe Bryant of the LAKERS
Shaquille O'Neal of the LAKERS
Game 3: LAKERS 83 KNICKS 96
High Score of 28 scored by
Mike Sweetney of the KNICKS
Game 4: LAKERS 91 MAVERICKS 96
High Score of 29 scored by
Tony Delk of the MAVERICKS
Game 5: KNICKS 93 MAVERICKS 79
High Score of 24 scored by
Kurt Thomas of the KNICKS
Game 6: KNICKS 89 LAKERS 83
High Score of 28 scored by
Kurt Thomas of the KNICKS
Average score for season by LAKERS against opposing teams:
MAVERICKS 94
KNICKS 83
Average score for season by MAVERICKS against opposing teams:
LAKERS 83
KNICKS 76
Average score for season by KNICKS against opposing teams:
LAKERS 92
MAVERICKS 93
Explanation / Answer
Ok rate this as lifesaver first. I am sick and tired of people taking advantage of me. I spend 30 minutes to one hour posting a solution and then they just take the answer and dont rate it. Inbox me once you have rated it and I will send you the solution.