Question: Create a Sports Team superclass with 2 constructors ( a default / no - arg and a parameterized one with args ) , at least

Create a "Sports Team" superclass with 2 constructors (a default/no-arg and a parameterized one with args), at least 3 characteristics (instance variables), and appropriate setter and getter methods. In addition to the >3 instance variables, add an extra instance field called
"teamID" with setter/getter so you can use it for the
"Search" feature you are implementing in and then Create 2 specialized types of Sports Team subclasses (for example, BaseballTeam,..) each with 2 constructors (a default/no-arg and a parameterized one with args), at least 3 characteristics (instance variables), and appropriate setter and getter methods. Additionally, each constructor must call the superclass' constructor. After Create an ArrayList of Sports Team. Hardcode at least 3 of them in your array to begin with (they should be a combination of different specific teams i..., BaseballTeam, SoccerTeam,..) so you have them for your GUI list in
Then in the main code Present a GUI List of Sports Team objects from the ArrayList in (#3). You can just put a list of names for simplicity sake. Then Display (in GUI, not a popup - labels, textfields) the characteristics (instance variables) about the sports team currently selected from list in (#4) After Add Team / Delete Team buttons or menu items. You should have text fields to enter information for a new team. There should be a way to indicate what specific kind of team they are creating for the Add feature. You should update your ArrayList from (#3) as you add and delete items.
As you select from your list, show a picture - logo of the current team chosen. Choose either way to do this:
Approach #/(worth standard 20 pts): Show different pictures (use images/imageview) of team logos depending upon selection.
In the main code Have a "SEARCH" feature for your Team Manager which will show the characteristics of the team if it is found. You can make this a button or a menu item. You must use the RECURSIVE binary search algorithm from chapter 15(copy it into your code) which takes a sorted list of integers and looks for a number in that list (hint: put the team ids into a sorted list and then use that to search for a team id. If the team id is found, show the characteristics of the building (use a label or text field) and if the team id is not found, use the label to indicate that it wasn't found). Lastly Implement a "SAVE" feature.
Create 2 database tables - one for each of the subclasses (for instance BaseballTeams, Soccer Teams) & save your team information to it after user clicks on a "Save" button or a save menu item. Don't forget to add the fields from the superclass as database columns/fields in both tables!

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