Cs Project-1
Cs Project-1
SECONDARY SCHOOL
ROHIT GOEL
th
12 SCIENCE
COMPUTER SCIENCE
PROJECT
ON
LIBRARY
MANAGEMENT
SYSTEM
CERTIFICATE
This is to certify that ROHIT GOEL, A student
of class 12th science has successfully
completed the research on the project report
entitled “LIBRARY MANAGEMENT SYSTEM”
under the supervision of Mr. “MANISH
KUMAR SINGH” during the year 2021-22 in
partial fulfillment of COMPUTER SCIENCE
PRACTICAL EXAMINATION conducted by
CBSE, NEW DELHI.
Examiner’s Teacher’s
Signature Signature
ACKNOWLEDGEMENT
CONTENT
1. Certificate
2. Acknowledgement
3. Introduction
4. Functions
5. Importance
6. Objective
7. Software used
8. Python
9. MySQL
10. Connectivity
11. System development life cycle
12.Coding
13.Output
14.Bibliography
INTRODUCTION
LIBRARY MANAGEMENT SYSTEM is also called
an automated library system. It is defined as
software that has been established to manage
a basic house keeping function of a library.
The electronic management via the software is
essential to track information like issue date,
submit date , due date who has borrowed any
book etc.. The system is developed and
designed with an aim to facilitate efficient
management to the schools to manage a
modern library with accurate data
management. The software is intented to
reduce the manual work to manage library
functions which have various features….
FUNCTIONS OF LIBRARY
MANAGEMENT
In order to maintain library management
software, It has the following set of
components. These components are efficient
to manage library operations carefully.
Add books
Issue books
Submit books
Delete books
Display books
IMPORTANCE
Library management system facilitate the
administrators to keep an eye on the library
department’s all functions. Also, it enables
librarians and users to save time on daunting
tasks and enhance efficiency. By using this sort
of library management system, the school
management would be able to follow the work
outline and fineness of different librarians
capabilities.
Additionally, they get an opportunity to know
how well maintained the record of issue books
and collection is.
OBJECTIVE
The library management system is designed to
meet the following objective:
i. Simple and easy to operate.
ii. Increase librarian’s efficiency.
iii. Search , add , update and view library
material.
iv. Helps to manage library functions
constructively.
v. Saves time and reduces overheads.
vi. Reduce library’s operating cost.
vii. Customized reports for better
management.
viii. Remove manual process to issue books
and maintain records.
Software used
PYTHON
Python is an open source, object – oriented,
high level programming language developed by
“Guido van Rossum” in 1991 at the national
Research institute for mathematics and
computer science, the Netherlands. It is
presently owned by Python Software
Foundation [PSF].
“Python is an easy-to-learn, general-purpose,
dynamic, interpreted, high-level, multiplatform
and powerful programming language. It has
efficient high level data structures and a simple
but effective approach to object-oriented
programming.”
Features of Python
Python is an interactive, interpreted language
with simple syntax. It has become increasingly
popular because of its salient features which
are listed below:
Features of SQL
SQL is the most common language used to
create, operate, update, manipulate and
communicate with a database.
It has a following salient features which are
listed below:
SOURCE CODE
MySQL
Database : library
Tables used:
1) BOOKS
2) ISSUE
3) SUBMIT
Table BOOK
Table ISSUE
Table SUBMIT
Python
import mysql.connector as a
con =
a.connect(host="localhost",user="root",pas
sword="1234",database="library")
Add Book:
def addbook():
bn = input("Enter BOOK name :")
c = input("Enter BOOK code :")
t = input("Enter Total books :")
s = input("Enter subject :")
data = (bn,c,t,s)
sql = 'insert into books values(%s,%s,%s,
%s)'
c = con.cursor()
c.execute(sql,data)
con.commit()
print(">..........................................................
......<")
print("Data Entered successfully")
main()
Issue Book:
def issueb():
n = input("Enter name :")
r = input("Enter REG no. :")
co = input("Enter BOOK code :")
d = input("Enter DATE :")
a = "insert into issue values(%s,%s,%s,
%s)"
data = (n,r,co,d)
c = con.cursor()
c.execute(a,data)
con.commit()
print(">..........................................................
......<")
print("Book issue to :",n)
bookup(co,-1)
Submit book:
def submitb():
n = input("Enter name :")
r = input("Enter REG no. :")
co = input("Enter BOOK code :")
d = input("Enter DATE :")
a = "insert into submit values(%s,%s,%s,
%s)"
data = (n,r,co,d)
c = con.cursor()
c.execute(a,data)
con.commit()
print(">..........................................................
.......<")
print("Book submited from :",n)
bookup(co,1)
def bookup(co,u):
a = "select TOTAL from books where
BCODE = %s"
data = (co,)
c = con.cursor()
c.execute(a,data)
myresult = c.fetchone()
t = myresult[0] + u
sql = "update books set TOTAL =%s where
BCODE = %s"
d = (t,co)
c.execute(sql,d)
con.commit()
main()
Delete book:
def dbook():
ac = input("Enter Book Code :")
a = "delete from books where BCODE =
%s"
data = (ac,)
c = con.cursor()
c.execute(a,data)
con.commit()
main()
Display book:
def dispbook():
a = "select * from books"
c = con.cursor()
c.execute(a)
myresult = c.fetchall()
for i in myresult:
print("Book Name :",i[0])
print("Book Code :",i[1])
print("Total :",i[2])
print("Subject :",i[3])
print(">..........................................................
<")
main()
Main function()
def main():
print(""""
LIBRARY MANAGER
1. ADD BOOK
2. ISSUE BOOK
3. SUBMIT BOOK
4. DELETE BOOK
5. DISPLAY BOOK
""""")
choice = input("Enter TASK no. :")
print(">..........................................................
.....<")
if (choice == '1'):
addbook()
elif (choice == '2'):
issueb()
elif (choice == '3'):
submitb()
elif (choice == '4'):
dbook()
elif (choice == '5'):
dispbook()
else:
print(">>>>>>WRONG CHOICE<<<<<<")
main()
Password function()
def password():
ps = input("Enter password :")
if ps == 'py143':
main()
else:
print("wrong")
password()
password()
OUTPUT
To Get Output : Press F5
On Enter Wrong Password: