0% found this document useful (0 votes)
13 views9 pages

Project New

The document outlines a Library Management System project report submitted by Divya Singh for a Bachelor of Science degree. It includes various functionalities such as student and book management, borrowing and returning books, and fine calculation. The report also covers the project's objectives, key features, and provides source code and output examples.

Uploaded by

Abhinav Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views9 pages

Project New

The document outlines a Library Management System project report submitted by Divya Singh for a Bachelor of Science degree. It includes various functionalities such as student and book management, borrowing and returning books, and fine calculation. The report also covers the project's objectives, key features, and provides source code and output examples.

Uploaded by

Abhinav Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

print(“\t 2.

DISPLAY ALL STUDENTS RECORD”)


print()
print(“\t 3. DISPLAY SPECIFIC STUDENT RECORD”)
print()
print(“\t 4. MODIFY STUDENT RECORD”)
print()
print(“\t 5. DELETE STUDENT RECORD”)

print()

print(“\t 6. CREATE BOOK")

print{)

print(“\t 7. DISPLAY ALL BOOKS”)


print()
print(“\t 8. DISPLAY SPECIFIC Book")

Print()
Self.bname=input(
Print()
selfauname=input("\¢
print()
print()
Print(“\t\t Book Modified”)
Pprint()
def ret_bno(self):
return (self.bno)
def report_book(self);
Print(self.bno, self. bname,selfauname)

“\t\t Enter New Book Name:")

\t Enter New Author Name:”)

class student:

def_init_(self,admno=”" “name=" “stbno=”" “token=0):

self.admno=admno
self.name=name

self.stbno=stbno

self.token=token

def creatstud(self):

print()
print(“\t\t\t Creating Student Record \t\t\t”)

print()
self.admno=input(“\t\t Enter Admission Number:”)

py
print()
self.name =input(“\t\t Enter Name of the Student:”) /
ay.
self.stbno=” “
self.token=0 )

print()

'()
int(“\t\t\t Student Record Created \t\t\t”)

Print( )
Print("\t\t\t Enter New student Details: ‘)
st.modifystud()

dump(st,fout)

found=1

else:

dump(st, fout)
excepr EOFError:

Pass y
if found= Fe;
Print(*\t\t\t\t STUDENT NOT PRESENT”)

fin.close()

fout.close()
remove(“student1.dat”)
rename(“temp.dat”,”student1.dat”)

binant ett Ltt ttt ttt ttt tere ett ttt eT eet trees

FUNCTION TO DELETE STUDENT RECORD }


HRI KIRKE IIH REE RK IRR RE RE KREREREEERE ERE |
def del_stud(): iy
flag=0
print()
print()
n=input(“\t\t Enter Admission to be deleted:")

print() me
fin=open(“student1.dat”,’rb”) | SS

fout=open(“temp.dat”,’wb") Ys
try:
while True:
st=load(fin)
if st.ret_admno()<n:
dump(st,fout)
else:
flag=1
except EOFError: ks
pass .
fin.close()

Pass

fin.close()

SOR
eda CLL tT a ee
ORR
FUNCTION TO DISPL Ay
ONTO DISPLAY PARTICULAR BOOKS RECORD

SOOO OR Ite
TEETER RENEE RE RRR REE
HERRERO RHEE EERE R EEE

Def display_spb(no)
flag=0
fin=open(“book1.dat”,/"rb”)
try
while True:
bk=load(fin)
if(bk.ret_bno()==no):
bk.show_book()
flag=1

except EOFError:
pass
fin.close()
if flag==
print()

print()
print(“\t\t\t\t BOOK NOT PRESENT...!!”)

FEI IT TI TIT IIIT RTO IT IATA I

RTICULAR STUDENT RECORD

HIRI IIR RR IR IRIE

RII III AIA IIIA

FUNCTION TO DISPLAY PA

DD PEEP Pet tant tobdelaaieaiaalil

def display_sps(n):

fa Heh!
finzopen(“student1.dat rb")
“on

<LIBRARY MANAGEMENT SYSTEM>


A Project Report

Submitted in partial fulfillment of the

Requirement of the award of the Degree of

BACHELOR OF SCIENCE

By

Name of the Student - Divya Singh


Roll Number - 309211020062

DEPART 'T NAME - COMPUTER SCIENCE


FACULTY NAME - DR. SAPNA ARORA

COLLEGE NAME - ARYA KANYA P.G COLLEGE

Affiliated to Bundelkhand University, Jhansi

CITY- JHANSI, PIN CODE- 284003


UTTAR PRADESH
2023-2024

Should be g

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

TABLE OF CONTENTS

Introduction

Project Description

Key Features of Library Management System


Booking Management

Member } anagement

Borrowing and Returning Books

Fine Calculation

How to Code the Project

Prerequisites

The Objectives of Library Management System


Features Provided by Program

Features Generated by Program

Source Code

Output

Bibliography

enerated automatically using word processing software.

LEE 6 bom

St.add_token()
St-get_stbno(bk Fet_bno()

dump(st,fout)

OS.system(“cls”)

print()

print()

print(“\t\t\t Book Issued Suc

print()

print(“\t PLEASE NOTE: Write the current di


3 print(“\t\t and submit within 15

print()

print(“\t\t Fine Rs.20 for e

print()

cessfully \t\t\t”)

ate in backside of your book”)


days”)

ach day after 15 days period.,!!”)

except EOFError:
pass
else:

print(“\t You have not returned the last book..”)


except EOFError:

pass

FUNCTION TO DEPOSIT BOOK

FOIA IO RAO
OR RR REE

FE OIF

JIC IO OR OR

def book_deposit():
print(“\t\t\t BOOK DEPOSTING”)

sn
found=0
flag=0
day=0

fine=0

Print()
Print()
sn
Print()
fintopen(“students dat”
fin2=open(“temp.dat’,"rt")
fout=open(“‘temp.dat"’rb)
try:
while True:
st=load(fout)
if st.ret_admon()==sn:
found=1
print()
print(“\t Student Token Number”,st.ret_token())
if st.ret_token()==1:
try:
while True:
bk=load(fin2)
if bk.ret_bno()==st.ret_stbno():
bk.show_book()
flag=1

print()
days=int(input("\t Book De
posited In no. of days:”))

if days>=15:
fine=(days-15)*20

print()

You might also like