Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer question 13 and I have provided the Linked List to use as asked in the question Code is in java please let me know

image text in transcribedAnswer question 13 and I have provided the Linked List to use as asked in the question
image text in transcribed
image text in transcribedCode is in java please let me know if you would want a different linked list class example or if any more information is needed
13. Suppose that we would like to perform a bird survey to count the number of birds of each species in an area. Create a class BirdSurvey that is like one of the linked-list classes given in this chapter. (The linked list you use will affect what your new class can do, so give some thought to your choice.) Modify the inner node class to add room for a count. BirdSurvey should have the following operations: . add (bird)-adds the bird species bird to the end of the list, if it is not already there, and sets its count to 1; otherwise, adds 1 to the count for bird. . getCount (bird)-returns the count associated with the species bird. If bird is not on the list, returns zero. getReport-displays the name and count for each bird species on the list. Write a program that uses BirdSurvey to record the data from a recent bird survey. Use a loop to read bird names until done is entered. Display a report when finished

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions