Library System
Library System
PROJECT REPORT
(CoMPUTER SCIENCEI
CLASS XII
LIBRARY MANAGEMENT
Submitted To
Central Board Of Secondary Education
New Delhi
.-B
CERTIFICATE
This is hereby to certify that, the original and genuine
Student's Sign
ACKNOWLEDGEMENT
It would be my utmost pleasure to express my sincere thanks
to my computer Science Teacher Mr. BAUEET SINGH in
providing a helping hand in this project. Their valuable
guidance, support and supervision all through this project
titled "LIBRARr MANAGEMENT sysrEMr', are responsible
This project has been made not only for fetching marks but
also for knowledge.
SAHIT BHATT
PARDEEP SINGH
xilB
CONTENTS
1. lntroduction
2. System Obiectives & Aim of the Proiect
3. Theory
4. Header Files Used
5. Source Code
6. Output Screens
7. Bibliography
INTRODUCTION
The purpose of the project is to computerize the requirement
4) return a book
SYSTEM OBJECTIVES &
AIM OF THE PROJECT
Library Management Sfiem which starts with a manual data entry
and management deals with many operations, now-a-days has
become a complicated and time consuming task to maintain the
library record manually. So, we have decided to go about
computerizing their operation. The new system created in the
project i.e.
easy.
.Modification to the database will become easy.
HARDWARE
RAM 64 MB
CACHE 5L2 KB
TO BE USED
Software and hardware specification as the name suggests,
tells us about the various characteristics of the software and
the hardware environment used i.e. the development
SOFTWARE ENVIRONMENT
OF PROJECT
PYTHON 3
It is one of the most widely used development tools on the market today.
print("""
rrr)
def menu0:
while True:
pfint("======> PUbic Library <======rt)
print0
print("1 => Show Available Books")
print("2 => To Borrow a book!')
print("3 => To Return a book")
print("4 => To add new member")
print("5 => Exit")
else:
print("Wrong lnput")
c= input(" Press any key to continue...")
print()
def displayfl:
e=[
cur.execute("SELEcT * FROM books")
book = cur.fetchall0
for i in book:
A.append(i)
pri nt(ta bu l ate(A, h ead e rs= [" book_n o", " boo k_n a me", "a uthor", "qua nt
ity"r"cost"l))
print()
def issue0:
book-no = int(input("Enter the book no.\t"))
user_lD = int(input("Enter the name of borrower \t"))
cur.execute("SELECT quantity FROM books WHERE book_no=
{}".format(book_no))
y = cur.fetchone0
y = int(y[o])
ify>0:
cur.execute("select book_name from books where book_no =
{}".format(book_no})
result = cur.fetchone0
resultt = list(result)
x=result[01
cur.execute(" INSERT I NTO issue
VALUES({},t},'{}','{}','t}')".format(book_no,user_lD,x,timeL,dateL}}
cur.execute("UPDATE books set quantity = quantity - l where
book_n o={}" .form at( boo k_n o) )
con.commit()
print("sucessfuIl")
print("Thanks you !!! ")
print("Return date for your book is before",dateL)
print("")
else:
print("Sorry !!! BOOK NOT AVA|LABLE....")
def Returnfl:
book_no=int(input("Enter book no.="))
user_lD=int(input(" Enter user lD:"))
cur.execute("select cost from books where book_no =
{}".format(book_no))
ct= cur.fetchone0
ct= list(ct)
ct=ct[01
def add_new_memberfl:
m_no = int(input("Enter the member lD :\t"))
m_name = str(input("Enter the member name:\t"))
cur.execute(" INSERT I NTO users
VALU ES({},'{}' )".format( m_no, m_na me) }
con.commit()
print("Sucessfully added a new member")
menu0
Ou ut screens
L.Welcome screen
3. To borrow q book
1. =) Available Eooks
$how
2 =F To Borrtrw a book
3 =) Tn fteturn a book
4 =) To add new nember
5 =) Exit
Enter Your Choice l: 2
Enter the book ns. tffi.?.
Enter the user ID of borr'CIwer L83
sucessfuLL
Thanks you llt
Return date for your book is befsre 83l6UZg
4. To add a new member
5. To return a book
3. www.stackoverflow. com
4 . www.w3school.co
t1