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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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