CS Project 2024-25
CS Project 2024-25
1 | Page
-:INDEX:-
2. System Requirements 4
4. Output 12-14
5. Flowchart 15
6. Validation 16
7. Limitations 17
8. Acknowledgement 18
9. Certificate 19
2 | Page
The Library Management System is a simple console-based application implemented in
Python designed to streamline the management of library resources and enhance
user experience. This project focuses on providing essential features that facilitate
efficient book handling and tracking within a library setting.
Key Features:
1. Add New Books: Librarians can easily input details of new titles into the
system, including title, author, ISBN, and genre, ensuring that the library's
collection is always up-to-date.
2. Remove Any Book: The system allows for quick removal of books that are
outdated, damaged, or no longer in circulation, helping maintain an
organized library inventory.
3. Issue Book to Student: The application enables seamless book issuance to
students by tracking borrower details and ensuring that all issued books are
logged for accountability.
4. Return Book: Users can return books effortlessly, with the system updating
the inventory and marking the book as available for other borrowers.
5. View Available Books: Librarians and users can access a comprehensive
list of all available books, complete with search and filter options, making it
easy to find desired titles.
6. View Issued Books: The system provides an overview of all currently
issued books, allowing librarians to monitor due dates and manage late
returns effectively.
-:SYSTEM REQUIREMENTS:-
3 | Page
Hardware requirements:-
1. Computer:
Modern computer capable of running python should be sufficient. More powerful
hardware might be necessary for resource intensive 3D games
2. Graphics Card:
3. Memory(RAM):
The amount of RAM depends on the complexity of the project. At least 4GB is
recommended, and more for larger projects.
Software requirements:-
1. Python:
• Ensure that Python is installed on your system. You can download and install Python
from the official Python website .
2. Operating System:
• The code is designed to be platform-independent and should work on any operating
system that supports Python, including Windows, macOS, and Linux.
3. Console/Command Prompt:
• The code is executed in a console or terminal environment. Ensure that your
operating system provides a functioning command-line interface.
4. MySQL:
Ensure that MySQL is installed on your system. You can download MySQL from
www.mysql.org
-:Program Code:-
4 | Page
# Library Management System
print ("""
______________
_______________
""")
import pymysql
mycursor = mydb.cursor()
# Creating Database
mydb.commit()
flag = 0
5 | Page
mycursor.execute("SELECT * FROM login")
for i in mycursor:
flag = 1
if flag == 0:
mydb.commit()
# Main loop
while True:
try:
except ValueError:
continue
if ch == 1:
for i in mycursor:
t_user, t_pas = i
if pas == t_pas:
print("Login Successful")
loop1 = 'n'
6 | Page
while loop1 == 'n':
print("""
________
4. Return Book
7. Logout
________
""")
try:
except ValueError:
continue
loop2 = 'y'
7 | Page
idd = int(input("Enter book ID: "))
mydb.commit()
mydb.commit()
book = mycursor.fetchone()
if book:
if quantity > 0:
8 | Page
s_class = input("Enter student class: ")
mydb.commit()
else:
else:
issued_book = mycursor.fetchone()
if issued_book:
9 | Page
mydb.commit()
else:
for i in mycursor:
for i in mycursor:
elif ch == 7: # Logout
break
else:
print("Wrong Password.")
elif ch == 2: # Exit
print("Exiting...")
break
else:
10 | Page
print("Invalid choice. Please select a valid option.")
:-OUTPUTS:-
11 | Page
12 | Page
13 | Page
14 | Page
-:FLOWCHART:-
15 | Page
-:VALIDATION:-
. Ensure that user inputs are of the expected type (e.g, integers,
strings ,etc.)
16 | Page
-:LIMITATIONS:-
While the provided code is a simple implementation of a to-do list program, it has some
limitations that the user might want to consider:
.
1. No Input Validation:
• The code assumes that the user will always enter valid input. There is no input
validation or error handling for cases where the user might enter unexpected input.
For example, entering a non-numeric value when prompted for a choice could cause
the program to crash.
3. No User Authentication:
• If the program is intended for multiple users, there is no user authentication in place.
Adding user authentication would be necessary for a more secure and personalized
experience.
17 | Page
-:ACKNOWLEDEGEMENT:-
I would like to express my heartfelt gratitude to my computer science teacher Mrs. Arpita
Sengupta for her guidance, support, and encouragement throughout the development of
the to-do list program. her insights and feedback have been invaluable in shaping this
project and enhancing my programming skills.
I would also like to extend my appreciation to Ma’am Lovleen Sehgal, our principal, for
fostering an environment that encourages creativity and learning. Your leadership has
played a crucial role in creating a positive and innovative atmosphere within our school.
Thank you all for being a constant source of inspiration and for fostering an environment
that promotes growth and learning.
18 | Page
19 | Page