Book Module

This module initialises a book class and calls the utility functions from bookutils module

Modules

Module name Description
bookutils utility functions to manage a library system, including book management,tracking the issue and return of books, and updating book statuses

import other dependencies based on the language chosen

Classes

Class name Description
Book A class for adding books with required parameters

Functions

Function name Description
Book(name,author,volume,issued) Constructor of Book class
add_book() Adds a new book to the library
find_book(name) Finds a book by its title
get_all_books() Gets the list of all books in the library
issue_book(name) Issues a book and updates its status to “Yes”
return_book(name) Returns a book and updates its status to “No”

Algorithm

  1. Book Class Initialization
  2. Add Book
  3. Find Book
  4. Get All Books
  5. Issue Book
  6. Return Book

Pseudocode