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 constructors a defaultnoarg and a parameterized one with args at least characteristics instance variables and appropriate setter and getter methods. In addition to the instance variables, add an extra instance field called
"teamID" with settergetter so you can use it for the
"Search" feature you are implementing in and then Create specialized types of Sports Team subclasses for example, BaseballTeam,.. each with constructors a defaultnoarg and a parameterized one with args at least 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 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 # 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 # 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 # 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 pts: Show different pictures use imagesimageview 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 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 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 columnsfields in both tables!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
