LIBRARY Management System

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 19

GURU TEG BAHADUR ACADEMY

LOGO

ACADEMIC YEAR : 2023-24

PROJECT REPORT ON

LIBRARY MANAGEMENT SYSTEM

ROLL NO :

NAME :

CLASS : XII

SUBJECT : INFORMATICS PRACTICES

SUB CODE : 065

PROJECT GUIDE: Mr ANUP KR. NANDI

PGT (CS)

GURU TEG BAHADUR ACADEMY

TINSUKIA

1
CERTIFICATE

This is to certify that project work entitled “LIBRARY

MANAGEMENT SYSTEM ” presented in this report is a bonafide


work carried out by the following students of class-XII of Guru Teg
Bahadur Academy,Tinsukia, under my guidance. This work has been
prepared as a partial fulfilment of practical examination of Informatics
Practices for the A.I.S.S.C.E-2023-24 conducted by CBSE, New Delhi.

SL. NO NAME ROLL NO

______________________ ________________________

Signature of Internal Examiner Signature of External Examiner

TABLE OF CONTENTS [ T O C ]

2
SL. NO DESCRIPTION PAGE NO

01 ACKNOWLEDGEMENT

02 Requirements Analysis

03 Feasibility Study

04 Coding

05 Output Screen

06 System Specifications

07 BIBLIOGRAPHY

acknowledgement

3
I gratefully acknowledge my sincere thanks to our Informatics Practices

Teacher Mr.______________________ for his remarkable, valuable

guidance and supervision throughout the project work. I’m also utmost

indebted to all my batch mates for their encouragement, help,

suggestion and readily helpful service in the successful completion of

the project.

I wish to express my deep gratitude and sincere thanks to the principal,

_________________________________________________ for his

encouragement and for all the facilities that he provided for this project

work.

[NAME OF THE STUDENT]

Requirement Analysis

4
Proposed system

All the four activities of systems have been automated and efforts have been made to
minimize the manual working.

Benefits Of Purposed System:-

1. Less Paper Work

The paper work is reduced to minimal level. Computer prepares the lists of

customers.

2. No Manual Work.

There is no manual work. All the processes are done through computer.

3. Record of Hospitals.

There is record of all the Hospitals who got registered.

4. Register Maintenance is Easier

Register can now easily be maintained by producing a report with a format of adding

Hospitals’ records .

5. Data Is Not Scattered

Data is now stored at one place. Any information regarding anything can be easily

available to the user.

6. User-friendly Software

5
The software is be menu-driven and is very easy to use.

7. Flexibility

The system is more flexible than the manual system being used presently.

8. Beneficial

The system is easy to use and reduces the user’s workload a lot. It provides timely

and accurate information and there is automatic generation of reports.

6
FEASIBILITY STUDY
FEASIBILITY STUDY

During the course of completion of this project work, the complete analysis of
proposed system was done. In the analysis task, a complete care about the
feasibility of the proposed system was taken. The following feasibility analyses were
carried out during the course of this project work on call management system for
customer care:

1. Economical feasibility
2. Technical feasibility
3. Operational feasibility
Economical Feasibility:-
Economic analysis is the most frequently used method for evaluating the
effectiveness of a candidate system. The proposed system is economically feasible
because the benefits and the savings that are expected from a candidate system
outweigh the cost incurred. In this case we are getting the intangible benefits in
terms of low cost of maintenance of data, less redundancy and getting the quick
results.

Technical Feasibility:-

The existing Hardware and Software facilities support the proposed system.
Computer and storage media are available and software can be developed.

Hardware configuration:

7
a) Processor : i3

b) Memory : 2 GB RAM

c) HD capacity : 1 TB

Software configuration:-
a) Operating system : Windows 10

b) Back end : csv files

c) Front end : Python

There is nothing which is not technically feasible.

Operational feasibility:-

As in the case of present system the entire work is being done manually. So the data
being scattered, information retrieval becomes difficult and maintaining database is also very
tedious. In case of proposed system, entire work will be done automatically. So the above
details regarding the feasibility study show that the design of the proposed system is very
effective.

CODING

8
import os

import csv

def addBook():

print("Add a new Book Record")

print("=====================")

f=open('library.csv','a',newline='\r\n')

s=csv.writer(f)

bookid=int(input('Enter book id='))

bookname=input('Enter book name=')

bookauthor=input('Enter author name=')

price=float(input('Enter price='))

copies=float(input('Enter number of copies='))

rec=[bookid,bookname,bookauthor,price,copies]

s.writerow(rec)

f.close()

print("Book Record Saved")

input("Press any key to continue..")

def modifyBook():

