Define a variation on StringLinkedListSelfContained from Listing 12.7 that stores objects of type Species, rather than of type String. Write a program that uses that linked-list class to create a linked list of Species objects, asks the user to enter a Species name, and then searches the linked list and displays one of the following messages, depending on whether the name is or is not on the list:
Species Species_Name is one of the
Number_Of_Species_Names_On_List species on the list.
The data for Species_Name is as follows:
Data_For_Species_Name
or
Species Species_Name is not a species on the list.
The user can enter more Species names until indicating an end to the program. The class Species is given in Listing 5.19 of Chapter 5. (If you prefer, you can use the serialized version of Species in Listing 10.9 of Chapter 10.)
This is closely related to the solution of the next project which reads and writes to a file.
You might also like to view...
Referring to the keysToIndexes function, what is the result of the following statement? keysToIndexes([39, 18, 4, 51, 6, 28], 9)
A. [4, 1, 5, 7, 6, 2] B. [3, 0, 4, 6, 6, 1] C. [2, 0, 3, 5, 5, 0] D. [8, 3, 6, 0, 1, 4]
What process will cause each file and folder on your computer's hard drive to occupy a single contiguous space on the volume?
A. performing a backup B. error-checking C. defragmenting D. disk compression