Question
These are the methods. 1. Team class 2. TeamNode 3. shellLinkList 4. TeamLinkList 5. TeamLinkListClient What is the code for this? The code for some
These are the methods.
1. Team class
2. TeamNode
3. shellLinkList
4. TeamLinkList
5. TeamLinkListClient
What is the code for this?
The code for some of the methods has been provided for you. Problem: Code a class encapsulating a singly link list of football teams. A football team has the following attributes:
1. Teams nickname
2. Its number of wins
3. Its number of losses ( assumed there are no tie games)
Implement the following methods: 1. Constructor
2. Insert
3. Delete
4. Peek
5. toString: returns a string containing the info about all the teams
6. mostWins: this method returns the team with the most wins
7. bestFive: this method returns the top five teams based on the winning percentage. If multiple teams have the same winning percentage, just return the first five teams
8. Search: this method search the list for a particular team and returns the information for the team. If the team is not in the list it should return null.
9. Count: this method returns the number of the teams in the list.
10. isEmpty: returns true if the list is not empty, and returns false otherwise.
Write a driver class that does the following: 1. creates an object of the list
2. write a method called populate that populate the list by reading from a file that you need to create
3. Write a method that accepts the name of the team and the list of all the teams as its parameter, and then call the method delete to delete that team from the list
. 4. Write a method called first team that accepts the list of the team as its parameter and returns the first team in the list. 5. Write a method call insert that accepts the list of the team as its parameter. This method asks for a team information, then adds the team to the list.
6. Read the following information for each team from a file and create the link list by calling appropriate methods.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started