Menu

(Solved) : Assume Ferrets Variable Points Linked List Llnode Write Code Traverses List Prints Follow Q31356694 . . .

Assume the “ferrets” variable points to a linked list of”LLNode<Ferret> .” Write code that traverses the list andprints the following. Do not forget to consider the case where thelist is empty.
* The “LLNode<T>” class is in the “2.7 Introduction toLiked Lists”

* The “Ferret” class is to be implemented by you, and it holds”name” and “weight.”
* You must use your own implementation of the linked list datastructure.
a. The sum of the weight of the ferrets on the list
b. The count of how many ferrets are on the list
c. The names of the ferrets on the list in an alphabeticalorder
d. The names of the ferrets on the list in a reversealphabetical order
[in-class-only extra credits]
* each applied toward the lowest of your single lab/test inthe past (not future).
e. Remove a ferret in the middle of the list
f. Remove a ferret in the middle of the list

Expert Answer


Answer to Assume Ferrets Variable Points Linked List Llnode Write Code Traverses List Prints Follow Q31356694 . . .

OR