r. Patrick is fond of reading books he is looking for a computerized way to keep record of his book collection, you have been given the responsibility to meet up his following requirements. (Use appropriate data structure to accomplish your task), develop following methods: 1. Add(): adds a new book to the list ( A book contains name of the book, author name) NOTE: every new book will have access to its neighboring books (previous and next) 2. Remove():in case any book is removed from the pile update your list 3. countBooks(): displays the total number of books 4. search(): returns true if the given book is present in the list else returns false 5. display(): shows the book collection
Question no 01:
Mr. Patrick is fond of reading books he is looking for a computerized way to keep record of his
book collection, you have been given the responsibility to meet up his following requirements.
(Use appropriate data structure to accomplish your task), develop following methods:
1. Add(): adds a new book to the list ( A book contains name of the book, author name)
NOTE: every new book will have access to its neighboring books (previous and next)
2. Remove():in case any book is removed from the pile update your list
3. countBooks(): displays the total number of books
4. search(): returns true if the given book is present in the list else returns false
5. display(): shows the book collection
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images