Professional Documents
Culture Documents
ACKNOWLEDGEMEN1 Comp1-1
ACKNOWLEDGEMEN1 Comp1-1
SUBMITTED BY:-
NAME:- ADITHYA S NAIR
ROLL NO:- 02
CLASS-XII SC. ‘A’
GUIDED BY:-
MR.RUPAK KUMAR SINGH
(HOD COMPUTER SCIENCE)
BONAFIED CERTIFICATE
THIS IS TO CERTIFY THAT MASTER ADITHYA S NAIR
OF CLASS ‘XII’ HA S UNDERTAKEN THE
THE COMPUTER INVESTIGATORY PROJECT
TITLED “LIBRARY MANAGEMENT”
SUCCESSFULLY UNDER THE GUIDANCE OF
OUR COMPUTER TEACHER RUPAK KU. SINGH
AS PER THE REQUIREMENT OF AISSCE-2022-
2023.
(SIGNATURE OF EXTERNAL)
ACKNOWLEDGEMENT
I ADITHYA S NAIR would like to convey my heartfelt
thanks to my Computer Science teacher Mr.
Rupak Kumar Singh, my parents and my friends
who always gave me valuable suggestions
during the project works.
I would also appreciate our Principal Madam
for her encouragement and advice. I am
extremely thankful to them for their co-
operation and guidance throughout the project.
SL. NO TOPIC
1. GENERAL INFO.
2. INTRODUCTION
3. PROGRAM
4. BIBILOGRAPHY
5. TEACHER’S EVALUATION
REPORT
GENERAL INFORMATION
PREPARED BY
ADITHYA S NAIR
CLASS
XII SCIENCE
GUIDED BY
Mr. RUPAK KUMAR SINGH
SCHOOL
DAV PUBLIC SCHOOL
MCL, JA
(AT SENIOR COMPUTER LABORATORY)
INTRODUCTION
In today’s world computers have become common things
at every workplaces and have contributing its helpful and
fascinating abilities whether in airport, shops, banks,
offices etc. Computer enables people in these areas to
handle the data in a perfectly organized manner, provides
a computer based record keeping system, helps in security
and ease in modification and retrieval of data.
import pickle
def introduction():
print("You can become a member of our Library and can enjoy by reading different books. ")
print("You can issue max of 1 book in your name at the rate of Rs.100. ")
print("***ALERT***")
print("if you return the book after due date, then a charge of Rs.10 will increase per day")
print("*****************************************************")
def add_new_book():
f=open("books.dat","ab")
res=[]
while True:
data=[bname,author,price,copies]
res.append(data)
if ch=="N" or ch=="n":
break
pickle.dump(res,f)
print("*****************************************************")
f.close()
def add_new_member():
f=open("members.dat","ab")
rec=[]
for i in range(1):
loc=[name,address,city,district]
rec.append(loc)
pickle.dump(rec,f)
print("*****************************************************")
f.close()
def issue_book(curdt,rtrndt):
f=open("books.dat","rb")
rec=[]
try:
while True:
r=pickle.load(f)
for i in r:
rec.append(i)
except EOFError:
break
f.close()
f1=open("issuedbook.dat", "ab")
f2=open("books.dat", "wb")
c=0
for j in rec:
if j[0]==srch:
nme=input("Enter the name of the person who wants to issue the book.")
data[srch,nme.j]
pickle.dump(data,f1)
print(nme, "has issued the book",srch, "on",curdt, "and should return the book before",rtrndt)
print("*****************************************************")
c=c+1
continue
pickle.dump(j,f2)
if c==0:
f2.close()
f1.close()
def return_book(rtrndt):
crdt=date.today()
f=open("issuedbook.dat","rb+")
res=[]
try:
while True:
k=pickle.load(f)
res.append(k)
except EOFError:
break
f1=open('books.dat', 'ab')
isnme=input('Enter the name of the person who have issued the book:')
for i in res:
if i[0]==bsrch:
if crdt<=rtrndt:
pickle.dump(i[2],f1)
print('*****************************************************')
continue
else:
pickle.dump(i[2],f1)
ex_dys=(crdt-rtrndt).days
print('*****************************************************')
continue
pickle.dump(i,f)
f.close()
def list_of_books():
f=open("books.dat","rb")
rec=[]
try:
while True:
r=pickle.load(f)
rec.append(r)
except EOFError:
break
for j in rec:
print(j)
f.close()
def list_of_members():
f=open('Members.dat','rb')
rec=[]
try:
while True:
r=pickle.load(f)
rec.append(r)
except EOFError:
break
for i in rec:
print(i)
f.close()
introduction()
print("3.ISSUE BOOK")
print("4.RETURN BOOK")
print("5.LIST OF BOOKS")
print("6.LIST OF MEMBERS")
print("7.EXIT")
curdt=date.today()
rtrndt-curdt+timedelta(days=30)
while True:
if ch==1:
add_new_book()
elif ch==2:
add_new_member()
elif ch==3:
issue_book(rtrndt)
elif ch==4:
return_book(rtrndt)
elif ch==5:
list_of_books()
elif ch==6:
list_of_members()
elif ch==7:
break
else:
print("Invalid choice")
OUTPUT
Hello Sir, welcome to our Library
You can become a member of our Library and can enjoy by reading different books
You can issue max of 1 book in your name at the rate of Rs.25.
***ALERT***
If you return the book after due date, then a charge of Rs. 10 will be increasing on your
returning amount
3.ISSUE BOOK
4.RETURN BOOK
5.LIST OF BOOKS
6.LIST OF MEMBERS
7.EXIT
*****************************************************
Enter the name of the person who wants to issue the book:Pooja
Pooja has issued the book RD Sharma on 2021-03-21 and should return the book before
2021-04-20
*****************************************************
Enter the name of the person who have issued the book:Pooja
*****************************************************
• WWW.GOOGLE.COM
• WWW.WIKIPEDIA.COM
• WWW.YOUTUBE.COM
TEACHER’S EVALUTION REPORT
NAME:-
ADITHYA S NAIR
CLASS:-
XII’SCIENCE’
ROLL NO:-
02
MARKS AWARDED
REMARKS