Your task is to implement a Catalog ofBooks. 1. For this first you have toimplem
ID: 3609948 • Letter: Y
Question
Your task is to implement a Catalog ofBooks.
1. For this first you have toimplement Book class The Book class is a simpleclass to store information about a particular book and it has thefollowing data members:
Write default and parameterized constructors and setters gettersfor the Book class.
2. Catalog classis a linked list of Book objects and that can perform the followingfunctionality.
o Addmethod to add a book in the Catalog
o printAllBooks method to print all the books in theCatalog.
o searchByAuthor method will take author name as anargument and will find a book written by that author.
o Availablemethod to print all those books that are currently available. Ifthe status of a book is false than it means that book is notavailable, if the status is true then it means book isavailable.
3. Include a main function asfollows:
Hint:
Make Nodes of Book type and then link them tomake Catalog linked list. It means there will beanother class between Book and Catalog and that isBookNode class.
Explanation / Answer
Your task is to implement a Catalog ofBooks. 1. For this first you have toimplem
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.