print("Modify a Book Record")

print("====================")

f=open('library.csv','r',newline='\r\n')

f1=open('temp.csv','w',newline='\r\n')

f1=open('temp.csv','a',newline='\r\n')

r=input('Enter bookid whose record you want to modify=')

s=csv.reader(f)

9
s1=csv.writer(f1)

for rec in s:

if rec[0]==r:

print("-------------------------------")

print("Book id=",rec[0])

print("Book Name=",rec[1])

print("Author=",rec[2])

print("Price=",rec[3])

print("Number of copies=",rec[4])

print("-------------------------------")

choice=input("Do you want to modify this Book Record(y/n)=")

if choice=='y' or choice=='Y':

bookid=int(input('Enter new book id='))

bookname=input('Enter new book name=')

bookauthor=input('Enter new author name=')

price=float(input('Enter new price='))

copies=float(input('Enter new number of copies='))

rec=[bookid,bookname,bookauthor,price,copies]

s1.writerow(rec)

print("Book Record Modified")

else:

s1.writerow(rec)

else:

s1.writerow(rec)

f.close()

10
f1.close()

os.remove("library.csv")

os.rename("temp.csv","library.csv")

input("Press any key to continue..")

def deleteBook():

f=open('library.csv','r',newline='\r\n')

f1=open('temp.csv','w',newline='\r\n')

f1=open('temp.csv','a',newline='\r\n')

r=input('Enter bookid whose record you want to delete')

s=csv.reader(f)

s1=csv.writer(f1)

for rec in s:

if rec[0]==r:

print("-------------------------------")

print("Book id=",rec[0])

11
print("Book Name=",rec[1])

print("Author=",rec[2])

print("Price=",rec[3])

print("Number of copies=",rec[4])

print("-------------------------------")

choice=input("Do you want to delete this Book Record(y/n)")

if choice=='y' or choice=='Y':

pass

print("Book Record Deleted....")

else:

s1.writerow(rec)

else:

s1.writerow(rec)

f.close()

f1.close()

os.remove("library.csv")

os.rename("temp.csv","library.csv")

input("Press any key to continue..")

def searchbook():

print("Search a Book Record")

print("=====================")

f=open('library.csv','r',newline='\r\n') #Remove new line character from


output

r=input('Enter bookid you want to search')

s=csv.reader(f)

12
for rec in s:

if rec[0]==r:

print("-------------------------------")

print("Book id=",rec[0])

print("Book Name=",rec[1])

print("Author=",rec[2])

print("Price=",rec[3])

print("Number of copies=",rec[4])

print("-------------------------------")

f.close()

input("Press any key to continue..")

def listallbooks():

print("List of All Books")

print("========================")

f=open('library.csv','r',newline='\r\n') #Remove new line character from


output

s=csv.reader(f)

i=1

for rec in s:

print(rec[0],end="\t\t")

print(rec[1],end="\t\t")

print(rec[2],end="\t\t")

print(rec[3],end="\t\t")

print(rec[4])

i+=1

13
f.close()

print("-------------------------------")

input("Press any key to continue..")

def mainmenu():

choice=0

while choice!=6:

print("\n")

print("|--------------------------|")

print("| Libary Management System |")

print("| -------------------------|")

print('\n')

print("########################")

print(" Main Menu")

print("########################")

print("1. Add a new Book Record")

print("2. Modify Existing Book Record")

print("3. Delete Existing Book Record")

print("4. Search a Book")

print("5. List all Books")

14
print("6.Exit")

print("-------------------------------")

choice=int(input('Enter your choice'))

if choice==1:

addBook()

elif choice==2:

modifyBook()

elif choice==3:

deleteBook()

elif choice==4:

searchbook()

elif choice==5:

listallbooks()

elif choice==6:

print("Software Terminated.......")

break

mainmenu()

15
SYSTEM SPECIFICATIONS

HARDWARE SPECIFICATIONS

The following is the hardware specification of the system on which the software has been
developed:-

Operating System : Windows 7/10

Machine Used : Pentium Dual Core Processor 2.6 GHz, 2 GB RAM, 500 GB Hard Disk

SOFTWARE SPECIFICATIONS

Front End Used : PYTHON

Backend Used : CSV

16
OUTPUT SCREENS

17
BIBLIOGRAPHY

We took the information for our project


report from the following sources:

Reference books:

1. Informatics Practices by Sumita Arora.

2. Complete reference with Python

3. Data Analysis-Python

Websites:

18
 https://www.python.org.in
 https://www.google.com
 https://www.tutorialaicsip.com
 https://www.Kaggle.com

***

19

You might also like