Python Mini Project
Python Mini Project
Python Mini Project
Submitted by :
I hereby declare that the Mini project work entitled BOOK MANAGEMENT SYSTEM is an authentic
record of our own work carried out in B.Tech degree in Computer Science and Engineering from Lovely
Professional University, Phagwara, under the guidance of Mrs.Loveneet Kaur during September To
November 2016. All the information furnished in this mini project report is based on our own intensive work
and is genuine.
(Signature of Student )
Date: 04-11-2016
CERTIFICATE
This is to certify that the declaration statement made by the student is correct to the best of my
knowledge and belief.
He/She have completed this Mini Project under my guidance and supervision. The present work is the
result of his/heroriginal investigation, effort and study. No part of the work has ever been submitted for
any other degree at anyUniversity. The Mini Project is fit for the submission and partial fulfillment of the
conditions for the award of B.Tech degree in Computer Science and Engineering from Lovely
Professional University, Phagwara.
Assistant Professor ,
School of Computer Science and Engineering,
Lovely Professional University,
Phagwara, Punjab.
Date : 04-11-2016
ACKNOWLEDGEMENT
I take this opportunity to present my votes of thanks to all those guidepost who really acted as lightening
pillars to enlighten my way throughout this project that has led to successful and satisfactory completion of
this study.
I am really grateful to Mr. Amandeep Nagpal for providing me with an opportunity to undertake this project
and providing me with all the facilities. I am highly thankful to sir for his active support, valuable time and
advice, whole-hearted guidance, sincere cooperation and pains-taking involvement during the study and in
completing the assignment of preparing the said project within the time stipulated.
Lastly, I am thankful to all those, particularly the various friends , who have been instrumental in creating
proper, healthy and conductive environment and including new and fresh innovative ideas for me during the
project, without their help, it would have been extremely difficult for me to prepare the project in a time
bound framework.
INDEX
Declaration i
Certificate.. ii
Acknowledgement iii
1. Introduction of the Project 1
2. Problem Statement. 2
3. Requirements of Project.
4.Current Status of the project...
5. Limitations of the Project (If any).. 7
6. Bibliography 8
7. Code...................................................................................................................... 9
INTRODUCTION
This is a program to manage a book shop. Aim of this project make the work of user and management
easier by keeping record of different books. Through this program we can do a lot of things like :-
1. Any person can easily search any book that he/she wants to issue or purchase .
3. We can know the Price of any book through this program.
4. We can also see the Availability of all the books .
5. We can also know the details of a particular book by this program.
6. Also we can see profit/loss of any day by entering the date for which the book we issued on the
date we want to Return.
PROBLEM STATEMENT
Write a program to manage a book shop. Use file handling to store all data of a book permanently in . .
the memory. Also include features like :-
1. To purchase a book
1) SOFTWARE REQUIREMENTS:
LIMITATIONS
1. There are few limitations of this project like this program is unable to identify the Book by entering .
. the Author's name
2. Also we can't check the profit or loss of all books at a time. month or particular year.
3. Also this program is not capable to give each book a unique id which can be used to search an book .
. easily.
4. One more limitation is that we can't issue multiple books at a time from the Management System .
CURRENT STATUS OF PROJECT
I am currently working on a function with which admin can check profit/loss of any book
individually per month and any year.
BIBLOGRAPHY
1. https://www.tutorialspoint.com/python
2. https://docs.python.org/3/tutorial
3. www.programiz.com/python-programming
4. https://en.wikibooks.org/wiki/A_Beginner's_Python_Tutorial
5. Quora.com
6. Sthurlow.com sthurlow.com/python/
SOURCE CODE (PYTHON PROGRAMMING)
root=Tk()
def login():
root2=Toplevel(root)
l=Label(root2,text="User name").grid(row=2,column=1,pady=5)
e=Entry(root2,width=15).grid(row=2,column=2)
l1=Label(root2,text="Password").grid(row=3,column=1,pady=5)
e=Entry(root2,show="*",width=15).grid(row=3,column=2,pady=5)
b3=Button(root2,text="Login",command=choice).grid(row=5,column=2,padx=50)
b4=Button(root2,text="New User",command=newuser).grid(row=5,column=3)
def newuser():
root3=Toplevel(root)
l2=Label(root3,text="Name").grid(row=1,column=1,pady=5)
e2=Entry(root3,width=15).grid(row=1,column=2,pady=5)
l5=Label(root3,text="Gender").grid(row=2,column=1,pady=5)
var = IntVar()
l3=Label(root3,text="Mobile No").grid(row=3,column=1,pady=5)
e4=Entry(root3,width=15).grid(row=3,column=2,pady=5)
l4=Label(root3,text="Email Id").grid(row=4,column=1,pady=5)
e5=Entry(root3,width=15).grid(row=4,column=2,pady=5)
b5=Button(root3,text="Submit",command=choice).grid(row=5,column=2,padx=5)
def choice():
root6=Toplevel(root)
b5=Button(root6,text="Submit Book",command=subbook).grid(row=1,column=1,padx=5)
b8=Button(root6,text="Request Book",command=reqbook).grid(row=1,column=3,padx=5)
def subbook():
root5=Toplevel(root)
result2Str= StringVar()
result6Str=StringVar()
result2Str.set("In Rs ")
result6Str.set("")
l=Label(root5,text="User name").grid(row=2,column=1,pady=5)
e=Entry(root5,width=15).grid(row=2,column=2)
resultLabel = Label(root5,textvariable=result2Str).grid(row=5,column=2)
resultLabel = Label(root5,textvariable=result6Str).grid(row=7,column=2)
def price(self):
s=str(variable.get())
if(s=="c" or s=="c++"):
result2Str.set("In Rs.1000")
elif(s=="Dbms"):
result2Str.set("In Rs.750")
else:
result2Str.set("In rs.500")
variable=StringVar(root5)
variable.set("C")
w=OptionMenu(root5,variable,"Data structures","Dbms","Python","c++","c",command=price).grid(row=3,column=2)
def sub():
result6Str.set("Submissional Successfull")
b1=Button(root5,text="Submit",command=sub).grid(row=6,column=2,padx=50)
def reqbook():
root6=Toplevel(root)
result3Str=StringVar()
result4Str=StringVar()
result3Str.set("")
result4Str.set("")
l=Label(root6,text="User name").grid(row=2,column=1,pady=5)
e=Entry(root6,width=15).grid(row=2,column=2)
result3Label = Label(root6,textvariable=result3Str).grid(row=4,column=2)
result4Label = Label(root6,textvariable=result4Str).grid(row=7,column=2)
def price(self):
s=str(variable.get())
if(s=="c" or s=="c++"):
result3Str.set("In Rs.1000")
elif(s=="Dbms"):
result3Str.set("In Rs.750")
else:
result3Str.set("In rs.500")
variable=StringVar(root6)
w=OptionMenu(root6,variable,"Data structures","Dbms","Python","c++","c",command=price).grid(row=3,column=2)
variable.set("c")
def order():
result4Str.set("Ordered Successfully")
b1=Button(root6,text="Order",command=order).grid(row=5,column=2,padx=50)
b=Button(root,text="Login",command=login).grid(row=0,column=1,pady=20)
b1=Button(root,text="New User",command=newuser).grid(row=0,column=3,padx=50)
b2=Button(root,text="Available Books",command=reqbook).grid(row=0,column=5)
root=mainloop()