Question: Problem Description: Design a class named Player with fields for holding a Womens Basketball players statistics. All fields should be private. Player # Player's Name

Problem Description:

Design a class named Player with fields for holding a Womens Basketball players statistics. All fields should be private.

Player #

Player's Name

GP

GS

Total Mins

Total FG

Total FGA

3FG

3FGA

FT

FTA

Off Reb

Def Reb

PF

A

TO

Stl

Blk

Total Pts

11

McGowan, Angel

29

28

890

131

331

33

125

84

117

23

57

68

73

91

46

3

379

Write the appropriate mutator and accessor methods for the classs fields. The class should also have methods that can compute the following:

The average minutes played per game by the individual The field goal percentage for the individual The 3 point FG percentage for the individual The free throw percentage for the individual The average rebounds for the individual

(25 points)

Next, design a class named Roster, which contains an array or ArrayList of Player objects. The class should also have methods that can compute the following:

Import a text file with stats information for multiple players (see example above) and create the Player objects. Save all statistics from the array/ArrayList of Player objects to a text file Display, in order, the top 3 individuals who has scored the most total points for the season Display, in order, the top 6 scorers per game on average. Display, in order, the top 3 assists per game on average. Display, in order, the 4 players with the least number of personal fouls.

(60 points)

Use exceptional handling where appropriate. I will attempt to break your program. (10 points)

Write a client (a test class with the main method) to test all the methods and constructors of your classes.

The included stats file is for your testing purposes, I will use a completely different file for my testing. So ensure you code is not hard coded for the student file.

**HERE IS THE TEXT FILE

Player # Player's Name GP GS Total Mins Total FG Total FGA 3FG 3FGA FT FTA Off Reb Def Reb PF A TO Stl Blk Total Pts Scored 11 "McGowan, Angel" 29 28 890 131 331 33 125 84 117 23 57 68 73 91 46 3 379 35 "Butler, Patrice" 27 18 544 131 271 20 54 48 64 43 105 62 13 51 14 9 330 24 "Knight, Anna Claire" 29 29 918 120 327 21 85 52 74 45 117 44 53 82 37 7 313 14 "Jones, Briana" 27 26 541 67 148 0 0 23 31 29 96 59 20 35 17 38 157 23 "Sams, Alexis" 29 29 891 47 138 37 109 22 27 7 54 47 59 60 21 3 153

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!