Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Implement a "library management" program to store and process the books' information in the library

Implement a "library management" program to store and process the books' information in the library

Computer Science

Implement a "library management" program to store and process the books' information in the library. 

Implement a class for the concept of Book as follows:

  • Each book has a unique id. As soon as the book is created, its id is automatically assigned to a value. The id of the first book will be 1 and the id of the nth book will be n. Further, the book id should not be modifiable. 
  • Each book has a title that must always have a minimum of 5 characters and a maximum of 50 characters. If the value given as the book title does not meet these conditions, the value "No Title" will automatically be considered as the book title. 
  • Each book has 1 to 10 authors. Each author has a first name and a last name. (Implement a separate class for the concept of Author
  • Each book object has a method called addAuthor that adds an author to the book's authors. 

Implement a class for the concept of Library as follows:

  • Each library has a name. 
  • Each library has 1 to 1000 books.
  • Each library object has a method called searchBooks that takes a string as a parameter and searches that string in the title of the books in the library and returns an array of books whose titles are the same as the input string (ignore case considerations). For example, if the input is "Java Programming", books entitled "java programming" and "JAVA programming" will be returned by the method. 
  • In implementing of the above classes, define the appropriate constructs and set / get methods. 

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE