Design a class named player with fields

Assignment Help Computer Engineering
Reference no: EM132104921

Problem Description:

Design a class named Player with fields for holding a Women's Basketball player's 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 class's 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

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.

Use exceptional handling where appropriate. I will attempt to break your program.

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

Reference no: EM132104921

Questions Cloud

Implement the lexical analysis task for a limited version : You should implement the lexical analysis task for a limited version (i.e., the depth of the nested loops) of a programming language.
Write an assembly program to read an integer : Write an assembly program to read an integer and count the number of ‘1' bits in it's binary representation. Label and print the output.
Write the sql code that will create the table structure : Write the SQL code that will create the table structure for EMPLOYEE table (Note that the JOB_CODE is the FK to JOB.)
A program to process customer requests to fly : The Flying Traveller Airline Company (FTAir) wants a program to process customer requests to fly from some origin city to some destination city.
Design a class named player with fields : Design a class named Player with fields for holding a Women's Basketball player's statistics. All fields should be private.
Development of managerial views on motivation : The human relations movement was the next significant step in the development of managerial views on motivatio
Development of managerial views on motivation : Revenue centers are responsibility centers in which the managers and other employees control revenues, costs, and the level of investment.
Introduces the child to the amazing animals of the world : It's required to build a system that introduces the child to the amazing animals of the world whilst teaching them new words in a fun way.
Implement insertion sort and selection sort algorithms : For a given input array, write separate functions to implement insertion sort and selection sort algorithms and perform the below tasks.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create a set of use cases for the picnics r us system

Create a set of use cases for the following system: Picnics R Us (PRU) is a small catering firm with five employees. During a typical summer weekend, PRU caters 15 picnics with 20 to 50 people each.

  Implement encryption-decryption procedures for rsa method

Implement encryption/decryption procedures for the RSA method (assume that s, p and N are all given and represented in arrays of integers of size 25).

  Why some companies do not pay sufficient

Reasons why some companies do not pay sufficient attention to staff induction

  Electrical or magnetic field that the nervous system produce

activation of the brain is measured by electrophysiological techniques using an electrical or magnetic field that the nervous system produces. These types of measures include may include magneto-encephalography (MEG) or electroencephalography (EEG..

  Are their natural clusters in the data

STA 141A Fall 2016 Assignment Topic: R Programming. Are their natural clusters in the data? Are these clusters related to different natural strata determined by the values of the categorical variables like Ed, Race, Sex, Smoke

  Explain when you would use a scsi drive

Discuss the questions and topics related to interface communications. Explain when you would use a SCSI drive. When you would have a need to use RAID? Explain.

  What special precautions would you take as systems analyst

What special precautions would you take as a systems analyst if you did not have direct contact with the user? Do you think that the modeling tools described.

  Briefly explain the working of ftp

The address depletion of IPv4 and other shortcomings of this protocol prompted a new version of IP known as IPv6. Explain the advantages of this new IPv6 when compared to IPv4 - Calculate the approximate bit rate and signal level(s) for a 4.2 MHz b..

  Explain the design of the adjacentrooms rectangular array

In your own words, explain the design of the adjacentRooms rectangular array. List each method header and briefly describe what that method does.

  What sort of people would go after the given information

What sort of people would go after this information? Why would they want it? What will/can they do with it? How would they get it? How would potential attackers be identified?

  Find the spring constants for each of two springs in series

The spring constant k is the force F divided by the amount x the spring stretches (k = F/x). See Fig. (a). For two springs in series (see Fig. (b)).

  What are three areas to look to fix this problem

You have a network with a DNS server and a DHCP server on it. Both are running on different servers.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd