Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a java program accordingly, this is part 01, check my other post for the next part kindly Part l: AFLTeamMember (10 marks) You will

Create a java program accordingly, this is part 01, check my other post for the next part kindly image text in transcribed
Part l: AFLTeamMember (10 marks) You will implement a class AFLTeamMember. Each team member (players, coaches, etc.) has a name and a position. You will implement this class, including Better and setter methods as appropriate. The positions on an AFL team are as follows: FB,HB,C,HF,FF,FOL,IC,COACH. Therefore, check if the value of position is relevant before setting in the setter. Also, write a toString method to have String representation of an AFLTeamMember as follows: "FirstName LastName,POSITION". For example, "Simon Goodwin, COACH". Part II: AFLPlayer (10 marks) You will implement a class AFLPlayer. This will be a child class of AFLTeamMember. Each AFLPlayer, in addition to having a name and a position, will also have a number, and may or may not be a captain. You will implement this class, including getter and setter methods as appropriate. However, for setting the value of number, it is required to check if the number is a valid positive. number. The String representation of an AFLPlayer should be as follows "[Number] FirstName Last Name, POSITION", followed by "(c)" if that player is a captain. For example, "[1] Adam Treloar, HFn, or "[11] Max Gawn, FOL (c)". Part IIl: AFLTeam (10 marks) You will implement a class AFLTeam. Each team has a name, a coach (which is an instance of AFLTeamMember), and a lineup consisting of 22 AFLPlayers. You will implement this class, including getter and setter methods as appropriate. Also write a tostring method to get current value of all the attributes of this class. Part IV: AFLMatch (15 marks) You will implement a class AFLMatch. An AFL match has two AfLTeams homeTeam and awayTeam, and the score attributes for each team. In an AFL match, each score can either be a goal worth 6 points, or a behind, worth 1 point. You will need to keep track of these separately, as in the number of homeGoals, the number of homeBehinds, the number of awayGoals, and the number of awayBehinds. This class will also contain main() method and another method to load the lineup. You will implement this class, including getter and setter methods as appropriate

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Logic In Databases International Workshop Lid 96 San Miniato Italy July 1 2 1996 Proceedings Lncs 1154

Authors: Dino Pedreschi ,Carlo Zaniolo

1st Edition

3540618147, 978-3540618140

More Books

Students also viewed these Databases questions

Question

=+Is the fear relevant to the issue?

Answered: 1 week ago