0% found this document useful (0 votes)
31 views11 pages

Amanath CS Project Class 12

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views11 pages

Amanath CS Project Class 12

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

CENTRAL BOARD OF SECONDARY EDUCATION

JINDAL ADARSH VIDYALAYA


SHANKAR HILL TOWN

This is to certify that the project on “LIBRARY MANAGEMENT SYSTEM”


was successfully carried out by AMANATH NAWAZ at JAV during the
academic year 2024-2025.

MR. KUMARSWAMY BALIGAR MRS. BHAGYAJYOTI B PATIL


(Principal) (Department of CS)

External Examiner
Acknowledgement
It gives me immense pleasure in bringing out this synopsis of the
project entitled ‘LIBRARY MANAGEMENT SYSTEM’ .

Firstly, I would like to express my profound gratitude and deep regards


to our teacher and mentor MRS. BHAGYAJYOTI B PATIL,who gave us
her valuable suggestions, exemplary guidance, mentoring and constant
encouragement through the course of this dissertation.

I also take this opportunity to express my deep gratitude to


MR. KUMARSWAMY BALIGAR, Principal of Jindal Adarsh Vidyalaya,
for his affable support, valuable information and guidance, which
helped us a lot in completing this task through the various stages.

I am immensely grateful to all who have also been involved in this


project as without their valuable suggestions and support, it
would not have been possible to develop the project within the
prescribed time.

With Sincere Regards


AMANATH NAWAZ
XII-SCIENCE
PROJECT ON “LIBRARY MANAGEMENT SYSTEM”
INTRODUCTION: The Library Management System is a Python-based
application designed to streamline the management of books in a
library. This project enables users to efficiently perform tasks such as
adding new books, removing old ones, lending books to readers, and
returning borrowed books. It provides a simple yet functional interface
for managing the library's inventory, demonstrating the principles of
object-oriented programming.
OBJECTIVES OF THE PROJECT: The primary objectives of this project

are :

Add Books: Add new books to the library collection with details such as

title, author, and year of publication.

Remove Books: Remove books from the collection when they are no

longer available or relevant.

Lend Books: Keep track of borrowed books by changing their status to

"Not Available" when they are lent out.

Return Books: Update the status of borrowed books to "Available" when

they are returned.

Display Books: List all books in the library collection along with their

details and current availability status.


FLOW CHART
SOURCE CODE
class Book:
def __init__(self, title, author, year, status="Available"):
self.title = title
self.author = author
self .year = year
self.status = status

def __str__(self):
return f"{self.title} by {self.author}, {self.year}. Status: {self.status}"

class Library:
def __init__(self):
self.books = []

def add_book(self, title, author, year):


new_book = Book(title, author, year)
self.books.append(new_book)
print(f"Added '{title}' to the library.")

def remove_book(self, title):


for book in self.books:
if book.title == title:
self.books.remove(book)
print(f"Removed '{title}' from the library.")
return
print(f"'{title}' not found in the library.")

def lend_book(self, title):


for book in self.books:
if book.title == title:
if book.status == "Available":
book.status = "Not Available"
print(f"You have borrowed '{title}'.")
return
else:
print(f"'{title}' is currently not available.")
return
print(f"'{title}' not found in the library.")

def return_book(self, title):


for book in self.books:
if book.title == title:
if book.status == "Not Available":
book.status = "Available"
print(f"You have returned '{title}'.")
return
else:
print(f"'{title}' is already available.")
return
print(f"'{title}' not found in the library.")

def display_books(self):
for book in self.books:
print(book)

def main():
library = Library()

while True:
print("\nLibrary Management System")
print("1. Add a book")
print("2. Remove a book")
print("3. Lend a book")
print("4. Return a book")
print("5. Display all books")
print("6. Exit")

choice = input("Enter your choice: ")

if choice == "1":
title = input("Enter the title of the book: ")
author = input("Enter the author of the book: ")
year = input("Enter the year of publication: ")
library.add_book(title, author, year)
elif choice == "2":
title = input("Enter the title of the book: ")
library.remove_book(title)
elif choice == "3":
title = input("Enter the title of the book: ")
library.lend_book(title)
elif choice == "4":
title = input("Enter the title of the book: ")
library.return_book(title)
elif choice == "5":
library.display_books()
elif choice == "6":
print("Exiting the Library Management System. Goodbye!")
break
else:
print("Invalid choice. Please try again.")
if __name__ == "__main__":
main()
OUTPUT
HARDWARE REQUIREMENTS:

OPERATING SYSTEM : Microsoft Window 11


PROCESSOR : Intel Core i3
MOTHERBOARD : EQ0024AU
RAM : 8.00 GB
HARD DISK : 512 BG
CD/DVD or PENDRIVE : (If Backup required)
FLOPPY DRIVE : (If Backup required)
MONITOR : LED
PRINTER : Epson L3250

SOFTWARE REQUIREMENTS :
IDLE (Python) latest version
MS- Word 2023 for documentation.
Python Interpreter
INSTALLATION PROCEDURE
## Installation Guide

### Step 1: Install Python


1. Download Python from the [official
website](https://www.python.org/downloads/).
2. Follow the installation instructions, ensuring you add Python
to your system PATH.

### Step 2: Save and Run the Code


1. Create a new file named library_management.py and
paste the provided code into it.
2. Run the script using:
bash
python library_management.py

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy