Nasir Ali Assignment 01

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

OOPs Assignment 01

NAME: NASIR ALI

ROLL NO: 233664

CLASS: BSSE

SUBJECT: OOPs Theory

TEACHER NAME: Sir Saad –ur- Rehman

DATE: 24-MARCH-2024
Library Management System Report

Introduction:
The Library Management System (LMS) is designed to efficiently manage the operations of a
library, including book inventory, student records, and transactions such as book check-out and
return. The system is implemented using object-oriented principles in C++, with classes
representing books, students, and the library itself.

Class Descriptions:

Book:

Attributes: Title, Author, ISBN, Quantity.


Behaviors: display_info() - Displays information about the book.
Student:

Attributes: Name, Student ID, Books checked out.


Behaviors: display_info() - Displays information about the student, check_out_book(book) -
Checks out a book, return_book(book) - Returns a book.

Library:

Attributes: List of books, List of patrons.


Behaviors:
1. add_book(book) - Adds a book to the library inventory.
2. add_patron(patron) - Adds a patron to the library records.
3. display_books() - Displays information about all available books.
4. display_patrons() - Displays information about all patrons.
5. check_out_book(patron_id, book_title) - Handles the process of checking out a book.
6. return_book(patron_id, book_title) - Handles the process of returning a book.
Implementation:
The system is implemented following a modular approach, with each class defined in separate
header files (Book.h, Student.h, Library.h) containing inline functions, and the remaining
functions defined in the main (.cpp) file. This separation of specification from implementation
allows for better organization and maintainability of the codebase.

Functionality:
The system demonstrates the following operations:

Adding new books to the library inventory.


Adding new students to the library records.
Displaying information about all available books and students.
Allowing students to check out and return books.
Displaying updated information after each operation.
MAIN FUNCTION:
CODE OUTPUT:

Conclusion:
The Library Management System efficiently manages library operations, providing a user-
friendly interface for librarians to add, remove, and update book inventory, as well as manage
student records and book transactions. The modular design ensures flexibility and ease of
maintenance, making it suitable for libraries of various sizes. Overall, the system enhances the
efficiency and effectiveness of library management processes.

You might also like