Amanath CS Project Class 12
Amanath CS Project Class 12
External Examiner
Acknowledgement
It gives me immense pleasure in bringing out this synopsis of the
project entitled ‘LIBRARY MANAGEMENT SYSTEM’ .
are :
Add Books: Add new books to the library collection with details such as
Remove Books: Remove books from the collection when they are no
Display Books: List all books in the library collection along with their
def __str__(self):
return f"{self.title} by {self.author}, {self.year}. Status: {self.status}"
class Library:
def __init__(self):
self.books = []
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")
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:
SOFTWARE REQUIREMENTS :
IDLE (Python) latest version
MS- Word 2023 for documentation.
Python Interpreter
INSTALLATION PROCEDURE
## Installation Guide