Question: Add a record and the corresponding stats into each area, that is 1 quarterback, 1 runningback, 1 wide receiver Create an abstract super class called

Add a record and the corresponding stats into each area, that is 1 quarterback, 1 runningback, 1 wide receiver
Create an abstract super class called FootballPlayer with the following attributes: FootballPlayer is abstract and is italicized in the UML diagram
Use JavaDoc comments in the Parent and Child Classes only but use @author for the driver
name : String
jerseyNumber: int
footballTeam: String
Methods:
getters and setters
at least three constructors,
abstractMethod play();
equals()
toString()
Create a sub class of FootballPlayer called WideReceiver with the following attribute
receptions: int
touchdowns: int
and the following methods
getter and setter for each attribute
at least threeconstructors
play(); Print "Wide Receiver had "+ touchdowns +" touchdowns.";
equals()
toString()
Create a sub class of FootballPlayer called RunningBack with the following attributes:
rushingYards: int //single game
receptions: int
touchdowns: int
and the following methods
getters and setters for the two attributes
three constructors
play(); prints "Running Back had "+ rushingYards +" rushingYards in a single game".
touchdown()
equals()
toString()
Create a sub class of FootballPlayer called QuarterBack with the following attributes:
touchdowns: int
interceptions: int
and the following methods
getter and setter for each attribute
three constructors
play(): Print "The quarterback had "+ touchdowns +" touchdowns."
touchdown()
equals()
toString()
Demonstrate these in a "driver"
The driver and or utilities will do the following. Be creative
create an ArrayList of FootballPlayers from this FootballPlayers File
have a method to create the ArrayList
have a method to display all items in the ArrayList
have a method to search the ArrayList for a FootballPlayer name (user entered - you can use the entire name here, but it would be better if you searched only for partial names How would you do this, look at the String Chapter we did last week?
have a method to search the ArrayList for a FootballPlayer team name
have a method to search and display just the quarterbacks
have a method to search and display just the wide receivers
have a method to search and display just the running backs
have a method to display the bestPlayer() in each child. The best Quarterback has the least interceptions, The best WideReceiver has the most touchdowns, and the best RunningBack has the most rushingYards in a single game.
have a method that sorts on team name
a method that will display a short menu of options
You might want to have sub menus to get the best quarterback and search on quarterbacks by team or number for example.
Deliverables
A zipped folder containing the following:
FootballPlayer.java
Widereceiver,java
Runningback.java
Quarterback.java
FootballPlayerDriver.java (or another suitable name for the application)
A UML class diagram of the above
the data file ADD 3 OF YOUR FAVORITE PLAYERS TO THIS FILE WITH THEIR STATS AS STATED ABOVE

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 Accounting Questions!