CERTIFICATES (PDF - Io)
CERTIFICATES (PDF - Io)
DESCRIPTION PAGE NO
01 INTRODUCTION 02
04 PROPOSED SYSTEM 05
07 SOURCE CODE 17
08 OUTPUT 24
09 BIBLIOGRAPHY 32
1
∗ INTRODUCTION
done with help of python language. This project is very useful for the
librarians to keep a count on what project they have and how much they
2
∗ OBJECTIVES OF THE PROJECT
The objective of this project is to let the students apply the programming
knowledge into a real- world situation/problem and exposed the students how
problems.
3
∗ HARDWARE REQUIREMENTS:
OPERATING SYSTEM:- WINDOWS 7 AND ABOVE
PROCESSOR:- INTEL CORE DUAL
HARD DISK:- 1GB
RAM:- 512 MB
∗ SOFTWARE REQUIREMENTS:
4
∗ PROPOSED SYSTEM
Today one cannot afford to rely on the fallible human beings of be really
wants to stand against today’s merciless competition where not to wise saying “to
err is human” no longer valid, it’s outdated to rationalize your mistake. So, to
keep pace with time, to bring about the best result without malfunctioning and
greater efficiency so to replace the unending heaps of flies with a much
sophisticated hard disk of the computer.
One has to use the data management software. Software has been an ascent
in atomization various organisations. Many software products working are now
in markets, which have helped in making the organizations work easier and
efficiently. Data management initially had to maintain a lot of ledgers and a lot
of paper work has to be done but now software product on this organization has
made their work faster and easier. Now only this software has to be loaded on
the computer and work can be done.
This prevents a lot of time and money. The work becomes fully automated
and any information regarding the organization can be obtained by clicking the
button. Moreover, now it’s an age of computers of and automating such an
organization gives the better look.
5
∗ SYSTEM DEVELOPMENT LIFE CYCLE (SDLC)
The systems development life cycle is a project management technique that divides
complex projects into smaller, more easily managed segments or phases. Segmenting
projects allows managers to verify the successful completion of project phases before
allocating resources to subsequent phases.
6
∗ PHASES OF SYSTEM DEVELOPMENT LIFE CYCLE
INITIATION PHASE
The Initiation Phase begins when a business sponsor identifies a need or an
opportunity.
7
SYSTEM CONCEPT DEVELOPMENT PHASE
8
PICTORIAL REPRESENTATION OF SDLC
9
PLANNING PHASE
with the characteristics and risks of a given project. Project plans refine the
10
REQUIREMENTS ANALYSIS PHASE
The purposes of this phase are to:
Further define and refine the functional and data requirements and
(i.e., verify what information drives the business process, what information
is generated, who generates it, where does the information go, and who
processes it),
Develop detailed data and process models (system inputs, outputs, and the
process.
Develop the test and evaluation requirements that will be used to determine
11
DEVELOPMENT PHASE
The development phase involves converting design specifications into
12
INTEGRATION AND TEST PHASE
Subsystem integration, system, security, and user acceptance testing is
conducted during the integration and test phase. The user, with those
developed or modified system. OIT Security staff assess the system security and
installation/implementation.
13
IMPLEMENTATION PHASE
This phase is initiated after the system has been tested and accepted by the
user. In this phase, the system is installed to support the intended business
onto production computers, and integration of the system into daily work
14
CSV TABLES:-
BOOK AVAILABLE IN LIBRARY
:
15
16
PYTHON CODING
import pandas as pd
import matplotlib.pyplot as plt
from datetime import date
def addNewBook():
bookid = int(input("Enter a book id : "))
title = input("Enter book title : ")
author = input("Enter author of the book : ")
publisher = input("Enter book publisher : ")
edition = input("Enter edition of book : ")
cost = int(input("Enter cost of the book : "))
category = input("Enter category of book : ")
bdf = pd.read_csv("books.csv")
n = bdf["bookid"].count()
bdf.at[n] = [bookid,title,author,publisher,edition,cost,category]
bdf.to_csv("books.csv",index = False)
print("Book added successfully")
def login():
uname = input("Enter Username : ")
pwd = input("Enter Password : ")
df = pd.read_csv("users.csv")
df = df.loc[df["username"] == uname]
if df.empty:
print("Invalid Username given")
return False
else:
df = df.loc[df["password"] == pwd]
if df.empty:
print("Invalid Password")
17
return False
else:
print("Username and Password matched successfully")
return True
def searchBook():
name = input("Enter book title to be searched : ")
bdf = pd.read_csv("books.csv")
df = bdf.loc[bdf["title"] == name]
if df.empty:
print("No book found with given title")
return False
else:
print("Book details are ")
print(df)
return True
def deleteBook():
name = input("Enter book title to be deleted : ")
bdf = pd.read_csv("books.csv")
bdf = bdf.drop(bdf[bdf["title"] == name].index)
bdf.to_csv("books.csv",index = False)
print("Book Deleted Successfully")
def showBooks():
bdf = pd.read_csv("books.csv")
print(bdf)
def addNewMember():
mid = int(input("Enter Member id : "))
18
name = input("Enter name of the member : ")
phone = input("Enter phone number : ")
email = input("Enter email id : ")
address = input("Enter address : ")
number = 0
mdf = pd.read_csv("members.csv")
n = mdf["Memberid"].count()
mdf.at[n] = [mid, name, phone, email, address, number]
mdf.to_csv("members.csv", index=False)
print("Member added successfully")
def searchMember():
name = input("Enter member name to be searched : ")
mdf = pd.read_csv("members.csv")
df = mdf.loc[mdf["name"] == name]
if df.empty:
print("No member found with given name")
return False
else:
print("Member details are ")
print(df)
return True
def deleteMember():
name = input("Enter member name to be deleted : ")
mdf = pd.read_csv("members.csv")
mdf = mdf.drop(mdf[mdf["name"] == name].index)
mdf.to_csv("members.csv", index=False)
print("Member Deleted Successfully")
19
def showMembers():
mdf = pd.read_csv("members.csv")
print(mdf)
def issueBook():
bname = input("Enter Book name to be searched : ")
df = pd.read_csv("books.csv")
df = df.loc[df["title"] == bname]
if df.empty:
print("No Book Found in the Library")
return
idf = pd.read_csv("issuedbooks.csv")
book_issue = [bname,mname,date.today(),""]
n = idf["book_name"].count()
idf.at[n] = book_issue
idf.to_csv("issuedbooks.csv",index = False)
print("Book Issued Successfully")
df = pd.read_csv("members.csv")
def showIssuedBooks():
20
idf = pd.read_csv("issuedbooks.csv")
print(idf)
def returnBook():
bname = input("Enter Book to be returned : ")
mname = input("Enter Member who has the book : ")
idf = pd.read_csv("issuedbooks.csv")
idf = idf.loc[idf["book_name"] == bname]
if idf.empty:
print("The book is not issued in records")
else:
idf = idf.loc[idf["member_name"] == mname]
if idf.empty:
print("The book is not issued to the member")
else:
print("Book can be returned")
ans = input("Are you sure you want to return the book : ")
if ans.lower() == "yes":
idf = pd.read_csv("issuedbooks.csv")
idf = idf.drop(idf[idf["book_name"] == bname].index)
idf.to_csv("issuedbooks.csv", index=False)
print("Book Returned Successfully")
else:
print("Return operation cancelled")
def showchart():
print("Press 1 - Books and their Cost")
print("Press 2 - Fine Paid by Members")
print("Press 3 - Frequently Issued Books")
print("Press 4 - No. of Books Issued per week")
ch = int(input("Enter your choice : "))
if ch == 1:
21
bdf = pd.read_csv("books.csv")
df = bdf[["title","cost"]]
bdf.plot(kind='bar')
#print(bdf)
def showMenu():
print("-----------------------------")
print(" ABC LIBRARY MGT ")
print("-----------------------------")
print("Press 1 - Add a New Book")
print("Press 2 - Search for a Book")
print("Press 3 - Delete a Book")
print("Press 4 - Show All Books")
print("Press 5 - Add a New Member")
print("Press 6 - Search for a Member")
print("Press 7 - Delete a Member")
print("Press 8 - Show All Members")
print("Press 9 - Issue a Book")
print("Press 10 - Return a Book")
print("Press 11 - Show All Issued Books")
print("Press 12 - To view Charts")
print("Press 13 - To Exit")
choice = int(input("Enter your choice : "))
return choice
if login():
while True:
ch = showMenu()
if ch == 1:
addNewBook()
elif ch == 2:
searchBook()
22
elif ch == 3:
deleteBook()
elif ch == 4:
showBooks()
elif ch == 5:
addNewMember()
elif ch == 6:
searchMember()
elif ch == 7:
deleteMember()
elif ch == 8:
showMembers()
elif ch == 9:
issueBook()
elif ch == 10:
returnBook()
elif ch == 11:
showIssuedBooks()
elif ch == 12:
showchart()
elif ch == 13:
break
else:
print("Invalid Option Selected")
23
OUTPUT
To get output :press f5
24
•TO SEARCH FOR A BOOK :
ENTER NAME OF BOOK WHICH USER WANT TO SEARCH
25
•TO SHOW ALL BOOKS PRESENT IN THE CSV
FILE
26
•TO SEARCH FOR A MEMBER:
ENTER MEMBER DETAILS WHOM USER WANT TO SEARCH
27
•TO SHOW ALL MEMBERS IN LIBRARY:
28
•FOR RETURN A BOOK:
29
•TO DELETE A ISSUE A BOOK:
ENTER DETAILS TO DELETE A ISSUED
BOOKS
30
GRAPH FOR NUMBER OF ISSUED BY MEMBERS
31
BIBLOGRAPHY:
32
Thank
You!
∗∗∗∗∗
33