CS Project-1
CS Project-1
SCHOOL, MADURAI
LIBRARY MANAGEMENT
SYSTEM
By -
● Pranav Yadhuveer. S
● Shreenath. G
● Jeeva. V
● Janath Kumar. S. R
1
TABLE OF CONTENTS
3 PROPOSED SYSTEM
6 FLOWCHART
7 TESTING
9 SOURCE CODE
10 OUTPUT
11 BIBLIOGRAPHY
2
LIBRARY MANAGEMENT SYSTEM
INTRODUCTION
3
OBJECTIVES OF THE PROJECT
● The system saves time for both the user and the librarian.
With just a click the user can search the books available in the
library. The Librarian can answer queries with ease regarding
the availability of books.
4
PROPOSED SYSTEM
● Less error
● Search Facility
● Quick transaction
5
SYSTEM DEVELOPMENT LIFE
CYCLE
6
PHASES OF SYSTEM
DEVELOPMENT LIFE CYCLE
1. Planning Phase :
● Before we even begin with the planning stage, the best tip we can give
you is to take time and acquire a proper understanding of the app
development lifecycle.
● The planning stage (also called the feasibility stage) is exactly what it
sounds like the phase in which developers will plan for the upcoming
project.
● It helps to define the problem and scope of any existing systems, as well
as determine the objectives for their new systems.
● And help to secure the funding and resources they need to make their
plan happen.
● Perhaps most importantly, the planning stage sets the project schedule,
which can be of key importance if development is for a commercial
product that must be sent to market by a certain time.
7
2. Requirement analysis phase :
● Developers may:
3. Design phase :
User interfaces
System interfaces
8
● Network and network requirements
● Databases
● They'll typically turn the SRS document they created into a more
logical structure that can later be implemented in a programming
language. Operation, training, and maintenance plans will all be
drawn up so that developers know what they need to do
throughout every stage of the cycle moving forward.
4. Development phase :
9
● Developers will follow any coding guidelines as defined by the
organization and utilize different tools such as compilers,
debuggers, and interpreters.
● Building software is not the end. Now it must be tested to make sure that there aren't
any bugs and that the end-user experience will not negatively be affected at any
point.
● During the testing stage, developers will go over their software with a fine-tooth
comb, noting any bugs or defects that need to be tracked, fixed, and later retested.
● It's important that the software overall ends up meeting the quality standards that
were previously defined in the SRS document.
● Depending on the skill of the developers, the complexity of the software, and the
requirements for the end-user, testing can either be an extremely short phase or take
a very long time.
● After testing, the overall design for the software will come together.
6. Implementation phase :
10
practicing any activities required to handle issues reported by
end-users.
● Furthermore, developers are responsible for implementing any
changes that the software might need after deployment.
● This can include handling residual bugs that were not able to be
patched before launch or resolving new issues that crop up due to
user reports. Larger systems may require longer maintenance
stages compared to smaller systems.
11
REQUIREMENTS
HARDWARE :
● Printer to print the project report.
● Compact Disc.
● Ram 4 GB to 8GB
SOFTWARE :
● Operating System Windows 10
12
SOURCE CODE
bk=[]
novbk=["Ponniyin selvan","The adventures of tintin","The adventures of sherlock
holmes","The Lord of the Rings","Emma","Great Expectations","His dark materials
trilogy","Middlemarch","Adventures of Huckleberry Finn","Diary of a Nobody"]
stobk=["Panchathanthira","The three little pigs","Call of the wild"]
engbk=["snapshot","moments","Footprints without feet","Hornbill","Voyagers"]
csbk=["Learn python","learn c++","Learn Java","Learn C#","Learn HTML","Learn
CSS","Learn Javascript"]
scibk=["S.l.Arora","All in one science","MTG science","Fullmarks science"]
socbk=["Gurukul social science, Oswal social science, All in One social science"]
matbk=["R.D.Sharma, Handbook of mathematics, The mathematics of the universe","The
Vedic mathematics"]
otherbk=["Encyclopedia","world famous scientists","Biography of APJ Abdul kalam"]
opt=int(input("The options are : \n 1. Add a new book \n 2. Search for a book \n 3. Sell a
book for rent \n 4. Display the books of the selected category \n 5. Exit \n Enter the option :
"))
if opt ==1:
while True:
bkname=input("Enter the book name : ")
print("SUBJECTS: 1.English 2.Maths 3.Science 4.Social Studies 5.Computer Science
6.Novels 7. Story Books 8. Others")
bksub=input("Enter the subject of the book (1,2,3,4,5,6,7) :")
if bksub == 1:
engbk.append(bkname)
elif bksub == 2:
matbk.append(bkname)
elif bksub == 3:
scibk.append(bkname)
elif bksub == 4:
socbk.append(bkname)
elif bksub == 5:
csbk.append(bkname)
elif bksub == 6:
novbk.append(bkname)
elif bksub == 7:
stobk.append(bkname)
else:
otherbk.append(bkname)
bkauth=input("Enter the Author of the book:")
bkpri=float(input("Enter the price of the book:"))
bkid=int(input("Enter the book id:"))
nbk=[bkname,bksub,bkauth,bkpri,bkid]
bk.append(nbk)
print("The new book is added",bk)
ans=input("Do you want to add another book? (yes/no)")
13
if ans in "NOno":
break
elif opt ==2:
sbkname=input("Enter the book name to search :")
if sbkname in engbk:
print("The book is in the English category")
elif sbkname in matbk:
print("The book is in the Maths Category")
elif sbkname in scibk:
print("The book is in the Science Category")
elif sbkname in socbk:
print("The book is in the Social Studies Category")
elif sbkname in csbk:
print("The book is in the Computer science Category")
elif sbkname in novbk:
print("The book is in the Novels Category")
elif sbkname in stobk:
print("The book is in the Story Books Category")
elif sbkname in otherbk:
print("The book is in the Others Category")
else:
print("The book is not found")
elif opt==3:
rnt=[]
rentcus=input("Enter the customer name :")
rentbk=input("Enter the book name :")
if rentbk in engbk:
print("The book is available in english category")
elif rentbk in matbk:
print("The book is available in maths category")
elif rentbk in scibk:
print("The book is available in science category")
elif rentbk in socbk:
print("The book is available in social studies category")
elif rentbk in csbk:
print("The book is available in computer science category")
elif rentbk in novbk:
print("The book is available in novels category")
elif rentbk in stobk:
print("The book is available in story books category")
elif rentbk in otherbk:
print("The book is available in others category")
else:
print("The book is not found")
rentdue=input("Enter the due date :")
rentadd=input("Enter the address of the customer :")
rent=[rentcus,rentbk,rentdue,rentadd]
rnt.append(rent)
14
print("The book is rented to",rentcus)
elif opt==4:
sele_bk=int(input("Enter the category of the book (1.English 2.Maths 3.Science 4.Social
Studies 5.Computer Science 6.Novels 7. Story Books 8. Others) : "))
if sele_bk == 1:
print("The books in English category are :",engbk)
elif sele_bk == 2:
print("The books in Maths category are :",matbk)
elif sele_bk == 3:
print("The books in Science category are :",scibk)
elif sele_bk == 4:
print("The books in Social Studies category are :",socbk)
elif sele_bk == 5:
print("The books in Computer Science category are :",csbk)
elif sele_bk == 6:
print("The books in Novels category are :",novbk)
elif sele_bk == 7:
print("The books in Story Books category are :",stobk)
elif sele_bk == 8:
print("The books in Others category are :",otherbk)
else:
print("Invalid option")
elif opt==5:
print("Thank you for using the library management system")
15
OUTPUT
For option 1 :
For option 2 :
For option 3 :
16
1. Add a new book 2. Search for a book
3. Sell a book for rent
4. Display the books of the selected category
5. Exit
Enter the option: 3
Enter the customer name : Jeeva
Enter the book name : Ponniyin selvan The book is available in novels category
Enter the due date: 12.12.2023
Enter the address of the customer anna nagar Madurai
The book is rented to Jeeva
For option 4 :
5. Exit
Enter the category of the book (1. English 2. Maths 3.Science 4. Social Studies 5.Computer
Science 6. Novels 7. Story Books 8. Others): 5 The books in Computer Science category
are:
['Learn python', 'learn c++', 'Learn Java', 'Learn C#', 'Learn HTML', 'Learn CSS', 'Learn
Javascript']
17