尊敬的 微信汇率:1円 ≈ 0.046215 元 支付宝汇率:1円 ≈ 0.046306元 [退出登录]
SlideShare a Scribd company logo
Name of Your School / University
Project Report
On
BOOK SHOP SYSTEM
………………………………………………
(SESSION-……………..)
………………………….
…...............
LOGO IMAGE
ACKNOWLEDGEMENT
I would like to convey my heartful thanks to
……………………………. (Computer Science) who always
gave valuable suggestions & guidance for completion of my
project.
He helped me to understand & remember important details of
the project. My project has been a success only because of his
guidance.
I am especially indented & I am also beholden to my friends. And
finally I thank to the members of my family for their support &
encouragement.
CERTIFICATE
This is to certify that …………………… of class
………… of ………………………………………
has completed his project under my supervision. He has
taken proper care & shown sincerity in completion of this
project.
I certify that this project is up to my expectation &
as per the guideline issued by ………….
……………………………….
(Computer Science faculty)
Content
1. Introduction
2. Flowchart Design
3. Database Structure
4. Source Code
5. Output
6. Requirement
7. Advantages and disadvantages
8. Conclusion
9. Bibliography
INTRODUCTION
This project BOOKSHOP SYSTEM includes some facilities for
the retail book shop to maintain records of the books and also
search, display, modification, delete etc the books available.
This software searches the books data which is store in the
record.
The software used for small shops for maintaining their records
related to books selling, printing the reports and cost savings.
Book distributors transaction handling is one of the complex
process and it required computerized system to maintain overall
transactions in an easier manner. Due to heavy demand of
books in these competitive worlds, data increase so much. Books
shop required up to date information about the customer who
purchased books or about the suppliers from where books are
purchased. The books shop requires large amount of data to
record and to store, which are collected from the Book House.
FLOWCHART DESIGN
DATABASE STRUCTURE
Table: booksinfo
Columnname Datatype/size Constraints
bookID int(11) Primary Key
title varchar(30)
price int(11)
qty int(11)
pubname varchar(30)
ISBN varchar(20)
authorname varchar(35)
category varchar(15)
Table: salepurchase
Columnname Datatype/size constraints
SPID int(11) Primary key
bookid int(11)
date_SP date
quantity int(11)
status varchar(15)
invoiceno int(11)
amount int(11)
SOURCE CODE
File Name: books_menu.py
"""*************************************************************
THE MAIN FUNCTION OF PROGRAM
****************************************************************
"""
import platform
import os
def myclear():
if platform.system()=="Windows":
print(os.system("cls"))
def intromain():
myclear()
print("***BOOKS******MANAGEMENT****SYSTEM******PROJECT*******************")
print("***************************************************************************")
def intro():
print("****************************BOOKS-MANAGEMENT*************************")
print("===========================================================")
print("****************************S=Y=S=T=E=M********************************")
print("PROJECT:")
print("MADE BY : ……………………")
print("---------------………………………………………………..--------------------")
def main():
ch=0
myclear()
intromain()
print("=================MAIN MENU====================")
print("01. BOOKS REPORT GENERATOR")
print("02. ADMINISTRATOR")
print("03. EXIT")
print("==============================================")
ch=int(input("Please Select Your Option (1-3)"))
return ch
def book_menu():
ch=0
intromain()
print("===========BOOKS INFO MENU===========")
print("01. ADD BOOKS INFORMATION")
print("02. MODIFY BOOKS INFORMATION")
print("03. DELETE BOOKS INFORMATION")
print("04. BACK TO MAIN")
print("==============================================")
ch=int(input("Please Select Your Option (1-4) "))
return ch
"""***************************************************************
ADMINSTRATOR BOOKS FUNCTION
****************************************************************"""
def admin_menu1():
ch=0
myclear()
intromain()
print("=================BOOKS ADD MENU====================")
print("1.CREATE BOOKS DETAILS")
print("2.DISPLAY ALL BOOKS DETAILS")
print("3.SEARCH RECORD BY BOOKID")
print("4.SEARCH RECORD BY BOOK TITLE")
print("5.SEARCH RECORD BY PRICE")
print("6.SEARCH RECORD BY TYPE")
print("7.SEARCH RECORD BY PUBLISHER")
print("8.BACK TO MAIN MENU")
ch=int(input("Please Enter Your Choice (1-8) "))
return ch
"""***************************************************************
ADMINSTRATOR BOOKS MAIN MENU FUNCTION
****************************************************************"""
def BOOKS_menu():
ch=0
myclear()
intromain()
print("=================ADMIN MENU====================")
print("1.BOOK'S MENU")
print("2.BOOKS SALE/PURCHASE")
print("3.BACK TO MAIN MENU")
ch=int(input("Please Enter Your Choice (1-3) "))
return ch
"""**********************************************************
MODIFY MENU
********************************************************"""
def modifyBOOKS_menu():
ch=0
myclear()
intromain()
print("===============MODIFY MENU==================")
print("1.MODIFY TITLE")
print("2.MODIFY PRICE")
print("3.MODIFY QUANTITY")
print("4.MODIFY ISBN")
print("5.MODIFY PUBLISHER")
print("6.MODIFY CATEGORY")
print("7.BACK TO MAIN MENU")
ch=int(input("Please Enter Your Choice (1-7) "))
return ch
"""**********************************************************
REPORTS MENU
********************************************************"""
def SALE_PURCHASEmenu():
ch=0
myclear()
intromain()
print("===============SALE AND PURCHASE MENU==================")
print("1.BOOKS SOLD OUT")
print("2.BOOKS PURCHASED")
print("3.BACK TO MAIN MENU")
ch=int(input("Please Enter Your Choice (1-3) "))
return ch
def booksinvoicereports():
ch=0
myclear()
intromain()
print("=================BOOKS ADD MENU====================")
print("1.SEARCH AND PRINT SALE INVOICE")
print("2.SEARCH AND PRINT PURCHASE INVOICE")
print("3.DISPLAY ALL INVOICE(SALE/PURCHASE)")
print("4.SEARCH INVOICE BY DATEOFINVOICE")
print("5.BACK TO MAIN MENU")
ch=int(input("Please Enter Your Choice (1-5) "))
return ch
File Name: books.py
import os
import pymysql
#-- to generate the autonumbers
def giveno():
count=0
mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
print(mydb)
mycursor=mydb.cursor()
query=("SELECT COUNT(*) FROM booksinfo")
q=("SELECT MAX(bookid) FROM booksinfo")
mycursor.execute(query)
rc=mycursor.fetchone()
tmp=rc[0]
print(tmp)
if tmp==0:
count=int(input("Enter the New No:"))
else:
q=("SELECT MAX(bookid) FROM booksinfo")
mycursor.execute(q)
rc=mycursor.fetchone()
count=rc[0]
count=count+1
mycursor.close()
mydb.close()
return count
#-To add new record of books
def write_bookrecord():
try:
mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
print(mydb)
C=mydb.cursor()
Query=("INSERT INTO booksinfo VALUES(%s,%s,%s,%s,%s,%s,%s,%s)")
bno=giveno()
bkid=bno
tname=input("Enter Title of book")
pr=int(input("Enter Price of book"))
pnm=input("Enter Publisher name")
isbn=int(input("Enter ISBN number"))
anm=input("Enter Author Name")
catt=input("Enter Category(Fiction/Drama/Education/Others)")
data=(bkid,tname,pr,0,pnm,isbn,anm,catt)
C.execute(Query,data)
mydb.commit()
C.close()
mydb.close()
except:
mydb.close()
#---Search book no
def booksearchdata(scid):
try:
conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=conn.cursor()
Query=("SELECT * FROM booksinfo WHERE bookid=%s")
data=(scid,)
C.execute(Query,data)
rc=C.fetchone()
if rc:
print("BOOKIDtTITLEtPRICEtQUANTITYtPUB-NAMEtISBNtAUTHORtCATEGORY")
print(rc[0],"t",rc[1],"t",rc[2],"t",rc[3],"t",rc[4],"t",rc[5],"t",rc[6],"t",rc[7])
input("--------------------press the key---------------------------------")
os.system('cls')
C.close()
conn.close()
return rc
except:
conn.close()
#----Modify Tile of book
def search_mod_Title():
try:
mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=mydb.cursor()
bno=int(input("ENTER Book No"))
rc1=booksearchdata(bno)
if rc1:
tnm=input("Enter the new Title name to update:")
Query=("UPDATE booksinfo SET title=%s WHERE bookid=%s")
data=(tnm,bno)
C.execute(Query,data)
mydb.commit()
print(C.rowcount, "record(s) affected")
C.close()
mydb.close()
except:
mydb.close()
#----Modify price of book
def search_mod_price():
try:
mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=mydb.cursor()
bno=int(input("ENTER Book No"))
rc1=booksearchdata(bno)
if rc1: #--- and f==1:
tnm=int(input("Enter the price to update:"))
Query=("UPDATE booksinfo SET price=price+%s WHERE bookid=%s")
data=(tnm,bno)
C.execute(Query,data)
mydb.commit()
print(C.rowcount, "record(s) affected")
C.close()
mydb.close()
except:
mydb.close()
#----Modify Quantity of book
def search_mod_qty():
try:
mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=mydb.cursor()
bno=int(input("ENTER Book No"))
rc1=booksearchdata(bno)
if rc1:
tnm=int(input("Enter the new Quantity to update:"))
Query=("UPDATE booksinfo SET qty=qty+%s WHERE bookid=%s")
data=(tnm,bno)
C.execute(Query,data)
mydb.commit()
print(C.rowcount, "record(s) affected")
C.close()
mydb.close()
except:
mydb.close()
#----Modify ISBN of book
def search_mod_ISBN():
try:
mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=mydb.cursor()
bno=int(input("ENTER Book No"))
rc1=booksearchdata(bno)
if rc1:
tnm=input("Enter the ISBN to update:")
Query=("UPDATE booksinfo SET ISBN=%s WHERE bookid=%s")
data=(tnm,bno)
C.execute(Query,data)
mydb.commit()
print(C.rowcount, "record(s) affected")
C.close()
mydb.close()
except:
mydb.close()
#----Modify Publisher of book
def search_mod_pub():
try:
mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=mydb.cursor()
bno=int(input("ENTER Book No"))
rc1=booksearchdata(bno)
if rc1:
tnm=input("Enter the publisher name to update:")
Query=("UPDATE booksinfo SET pubname=%s WHERE bookid=%s")
data=(tnm,bno)
C.execute(Query,data)
mydb.commit()
print(C.rowcount, "record(s) affected")
C.close()
mydb.close()
except:
mydb.close()
#----Modify Category of book
def search_mod_cat():
try:
mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=mydb.cursor()
bno=int(input("ENTER Book No"))
rc1=booksearchdata(bno)
if rc1:
tnm=input("Enter the Category to update:")
Query=("UPDATE booksinfo SET category=%s WHERE bookid=%s")
data=(tnm,bno)
C.execute(Query,data)
mydb.commit()
print(C.rowcount, "record(s) affected")
C.close()
mydb.close()
except:
mydb.close()
#---delete the book record from the table
def deletebooks():
try:
mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=mydb.cursor()
bno=int(input("ENTER Book No"))
rc1=booksearchdata(bno)
if rc1:
Query=("DELETE FROM booksinfo WHERE bookid=%s")
data=(bno,)
C.execute(Query,data)
mydb.commit()
print(C.rowcount, "record(s) affected")
C.close()
mydb.close()
except:
mydb.close()
#--show all books
def showallbook():
try:
conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=conn.cursor()
Query=("SELECT * FROM booksinfo")
#data=(scid,)
C.execute(Query)
rc=C.fetchall()
if rc:
print("BOOKIDtTITLEtPRICEtQUANTITYtPUB-NAMEtISBNtAUTHORtCATEGORY")
for x in rc:
print(x[0],"t",x[1],"t",x[2],"t",x[3],"t",x[4],"t",x[5],"t",x[6],"t",x[7])
input("--------------------press the key---------------------------------")
os.system('cls')
C.close()
conn.close()
return rc
except:
conn.close()
#----search and display book by ID
def showbookID():
try:
conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=conn.cursor()
scid=int(input("Enter the Book ID:"))
Query=("SELECT * FROM booksinfo WHERE bookid=%s")
data=(scid,)
C.execute(Query,data)
rc=C.fetchone()
if rc:
print("BOOKIDtTITLEtPRICEtQUANTITYtPUB-NAMEtISBNtAUTHORtCATEGORY")
print(rc[0],"t",rc[1],"t",rc[2],"t",rc[3],"t",rc[4],"t",rc[5],"t",rc[6],"t",rc[7])
input("--------------------press the key---------------------------------")
os.system('cls')
C.close()
conn.close()
return rc
except:
conn.close()
#----search and display book by title
def showtitle():
try:
conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=conn.cursor()
scid=input("Enter the Book TITLE:")
Query=("SELECT * FROM booksinfo WHERE title=%s")
data=(scid,)
C.execute(Query,data)
rc=C.fetchone()
if rc:
print("BOOKIDtTITLEtPRICEtQUANTITYtPUB-NAMEtISBNtAUTHORtCATEGORY")
print(rc[0],"t",rc[1],"t",rc[2],"t",rc[3],"t",rc[4],"t",rc[5],"t",rc[6],"t",rc[7])
input("--------------------press the key---------------------------------")
os.system('cls')
C.close()
conn.close()
return rc
except:
conn.close()
#----search and display book by price
def showbyprice():
try:
conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=conn.cursor()
low=int(input("Enter the Price lowest value:"))
high=int(input("Enter the Price Highest value:"))
Query=("SELECT * FROM booksinfo WHERE price BETWEEN %s AND %s ")
data=(low,high)
C.execute(Query,data)
rc=C.fetchall()
if rc:
print("BOOKIDtTITLEtPRICEtQUANTITYtPUB-NAMEtISBNtAUTHORtCATEGORY")
for rc1 in rc:
print(rc1[0],"t",rc1[1],"t",rc1[2],"t",rc1[3],"t",rc1[4],"t",rc1[5],"t",rc1[6],"t",rc1[7])
input("--------------------press the key---------------------------------")
os.system('cls')
C.close()
conn.close()
return rc
except:
conn.close()
#----search and display book by type
def showtype():
try:
conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=conn.cursor()
scid=input("Enter the Book Category(Fiction/Drama/Education/Programming/Others):")
Query=("SELECT * FROM booksinfo WHERE category=%s")
data=(scid,)
C.execute(Query,data)
rc=C.fetchall()
if rc:
print("BOOKIDtTITLEtPRICEtQUANTITYtPUB-NAMEtISBNtAUTHORtCATEGORY")
for rc1 in rc:
print(rc1[0],"t",rc1[1],"t",rc1[2],"t",rc1[3],"t",rc1[4],"t",rc1[5],"t",rc1[6],"t",rc1[7])
input("--------------------press the key---------------------------------")
os.system('cls')
C.close()
conn.close()
return rc
except:
conn.close()
#----search and display book by publisher name
def showpub():
try:
conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=conn.cursor()
scid=input("Enter the Book publisher name:")
Query=("SELECT * FROM booksinfo WHERE pubname=%s")
data=(scid,)
C.execute(Query,data)
rc=C.fetchall()
if rc:
print("BOOKIDtTITLEtPRICEtQUANTITYtPUB-NAMEtISBNtAUTHORtCATEGORY")
for rc1 in rc:
print(rc1[0],"t",rc1[1],"t",rc1[2],"t",rc1[3],"t",rc1[4],"t",rc1[5],"t",rc1[6],"t",rc1[7])
input("--------------------press the key---------------------------------")
os.system('cls')
C.close()
conn.close()
return rc
except:
conn.close()
#-- to generate the autonumbers
def givemeno():
count=0
mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
print(mydb)
mycursor=mydb.cursor()
query=("SELECT COUNT(*) FROM salepurchase")
q=("SELECT MAX(SPID) FROM salepurchase")
mycursor.execute(query)
rc=mycursor.fetchone()
tmp=rc[0]
print(tmp)
if tmp==0:
count=1
else:
q=("SELECT MAX(SPID) FROM salepurchase")
mycursor.execute(q)
rc=mycursor.fetchone()
count=rc[0]
count=count+1
mycursor.close()
mydb.close()
return count
#------Update the qty----
def changeqty(bno,qt,ch):
try:
mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=mydb.cursor()
if(ch=='S'):
Query=("UPDATE booksinfo SET qty=qty-%s WHERE bookid=%s")
elif(ch=='A'):
Query=("UPDATE booksinfo SET qty=qty+%s WHERE bookid=%s")
data=(qt,bno)
C.execute(Query,data)
mydb.commit()
print(C.rowcount, "record(s) affected")
C.close()
mydb.close()
except:
mydb.close()
#-------invoice to sell the books
def books_Sale():
try:
mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
print(mydb)
#mycursor=mydb.cursor()
C=mydb.cursor()
netamt=0
Query=("INSERT INTO salepurchase VALUES(%s,%s,%s,%s,%s,%s,%s)")
invono=int(input("Enter the invoice no:"))
dosp=input("Enter the date of sale")
while True:
no=givemeno()
invoiceid=no
bno=int(input("Enter the book no"))
rc1=booksearchdata(bno)
if rc1:
qt=int(input("Enter the quantity:"))
pr=int(input("Enter the price"))
netamt=pr*qt
#print(invoiceid,bno,dosp,qt,'SALE',invono,netamt)
data=(invoiceid,bno,dosp,qt,'SALE',invono,netamt)
C.execute(Query,data)
mydb.commit()
print(C.rowcount, "record(s) affected")
changeqty(bno,qt,'S')
else:
print("No such book record please try again")
ch=input("Do you want to add more books to sell(y/n)")
if(ch=='n' or ch=='N'):
break
C.close()
mydb.close()
except:
mydb.close()
#-------invoice to sell the books
def books_purchase():
try:
mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
print(mydb)
#mycursor=mydb.cursor()
C=mydb.cursor()
netamt=0
Query=("INSERT INTO salepurchase VALUES(%s,%s,%s,%s,%s,%s,%s)")
invono=int(input("Enter the invoice no:"))
dosp=input("Enter the date of Purchase")
while True:
no=givemeno()
invoiceid=no
bno=int(input("Enter the book no"))
rc1=booksearchdata(bno)
if rc1:
qt=int(input("Enter the quantity:"))
pr=int(input("Enter the price"))
netamt=pr*qt
#print(invoiceid,bno,dosp,qt,'PURCHASE',invono,netamt)
data=(invoiceid,bno,dosp,qt,'PURCHASE',invono,netamt)
C.execute(Query,data)
mydb.commit()
print(C.rowcount, "record(s) affected")
changeqty(bno,qt,'A')
else:
print("No such book record please try again")
ch=input("Do you want to add more books (y/n)")
if(ch=='n' or ch=='N'):
break
C.close()
mydb.close()
except:
mydb.close()
#--------SEARCH AND PRINT SALE INVOICE
def searchinvoice():
try:
conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=conn.cursor()
tot=0
gst=0
count=1
nettot=0
invo=int(input("Enter the Invoice No:"))
Query=("SELECT booksinfo.title,salepurchase.amount,salepurchase.quantity,salepurchase.date_SP FROM
booksinfo,salepurchase WHERE booksinfo.bookid=salepurchase.bookid AND salepurchase.status='SALE'
AND salepurchase.invoiceno=%s")
data=(invo,)
C.execute(Query,data)
rc=C.fetchall()
if rc:
print("----------------INVOICE: ",invo,"---------DATE: ",rc[0][3])
print("--------------------------SALE------------------------------")
print("S.NO.----|------------BOOK NAME-------------------TOTAL-----")
for rc1 in rc:
tot=tot+rc1[1]
print(count," |---",rc1[0],"ttttt |t",rc1[1])
count=count+1
gst=tot*12/100
nettot=tot+gst
print("============================================================")
print(" Total: ",tot)
print(" GST : ",gst)
print(" NETTOTAL: ",nettot)
input("----------------------Press any key-------------------------")
C.close()
conn.close()
return rc
except:
conn.close()
#--------SEARCH AND PRINT PURCHASE INVOICE
def searchinvoicePUR():
try:
conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=conn.cursor()
tot=0
gst=0
count=1
nettot=0
invo=int(input("Enter the Invoice No:"))
Query=("SELECT booksinfo.title,salepurchase.amount,salepurchase.quantity,salepurchase.date_SP FROM
booksinfo,salepurchase WHERE booksinfo.bookid=salepurchase.bookid AND
salepurchase.status='PURCHASE' AND salepurchase.invoiceno=%s")
data=(invo,)
C.execute(Query,data)
rc=C.fetchall()
if rc:
print("----------------INVOICE: ",invo,"---------DATE: ",rc[0][3])
print("-----------------------PURCHASE-----------------------------")
print("S.NO.----|------------BOOK NAME-------------------TOTAL-----")
for rc1 in rc:
tot=tot+rc1[1]
print(count," |---",rc1[0],"ttttt |t",rc1[1])
count=count+1
gst=tot*12/100
nettot=tot+gst
print("============================================================")
print(" Total: ",tot)
print(" GST : ",gst)
print(" NETTOTAL: ",nettot)
input("----------------------Press any key-------------------------")
C.close()
conn.close()
return rc
except:
conn.close()
#----------display all invoice SALE or PURCHASE wise
def displayinvoiceSP():
try:
conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=conn.cursor()
count=1
ch=int(input("Enter the Choice 1- SALE Wise 2- PURCHASE Wise:"))
Query=("SELECT booksinfo.title,salepurchase.amount,salepurchase.quantity,salepurchase.date_SP FROM
booksinfo,salepurchase WHERE booksinfo.bookid=salepurchase.bookid AND salepurchase.status=%s")
if(ch==1):
data=('SALE',)
else:
data=('PURCHASE',)
C.execute(Query,data)
rc=C.fetchall()
if rc:
print("---------------------INVOICE LIST---------------------------")
print("------------------------------------------------------------")
print("S.NO.ttTitlettQUANTITYttAMOUNTttDATE")
for rc1 in rc:
print(count,"tt",rc1[0],"tt",rc1[2],"tt",rc1[1],"tt",rc1[3])
count=count+1
print("============================================================")
input("----------------------Press any key-------------------------")
C.close()
conn.close()
return rc
except:
conn.close()
#----------display all invoice SALE or PURCHASE by date
def displayinvoiceSPdate():
try:
conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem")
C=conn.cursor()
count=1
ch=int(input("Enter the Choice 1- SALE Wise 2- PURCHASE Wise:"))
dt=input("Enter the date(yyyy-mm-dd)")
Query=("SELECT
booksinfo.title,salepurchase.amount,salepurchase.quantity,salepurchase.date_SP,salepurchase.invoiceno FROM
booksinfo,salepurchase WHERE booksinfo.bookid=salepurchase.bookid AND salepurchase.status=%s and
salepurchase.date_SP=%s")
if(ch==1):
data=('SALE',dt)
info='SALE'
else:
data=('PURCHASE',dt)
info='PURCHASE'
C.execute(Query,data)
rc=C.fetchall()
if rc:
print("---------------------INVOICE LIST---------------------------")
print("---------------------",info,"---------------------------")
print("S.NO.ttTitlettQUANTITYttAMOUNTttDATEttINVOICENO")
for rc1 in rc:
print(count,"tt",rc1[0],"tt",rc1[2],"tt",rc1[1],"tt",rc1[3],"tt",rc1[4])
count=count+1
print("============================================================")
input("----------------------Press any key-------------------------")
C.close()
conn.close()
return rc
except:
conn.close()
File Name: BOOKSmainpage.py
import books_menu as CM
import sys
import books as BK
def invoice_show():
choice1=CM.booksinvoicereports()
while True:
if choice1==1:
BK.searchinvoice()
break
elif choice1==2:
BK.searchinvoicePUR()
break
elif choice1==3:
BK.displayinvoiceSP()
break
elif choice1==4:
BK.displayinvoiceSPdate()
break
elif choice1==5:
main()
else:
#print("Enter the correct choice")
input("Enter any key to continue")
choice1=0
invoice_show()
def modifybooksshow():
choice1=" "
choice1=CM.modifyBOOKS_menu()
while True:
if choice1==1:
#-----1.MODIFY TITLE
BK.search_mod_Title()
break
elif choice1==2:
#-------2.MODIFY PRICE
BK.search_mod_price()
break
elif choice1==3:
#-------3.MODIFY QUANTITY
BK.search_mod_qty()
break
elif choice1==4:
#-------4.MODIFY ISBN
BK.search_mod_ISBN()
break
elif choice1==5:
#-------5.MODIFY PUBLISHER
BK.search_mod_pub()
break
elif choice1==6:
#-------5.MODIFY CATEGORY
BK.search_mod_cat()
break
elif choice1==7:
main()
else:
input("Enter any key to continue")
modifybooksshow()
#-----------------BOOKS MENU
def booksmenu_show():
choice1=" "
choice1=CM.BOOKS_menu()
while True:
if choice1==1:
bookmidmenu()
break
elif choice1==2:
salepurchase_show()
break
elif choice1==3:
main()
else:
print("Enter the correct choice")
input("Enter any key to continue")
booksmenu_show()
#--------MODIFY MENU AREA
def modifyshow():
choice1=CM.modify_menu()
while True:
if choice1==1:
#--to search custid and modify customer
name
cust.search_mod_custnm()
input("----Press any key------")
break
elif choice1==2:
#----to search custid and modify customer
address
cust.search_mod_custadd()
input("----Press any key------")
break
elif choice1==3:
#---to search custid and search customer
phone no.
cust.search_mod_custphno()
input("----Press any key------")
break
elif choice1==4:
print("a")
break
else:
print("Enter the correct choice")
input("-----Press any key to continue-----")
choice1=0
modifyshow()
#-------------------------
def book_show():
choice1=CM.admin_menu1()
while True:
if choice1==1:
BK.write_bookrecord()
break
elif choice1==2:
BK.showallbook()
break
elif choice1==3:
BK.showbookID()
break
elif choice1==4:
BK.showtitle()
break
elif choice1==5:
BK.showbyprice()
break
elif choice1==6:
BK.showtype()
break
elif choice1==7:
BK.showpub()
break
elif choice1==8:
main()
break
else:
input("Enter any key to continue")
choice1=0
book_show()
#--------administrator menu
def bookmidmenu():
choice1=CM.book_menu()
while True:
if choice1==1:
book_show()
break
elif choice1==2:
modifybooksshow()
break
elif choice1==3:
BK.deletebooks()
break
elif choice1==4:
print("a")
break
else:
print("Enter the correct choice")
input("Enter any key to continue")
choice1=0
midmenu()
def salepurchase_show():
choice1=CM.SALE_PURCHASEmenu()
while True:
if choice1==1:
BK.books_Sale()
break
elif choice1==2:
BK.books_purchase()
break
elif choice1==3:
main()
else:
#print("Enter the correct choice")
input("Enter any key to continue")
choice1=0
salepurchase_show()
#-------------Main MENU------------------------------
def main():
CM.intro()
choice=0
while(True):
choice=CM.main()
if choice==1:
CM.myclear()
invoice_show()
elif choice==2:
CM.myclear()
booksmenu_show()
elif choice==3:
exit(1)
else:
print("Enter the correct choice")
input("Enter any key to continue")
main()
OUTPUTS
**********BOOKS******MANAGEMENT****SYSTEM******PROJECT*******************
***************************************************************************
=================MAIN MENU====================
01. BOOKS REPORT GENERATOR
02. ADMINISTRATOR
03. EXIT
==============================================
Please Select Your Option (1-3)
If choice : 1
=================BOOKS ADD MENU====================
1.SEARCH AND PRINT SALE INVOICE
2.SEARCH AND PRINT PURCHASE INVOICE
3.DISPLAY ALL INVOICE(SALE/PURCHASE)
4.SEARCH INVOICE BY DATEOFINVOICE
5.BACK TO MAIN MENU
Please Enter Your Choice (1-5)
If choice: 1
Enter the Invoice No:1452
----------------INVOICE: 1452 ----------------------------------DATE: 2020-09-20
--------------------------SALE------------------------------
S.NO.----|------------BOOK NAME--------------------------------------TOTAL-----
1 |--- CplusProgram | 4500
2 |--- java | 11835
============================================================
Total: 16335
GST : 1960.2
NETTOTAL: 18295.2
if choice: 3
Enter the Choice 1- SALE Wise 2- PURCHASE Wise:1
---------------------INVOICE LIST---------------------------
S.NO. Title QUANTITY AMOUNT DATE
1 CplusProgram 5 2250 2020-05-06
2 java 15 11835 2020-05-06
3 CplusProgram 10 4500 2020-09-20
4 java 15 11835 2020-09-20
If choice: 4
Enter the Choice 1- SALE Wise 2- PURCHASE Wise:1
Enter the date(yyyy-mm-dd) 2020-09-20
---------------------INVOICE LIST---------------------------
--------------------- SALE ---------------------------
S.NO. Title QUANTITY AMOUNT DATE INVOICENO
1 CplusProgram 10 4500 2020-09-20 1452
2 java 15 11835 2020-09-20 1452
If choice: 2
=================ADMIN MENU====================
1.BOOK'S MENU
2.BOOKS SALE/PURCHASE
3.BACK TO MAIN MENU
Please Enter Your Choice (1-3)
If choice : 1
===========BOOKS INFO MENU===========
01. ADD BOOKS INFORMATION
02. MODIFY BOOKS INFORMATION
03. DELETE BOOKS INFORMATION
04. BACK TO MAIN
==============================================
Please Select Your Option (1-4)
If choice:1
=================BOOKS ADD MENU====================
1.CREATE BOOKS DETAILS
2.DISPLAY ALL BOOKS DETAILS
3.SEARCH RECORD BY BOOKID
4.SEARCH RECORD BY BOOK TITLE
5.SEARCH RECORD BY PRICE
6.SEARCH RECORD BY TYPE
7.SEARCH RECORD BY PUBLISHER
8.BACK TO MAIN MENU
Please Enter Your Choice (1-8)
If choice: 1
Enter Title of bookPythonDummies
Enter Price of book580
Enter Publisher nameDummies
Enter ISBN number78956896
Enter Author NameN.D
Enter Category(Fiction/Drama/Education/Others)Computer
If choice: 2
Please Enter Your Choice (1-8) 2
BOOKID TITLE PRICE QUANTITY PUB-NAME ISBN AUTHOR CATEGORY
1451 CplusProgram 450 90 E.SAMUEL 145625 T.SMITH FICTIONS
1452 java 789 85 bpb pub 44587 r.james Programming
1453 PythonDummies 580 0 Dummies 78956896 N.D Computer
If choice: 3
Enter the Book ID:1452
BOOKID TITLE PRICE QUANTITY PUB-NAME ISBN AUTHOR CATEGORY
1452 java 452 88 bpb pub 445877 r.james Programming
If choice: 2 MODIFY
If choice : 2
ENTER Book No1452
BOOKID TITLE PRICE QUANTITY PUB-NAME ISBN AUTHOR CATEGORY
1452 java 454 88 bpb pub 445877 r.james Programming
--------------------press the key---------------------------------
Enter the new Quantity to update:2
1 record(s) affected
REQUIREMENTS
HARDWARE REQUIRED
 Printer, to print the required documents of the project
 Processor : intel or any other
 Ram : 512 MB or above
 Harddisk : 80 GB or more
 SOFTWARE REQUIRED
 Operating system : Windows 7 or above
 Python 2 or above
 IDE Atom, PyCharm, Thonny, or any other.
 Database: MySQL
 WebServer: XAMPP
ADVANTAGES AND DISADVANTAGES
Advantages:
 Customer does not have to wait in long queues.
 This software reduces paper work.
 It is easy to handle customer’s record.
 This software saves the time.
 Information of the customer stores permanently.
Disadvantages:
 This system suitable for only small book shops.
 Online facility is not available.
CONCLUSION
This software is efficient in maintaining customer’s details
and can easily perform operations on customer’s records. This
software also reduces the work load of the shop keeper to
know the quantity of books available and also keep the records
of how many books are purchased and sold.
In future, this system can launch web site for easy online
book selling.
BIBLIOGRAPHY
 www.mysql.org
 www.google.co.in
 www.w3schools.com
 www.tutorialspoint.com
 www.javapoint.com
 www.programiz.com
 www.guru99.com

More Related Content

What's hot

IP Project for Class 12th CBSE
IP Project for Class 12th CBSEIP Project for Class 12th CBSE
IP Project for Class 12th CBSE
Sylvester Correya
 
Python Project On Cosmetic Shop system
Python Project On Cosmetic Shop systemPython Project On Cosmetic Shop system
Python Project On Cosmetic Shop system
vikram mahendra
 
computer science with python project for class 12 cbse
computer science with python project for class 12 cbsecomputer science with python project for class 12 cbse
computer science with python project for class 12 cbse
manishjain598
 
Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)
KushShah65
 
cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project
NIKHIL DWIVEDI
 
ASL/ALS CLASS 12 ENGLISH PROJECT
ASL/ALS CLASS 12 ENGLISH PROJECTASL/ALS CLASS 12 ENGLISH PROJECT
ASL/ALS CLASS 12 ENGLISH PROJECT
RAM LAL ANAND COLLEGE, UNIVERSITY OF DELHI
 
class 12th computer science project Employee Management System In Python
 class 12th computer science project Employee Management System In Python class 12th computer science project Employee Management System In Python
class 12th computer science project Employee Management System In Python
AbhishekKumarMorla
 
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12THBANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
SHAJUS5
 
Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12
OmRanjan2
 
Chemistry project part 1 caseins in milk......
Chemistry project part 1 caseins in milk......Chemistry project part 1 caseins in milk......
Chemistry project part 1 caseins in milk......
AnuragSharma530
 
“To estimate the charge induced on each one of the two identical Styrofoam (o...
“To estimate the charge induced on each one of the two identical Styrofoam (o...“To estimate the charge induced on each one of the two identical Styrofoam (o...
“To estimate the charge induced on each one of the two identical Styrofoam (o...
VanshPatil7
 
Computer Science Practical File class XII
Computer Science Practical File class XIIComputer Science Practical File class XII
Computer Science Practical File class XII
YugenJarwal
 
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
अयशकांत मिश्र
 
English Project work.pdf
English Project work.pdfEnglish Project work.pdf
English Project work.pdf
AakashKushwaha26
 
To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...
To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...
To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...
AnkitSharma1903
 
12th CBSE Computer Science Project
12th CBSE Computer Science Project12th CBSE Computer Science Project
12th CBSE Computer Science Project
Ashwin Francis
 
Physics Investigatory Project Class 12
Physics Investigatory Project Class 12Physics Investigatory Project Class 12
Physics Investigatory Project Class 12
Self-employed
 
To Study the earth's magnetic field using a tangent galvanometer Tangent galv...
To Study the earth's magnetic field using a tangent galvanometer Tangent galv...To Study the earth's magnetic field using a tangent galvanometer Tangent galv...
To Study the earth's magnetic field using a tangent galvanometer Tangent galv...
Arjun Kumar Sah
 
Term 2 CS Practical File 2021-22.pdf
Term 2 CS Practical File 2021-22.pdfTerm 2 CS Practical File 2021-22.pdf
Term 2 CS Practical File 2021-22.pdf
KiranKumari204016
 
computer science project class 12th
computer science project class 12thcomputer science project class 12th
computer science project class 12th
Nitesh Kushwaha
 

What's hot (20)

IP Project for Class 12th CBSE
IP Project for Class 12th CBSEIP Project for Class 12th CBSE
IP Project for Class 12th CBSE
 
Python Project On Cosmetic Shop system
Python Project On Cosmetic Shop systemPython Project On Cosmetic Shop system
Python Project On Cosmetic Shop system
 
computer science with python project for class 12 cbse
computer science with python project for class 12 cbsecomputer science with python project for class 12 cbse
computer science with python project for class 12 cbse
 
Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)
 
cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project
 
ASL/ALS CLASS 12 ENGLISH PROJECT
ASL/ALS CLASS 12 ENGLISH PROJECTASL/ALS CLASS 12 ENGLISH PROJECT
ASL/ALS CLASS 12 ENGLISH PROJECT
 
class 12th computer science project Employee Management System In Python
 class 12th computer science project Employee Management System In Python class 12th computer science project Employee Management System In Python
class 12th computer science project Employee Management System In Python
 
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12THBANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
 
Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12
 
Chemistry project part 1 caseins in milk......
Chemistry project part 1 caseins in milk......Chemistry project part 1 caseins in milk......
Chemistry project part 1 caseins in milk......
 
“To estimate the charge induced on each one of the two identical Styrofoam (o...
“To estimate the charge induced on each one of the two identical Styrofoam (o...“To estimate the charge induced on each one of the two identical Styrofoam (o...
“To estimate the charge induced on each one of the two identical Styrofoam (o...
 
Computer Science Practical File class XII
Computer Science Practical File class XIIComputer Science Practical File class XII
Computer Science Practical File class XII
 
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
 
English Project work.pdf
English Project work.pdfEnglish Project work.pdf
English Project work.pdf
 
To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...
To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...
To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...
 
12th CBSE Computer Science Project
12th CBSE Computer Science Project12th CBSE Computer Science Project
12th CBSE Computer Science Project
 
Physics Investigatory Project Class 12
Physics Investigatory Project Class 12Physics Investigatory Project Class 12
Physics Investigatory Project Class 12
 
To Study the earth's magnetic field using a tangent galvanometer Tangent galv...
To Study the earth's magnetic field using a tangent galvanometer Tangent galv...To Study the earth's magnetic field using a tangent galvanometer Tangent galv...
To Study the earth's magnetic field using a tangent galvanometer Tangent galv...
 
Term 2 CS Practical File 2021-22.pdf
Term 2 CS Practical File 2021-22.pdfTerm 2 CS Practical File 2021-22.pdf
Term 2 CS Practical File 2021-22.pdf
 
computer science project class 12th
computer science project class 12thcomputer science project class 12th
computer science project class 12th
 

Similar to BOOK SHOP SYSTEM Project in Python

CANTEEN MANAGEMENT SYSTEM IN PYTHON
CANTEEN MANAGEMENT SYSTEM IN PYTHONCANTEEN MANAGEMENT SYSTEM IN PYTHON
CANTEEN MANAGEMENT SYSTEM IN PYTHON
vikram mahendra
 
Python Project on Computer Shop
Python Project on Computer ShopPython Project on Computer Shop
Python Project on Computer Shop
vikram mahendra
 
Library Management System in c++
Library Management System in c++Library Management System in c++
Library Management System in c++
vikram mahendra
 
PYTHON PROJECT ON CARSHOP SYSTEM
PYTHON PROJECT ON CARSHOP SYSTEMPYTHON PROJECT ON CARSHOP SYSTEM
PYTHON PROJECT ON CARSHOP SYSTEM
vikram mahendra
 
TThompson_ITCO231_U1_IP
TThompson_ITCO231_U1_IPTThompson_ITCO231_U1_IP
TThompson_ITCO231_U1_IP
TRAVIS LEE THOMPSON
 
BOOK SHOP SYSTEM C++
BOOK SHOP SYSTEM C++BOOK SHOP SYSTEM C++
BOOK SHOP SYSTEM C++
vikram mahendra
 
Ip library management project
Ip library management projectIp library management project
Ip library management project
AmazShopzone
 
Analisys Services
Analisys ServicesAnalisys Services
Analisys Services
Pablo Eduardo Meneses Leiva
 
Database
DatabaseDatabase
Database
Rū Sh
 
Retail Reference Architecture Part 3: Scalable Insight Component Providing Us...
Retail Reference Architecture Part 3: Scalable Insight Component Providing Us...Retail Reference Architecture Part 3: Scalable Insight Component Providing Us...
Retail Reference Architecture Part 3: Scalable Insight Component Providing Us...
MongoDB
 
It's Not You. It's Your Data Model.
It's Not You. It's Your Data Model.It's Not You. It's Your Data Model.
It's Not You. It's Your Data Model.
Alex Powers
 
IT301-Datawarehousing (1) and its sub topics.pptx
IT301-Datawarehousing (1) and its sub topics.pptxIT301-Datawarehousing (1) and its sub topics.pptx
IT301-Datawarehousing (1) and its sub topics.pptx
ReneeClintGortifacio
 
Approach
ApproachApproach
Approach
ApproachApproach
SQL Server 2008 Portfolio
SQL Server 2008 PortfolioSQL Server 2008 Portfolio
SQL Server 2008 Portfolio
lilredlokita
 
Lokesh 's Ip project Pokemon information
Lokesh 's Ip project Pokemon informationLokesh 's Ip project Pokemon information
Lokesh 's Ip project Pokemon information
bholu803201
 
Python for data analysis (ITP and NPV)
Python for data analysis (ITP and NPV)Python for data analysis (ITP and NPV)
Python for data analysis (ITP and NPV)
Chandrasekhar Reddy, PMP
 
Sql server building a database ppt 12
Sql server building a database ppt 12Sql server building a database ppt 12
Sql server building a database ppt 12
Vibrant Technologies & Computers
 
Feature surfacing - meetup
Feature surfacing  - meetupFeature surfacing  - meetup
Feature surfacing - meetup
PredicSis
 
Apache Spark Side of Funnels
Apache Spark Side of FunnelsApache Spark Side of Funnels
Apache Spark Side of Funnels
Databricks
 

Similar to BOOK SHOP SYSTEM Project in Python (20)

CANTEEN MANAGEMENT SYSTEM IN PYTHON
CANTEEN MANAGEMENT SYSTEM IN PYTHONCANTEEN MANAGEMENT SYSTEM IN PYTHON
CANTEEN MANAGEMENT SYSTEM IN PYTHON
 
Python Project on Computer Shop
Python Project on Computer ShopPython Project on Computer Shop
Python Project on Computer Shop
 
Library Management System in c++
Library Management System in c++Library Management System in c++
Library Management System in c++
 
PYTHON PROJECT ON CARSHOP SYSTEM
PYTHON PROJECT ON CARSHOP SYSTEMPYTHON PROJECT ON CARSHOP SYSTEM
PYTHON PROJECT ON CARSHOP SYSTEM
 
TThompson_ITCO231_U1_IP
TThompson_ITCO231_U1_IPTThompson_ITCO231_U1_IP
TThompson_ITCO231_U1_IP
 
BOOK SHOP SYSTEM C++
BOOK SHOP SYSTEM C++BOOK SHOP SYSTEM C++
BOOK SHOP SYSTEM C++
 
Ip library management project
Ip library management projectIp library management project
Ip library management project
 
Analisys Services
Analisys ServicesAnalisys Services
Analisys Services
 
Database
DatabaseDatabase
Database
 
Retail Reference Architecture Part 3: Scalable Insight Component Providing Us...
Retail Reference Architecture Part 3: Scalable Insight Component Providing Us...Retail Reference Architecture Part 3: Scalable Insight Component Providing Us...
Retail Reference Architecture Part 3: Scalable Insight Component Providing Us...
 
It's Not You. It's Your Data Model.
It's Not You. It's Your Data Model.It's Not You. It's Your Data Model.
It's Not You. It's Your Data Model.
 
IT301-Datawarehousing (1) and its sub topics.pptx
IT301-Datawarehousing (1) and its sub topics.pptxIT301-Datawarehousing (1) and its sub topics.pptx
IT301-Datawarehousing (1) and its sub topics.pptx
 
Approach
ApproachApproach
Approach
 
Approach
ApproachApproach
Approach
 
SQL Server 2008 Portfolio
SQL Server 2008 PortfolioSQL Server 2008 Portfolio
SQL Server 2008 Portfolio
 
Lokesh 's Ip project Pokemon information
Lokesh 's Ip project Pokemon informationLokesh 's Ip project Pokemon information
Lokesh 's Ip project Pokemon information
 
Python for data analysis (ITP and NPV)
Python for data analysis (ITP and NPV)Python for data analysis (ITP and NPV)
Python for data analysis (ITP and NPV)
 
Sql server building a database ppt 12
Sql server building a database ppt 12Sql server building a database ppt 12
Sql server building a database ppt 12
 
Feature surfacing - meetup
Feature surfacing  - meetupFeature surfacing  - meetup
Feature surfacing - meetup
 
Apache Spark Side of Funnels
Apache Spark Side of FunnelsApache Spark Side of Funnels
Apache Spark Side of Funnels
 

More from vikram mahendra

Communication skill
Communication skillCommunication skill
Communication skill
vikram mahendra
 
FLOW OF CONTROL-NESTED IFS IN PYTHON
FLOW OF CONTROL-NESTED IFS IN PYTHONFLOW OF CONTROL-NESTED IFS IN PYTHON
FLOW OF CONTROL-NESTED IFS IN PYTHON
vikram mahendra
 
FLOWOFCONTROL-IF..ELSE PYTHON
FLOWOFCONTROL-IF..ELSE PYTHONFLOWOFCONTROL-IF..ELSE PYTHON
FLOWOFCONTROL-IF..ELSE PYTHON
vikram mahendra
 
FLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHONFLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHON
vikram mahendra
 
OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1
vikram mahendra
 
OPERATOR IN PYTHON-PART2
OPERATOR IN PYTHON-PART2OPERATOR IN PYTHON-PART2
OPERATOR IN PYTHON-PART2
vikram mahendra
 
USE OF PRINT IN PYTHON PART 2
USE OF PRINT IN PYTHON PART 2USE OF PRINT IN PYTHON PART 2
USE OF PRINT IN PYTHON PART 2
vikram mahendra
 
DATA TYPE IN PYTHON
DATA TYPE IN PYTHONDATA TYPE IN PYTHON
DATA TYPE IN PYTHON
vikram mahendra
 
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
vikram mahendra
 
USER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHONUSER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHON
vikram mahendra
 
FUNCTIONS IN PYTHON[RANDOM FUNCTION]
FUNCTIONS IN PYTHON[RANDOM FUNCTION]FUNCTIONS IN PYTHON[RANDOM FUNCTION]
FUNCTIONS IN PYTHON[RANDOM FUNCTION]
vikram mahendra
 
INTRODUCTION TO FUNCTIONS IN PYTHON
INTRODUCTION TO FUNCTIONS IN PYTHONINTRODUCTION TO FUNCTIONS IN PYTHON
INTRODUCTION TO FUNCTIONS IN PYTHON
vikram mahendra
 
Python Introduction
Python IntroductionPython Introduction
Python Introduction
vikram mahendra
 
GREEN SKILL[PART-2]
GREEN SKILL[PART-2]GREEN SKILL[PART-2]
GREEN SKILL[PART-2]
vikram mahendra
 
GREEN SKILLS[PART-1]
GREEN SKILLS[PART-1]GREEN SKILLS[PART-1]
GREEN SKILLS[PART-1]
vikram mahendra
 
Dictionary in python
Dictionary in pythonDictionary in python
Dictionary in python
vikram mahendra
 
Entrepreneurial skills
Entrepreneurial skillsEntrepreneurial skills
Entrepreneurial skills
vikram mahendra
 
Boolean logic
Boolean logicBoolean logic
Boolean logic
vikram mahendra
 
Tuple in python
Tuple in pythonTuple in python
Tuple in python
vikram mahendra
 
LIST IN PYTHON[SELECTION SORT]
LIST IN PYTHON[SELECTION SORT]LIST IN PYTHON[SELECTION SORT]
LIST IN PYTHON[SELECTION SORT]
vikram mahendra
 

More from vikram mahendra (20)

Communication skill
Communication skillCommunication skill
Communication skill
 
FLOW OF CONTROL-NESTED IFS IN PYTHON
FLOW OF CONTROL-NESTED IFS IN PYTHONFLOW OF CONTROL-NESTED IFS IN PYTHON
FLOW OF CONTROL-NESTED IFS IN PYTHON
 
FLOWOFCONTROL-IF..ELSE PYTHON
FLOWOFCONTROL-IF..ELSE PYTHONFLOWOFCONTROL-IF..ELSE PYTHON
FLOWOFCONTROL-IF..ELSE PYTHON
 
FLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHONFLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHON
 
OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1
 
OPERATOR IN PYTHON-PART2
OPERATOR IN PYTHON-PART2OPERATOR IN PYTHON-PART2
OPERATOR IN PYTHON-PART2
 
USE OF PRINT IN PYTHON PART 2
USE OF PRINT IN PYTHON PART 2USE OF PRINT IN PYTHON PART 2
USE OF PRINT IN PYTHON PART 2
 
DATA TYPE IN PYTHON
DATA TYPE IN PYTHONDATA TYPE IN PYTHON
DATA TYPE IN PYTHON
 
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
 
USER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHONUSER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHON
 
FUNCTIONS IN PYTHON[RANDOM FUNCTION]
FUNCTIONS IN PYTHON[RANDOM FUNCTION]FUNCTIONS IN PYTHON[RANDOM FUNCTION]
FUNCTIONS IN PYTHON[RANDOM FUNCTION]
 
INTRODUCTION TO FUNCTIONS IN PYTHON
INTRODUCTION TO FUNCTIONS IN PYTHONINTRODUCTION TO FUNCTIONS IN PYTHON
INTRODUCTION TO FUNCTIONS IN PYTHON
 
Python Introduction
Python IntroductionPython Introduction
Python Introduction
 
GREEN SKILL[PART-2]
GREEN SKILL[PART-2]GREEN SKILL[PART-2]
GREEN SKILL[PART-2]
 
GREEN SKILLS[PART-1]
GREEN SKILLS[PART-1]GREEN SKILLS[PART-1]
GREEN SKILLS[PART-1]
 
Dictionary in python
Dictionary in pythonDictionary in python
Dictionary in python
 
Entrepreneurial skills
Entrepreneurial skillsEntrepreneurial skills
Entrepreneurial skills
 
Boolean logic
Boolean logicBoolean logic
Boolean logic
 
Tuple in python
Tuple in pythonTuple in python
Tuple in python
 
LIST IN PYTHON[SELECTION SORT]
LIST IN PYTHON[SELECTION SORT]LIST IN PYTHON[SELECTION SORT]
LIST IN PYTHON[SELECTION SORT]
 

Recently uploaded

How to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in useHow to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in use
Celine George
 
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
Payaamvohra1
 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapitolTechU
 
Creative Restart 2024: Mike Martin - Finding a way around “no”
Creative Restart 2024: Mike Martin - Finding a way around “no”Creative Restart 2024: Mike Martin - Finding a way around “no”
Creative Restart 2024: Mike Martin - Finding a way around “no”
Taste
 
How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17
Celine George
 
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
Nguyen Thanh Tu Collection
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
TechSoup
 
Dreamin in Color '24 - (Workshop) Design an API Specification with MuleSoft's...
Dreamin in Color '24 - (Workshop) Design an API Specification with MuleSoft's...Dreamin in Color '24 - (Workshop) Design an API Specification with MuleSoft's...
Dreamin in Color '24 - (Workshop) Design an API Specification with MuleSoft's...
Alexandra N. Martinez
 
Diversity Quiz Finals by Quiz Club, IIT Kanpur
Diversity Quiz Finals by Quiz Club, IIT KanpurDiversity Quiz Finals by Quiz Club, IIT Kanpur
Diversity Quiz Finals by Quiz Club, IIT Kanpur
Quiz Club IIT Kanpur
 
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT KanpurDiversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Quiz Club IIT Kanpur
 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
Prof. Dr. K. Adisesha
 
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
EduSkills OECD
 
Post init hook in the odoo 17 ERP Module
Post init hook in the  odoo 17 ERP ModulePost init hook in the  odoo 17 ERP Module
Post init hook in the odoo 17 ERP Module
Celine George
 
Erasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES CroatiaErasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES Croatia
whatchangedhowreflec
 
A Quiz on Drug Abuse Awareness by Quizzito
A Quiz on Drug Abuse Awareness by QuizzitoA Quiz on Drug Abuse Awareness by Quizzito
A Quiz on Drug Abuse Awareness by Quizzito
Quizzito The Quiz Society of Gargi College
 
Keynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse CityKeynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse City
PJ Caposey
 
Information and Communication Technology in Education
Information and Communication Technology in EducationInformation and Communication Technology in Education
Information and Communication Technology in Education
MJDuyan
 
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxxSimple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
RandolphRadicy
 
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
Nguyen Thanh Tu Collection
 
220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science
Kalna College
 

Recently uploaded (20)

How to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in useHow to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in use
 
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
 
Creative Restart 2024: Mike Martin - Finding a way around “no”
Creative Restart 2024: Mike Martin - Finding a way around “no”Creative Restart 2024: Mike Martin - Finding a way around “no”
Creative Restart 2024: Mike Martin - Finding a way around “no”
 
How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17
 
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
 
Dreamin in Color '24 - (Workshop) Design an API Specification with MuleSoft's...
Dreamin in Color '24 - (Workshop) Design an API Specification with MuleSoft's...Dreamin in Color '24 - (Workshop) Design an API Specification with MuleSoft's...
Dreamin in Color '24 - (Workshop) Design an API Specification with MuleSoft's...
 
Diversity Quiz Finals by Quiz Club, IIT Kanpur
Diversity Quiz Finals by Quiz Club, IIT KanpurDiversity Quiz Finals by Quiz Club, IIT Kanpur
Diversity Quiz Finals by Quiz Club, IIT Kanpur
 
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT KanpurDiversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
 
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
 
Post init hook in the odoo 17 ERP Module
Post init hook in the  odoo 17 ERP ModulePost init hook in the  odoo 17 ERP Module
Post init hook in the odoo 17 ERP Module
 
Erasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES CroatiaErasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES Croatia
 
A Quiz on Drug Abuse Awareness by Quizzito
A Quiz on Drug Abuse Awareness by QuizzitoA Quiz on Drug Abuse Awareness by Quizzito
A Quiz on Drug Abuse Awareness by Quizzito
 
Keynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse CityKeynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse City
 
Information and Communication Technology in Education
Information and Communication Technology in EducationInformation and Communication Technology in Education
Information and Communication Technology in Education
 
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxxSimple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
 
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
 
220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science
 

BOOK SHOP SYSTEM Project in Python

  • 1. Name of Your School / University Project Report On BOOK SHOP SYSTEM ……………………………………………… (SESSION-……………..) …………………………. …............... LOGO IMAGE
  • 2. ACKNOWLEDGEMENT I would like to convey my heartful thanks to ……………………………. (Computer Science) who always gave valuable suggestions & guidance for completion of my project. He helped me to understand & remember important details of the project. My project has been a success only because of his guidance. I am especially indented & I am also beholden to my friends. And finally I thank to the members of my family for their support & encouragement.
  • 3. CERTIFICATE This is to certify that …………………… of class ………… of ……………………………………… has completed his project under my supervision. He has taken proper care & shown sincerity in completion of this project. I certify that this project is up to my expectation & as per the guideline issued by …………. ………………………………. (Computer Science faculty)
  • 4. Content 1. Introduction 2. Flowchart Design 3. Database Structure 4. Source Code 5. Output 6. Requirement 7. Advantages and disadvantages 8. Conclusion 9. Bibliography
  • 5. INTRODUCTION This project BOOKSHOP SYSTEM includes some facilities for the retail book shop to maintain records of the books and also search, display, modification, delete etc the books available. This software searches the books data which is store in the record. The software used for small shops for maintaining their records related to books selling, printing the reports and cost savings. Book distributors transaction handling is one of the complex process and it required computerized system to maintain overall transactions in an easier manner. Due to heavy demand of books in these competitive worlds, data increase so much. Books shop required up to date information about the customer who purchased books or about the suppliers from where books are purchased. The books shop requires large amount of data to record and to store, which are collected from the Book House.
  • 7. DATABASE STRUCTURE Table: booksinfo Columnname Datatype/size Constraints bookID int(11) Primary Key title varchar(30) price int(11) qty int(11) pubname varchar(30) ISBN varchar(20) authorname varchar(35) category varchar(15) Table: salepurchase Columnname Datatype/size constraints SPID int(11) Primary key bookid int(11) date_SP date quantity int(11) status varchar(15) invoiceno int(11) amount int(11)
  • 8. SOURCE CODE File Name: books_menu.py """************************************************************* THE MAIN FUNCTION OF PROGRAM **************************************************************** """ import platform import os def myclear(): if platform.system()=="Windows": print(os.system("cls")) def intromain(): myclear() print("***BOOKS******MANAGEMENT****SYSTEM******PROJECT*******************") print("***************************************************************************") def intro(): print("****************************BOOKS-MANAGEMENT*************************") print("===========================================================") print("****************************S=Y=S=T=E=M********************************") print("PROJECT:") print("MADE BY : ……………………") print("---------------………………………………………………..--------------------") def main(): ch=0 myclear() intromain() print("=================MAIN MENU====================") print("01. BOOKS REPORT GENERATOR") print("02. ADMINISTRATOR") print("03. EXIT") print("==============================================") ch=int(input("Please Select Your Option (1-3)")) return ch def book_menu(): ch=0 intromain() print("===========BOOKS INFO MENU===========") print("01. ADD BOOKS INFORMATION") print("02. MODIFY BOOKS INFORMATION") print("03. DELETE BOOKS INFORMATION") print("04. BACK TO MAIN")
  • 9. print("==============================================") ch=int(input("Please Select Your Option (1-4) ")) return ch """*************************************************************** ADMINSTRATOR BOOKS FUNCTION ****************************************************************""" def admin_menu1(): ch=0 myclear() intromain() print("=================BOOKS ADD MENU====================") print("1.CREATE BOOKS DETAILS") print("2.DISPLAY ALL BOOKS DETAILS") print("3.SEARCH RECORD BY BOOKID") print("4.SEARCH RECORD BY BOOK TITLE") print("5.SEARCH RECORD BY PRICE") print("6.SEARCH RECORD BY TYPE") print("7.SEARCH RECORD BY PUBLISHER") print("8.BACK TO MAIN MENU") ch=int(input("Please Enter Your Choice (1-8) ")) return ch """*************************************************************** ADMINSTRATOR BOOKS MAIN MENU FUNCTION ****************************************************************""" def BOOKS_menu(): ch=0 myclear() intromain() print("=================ADMIN MENU====================") print("1.BOOK'S MENU") print("2.BOOKS SALE/PURCHASE") print("3.BACK TO MAIN MENU") ch=int(input("Please Enter Your Choice (1-3) ")) return ch """********************************************************** MODIFY MENU ********************************************************""" def modifyBOOKS_menu(): ch=0 myclear() intromain() print("===============MODIFY MENU==================") print("1.MODIFY TITLE") print("2.MODIFY PRICE") print("3.MODIFY QUANTITY") print("4.MODIFY ISBN")
  • 10. print("5.MODIFY PUBLISHER") print("6.MODIFY CATEGORY") print("7.BACK TO MAIN MENU") ch=int(input("Please Enter Your Choice (1-7) ")) return ch """********************************************************** REPORTS MENU ********************************************************""" def SALE_PURCHASEmenu(): ch=0 myclear() intromain() print("===============SALE AND PURCHASE MENU==================") print("1.BOOKS SOLD OUT") print("2.BOOKS PURCHASED") print("3.BACK TO MAIN MENU") ch=int(input("Please Enter Your Choice (1-3) ")) return ch def booksinvoicereports(): ch=0 myclear() intromain() print("=================BOOKS ADD MENU====================") print("1.SEARCH AND PRINT SALE INVOICE") print("2.SEARCH AND PRINT PURCHASE INVOICE") print("3.DISPLAY ALL INVOICE(SALE/PURCHASE)") print("4.SEARCH INVOICE BY DATEOFINVOICE") print("5.BACK TO MAIN MENU") ch=int(input("Please Enter Your Choice (1-5) ")) return ch File Name: books.py import os import pymysql #-- to generate the autonumbers def giveno(): count=0 mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") print(mydb) mycursor=mydb.cursor() query=("SELECT COUNT(*) FROM booksinfo") q=("SELECT MAX(bookid) FROM booksinfo") mycursor.execute(query) rc=mycursor.fetchone() tmp=rc[0] print(tmp)
  • 11. if tmp==0: count=int(input("Enter the New No:")) else: q=("SELECT MAX(bookid) FROM booksinfo") mycursor.execute(q) rc=mycursor.fetchone() count=rc[0] count=count+1 mycursor.close() mydb.close() return count #-To add new record of books def write_bookrecord(): try: mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") print(mydb) C=mydb.cursor() Query=("INSERT INTO booksinfo VALUES(%s,%s,%s,%s,%s,%s,%s,%s)") bno=giveno() bkid=bno tname=input("Enter Title of book") pr=int(input("Enter Price of book")) pnm=input("Enter Publisher name") isbn=int(input("Enter ISBN number")) anm=input("Enter Author Name") catt=input("Enter Category(Fiction/Drama/Education/Others)") data=(bkid,tname,pr,0,pnm,isbn,anm,catt) C.execute(Query,data) mydb.commit() C.close() mydb.close() except: mydb.close() #---Search book no def booksearchdata(scid): try: conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=conn.cursor() Query=("SELECT * FROM booksinfo WHERE bookid=%s") data=(scid,) C.execute(Query,data) rc=C.fetchone() if rc: print("BOOKIDtTITLEtPRICEtQUANTITYtPUB-NAMEtISBNtAUTHORtCATEGORY") print(rc[0],"t",rc[1],"t",rc[2],"t",rc[3],"t",rc[4],"t",rc[5],"t",rc[6],"t",rc[7])
  • 12. input("--------------------press the key---------------------------------") os.system('cls') C.close() conn.close() return rc except: conn.close() #----Modify Tile of book def search_mod_Title(): try: mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=mydb.cursor() bno=int(input("ENTER Book No")) rc1=booksearchdata(bno) if rc1: tnm=input("Enter the new Title name to update:") Query=("UPDATE booksinfo SET title=%s WHERE bookid=%s") data=(tnm,bno) C.execute(Query,data) mydb.commit() print(C.rowcount, "record(s) affected") C.close() mydb.close() except: mydb.close() #----Modify price of book def search_mod_price(): try: mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=mydb.cursor() bno=int(input("ENTER Book No")) rc1=booksearchdata(bno) if rc1: #--- and f==1: tnm=int(input("Enter the price to update:")) Query=("UPDATE booksinfo SET price=price+%s WHERE bookid=%s") data=(tnm,bno) C.execute(Query,data) mydb.commit() print(C.rowcount, "record(s) affected") C.close() mydb.close() except: mydb.close() #----Modify Quantity of book def search_mod_qty(): try:
  • 13. mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=mydb.cursor() bno=int(input("ENTER Book No")) rc1=booksearchdata(bno) if rc1: tnm=int(input("Enter the new Quantity to update:")) Query=("UPDATE booksinfo SET qty=qty+%s WHERE bookid=%s") data=(tnm,bno) C.execute(Query,data) mydb.commit() print(C.rowcount, "record(s) affected") C.close() mydb.close() except: mydb.close() #----Modify ISBN of book def search_mod_ISBN(): try: mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=mydb.cursor() bno=int(input("ENTER Book No")) rc1=booksearchdata(bno) if rc1: tnm=input("Enter the ISBN to update:") Query=("UPDATE booksinfo SET ISBN=%s WHERE bookid=%s") data=(tnm,bno) C.execute(Query,data) mydb.commit() print(C.rowcount, "record(s) affected") C.close() mydb.close() except: mydb.close() #----Modify Publisher of book def search_mod_pub(): try: mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=mydb.cursor() bno=int(input("ENTER Book No")) rc1=booksearchdata(bno) if rc1: tnm=input("Enter the publisher name to update:") Query=("UPDATE booksinfo SET pubname=%s WHERE bookid=%s") data=(tnm,bno) C.execute(Query,data)
  • 14. mydb.commit() print(C.rowcount, "record(s) affected") C.close() mydb.close() except: mydb.close() #----Modify Category of book def search_mod_cat(): try: mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=mydb.cursor() bno=int(input("ENTER Book No")) rc1=booksearchdata(bno) if rc1: tnm=input("Enter the Category to update:") Query=("UPDATE booksinfo SET category=%s WHERE bookid=%s") data=(tnm,bno) C.execute(Query,data) mydb.commit() print(C.rowcount, "record(s) affected") C.close() mydb.close() except: mydb.close() #---delete the book record from the table def deletebooks(): try: mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=mydb.cursor() bno=int(input("ENTER Book No")) rc1=booksearchdata(bno) if rc1: Query=("DELETE FROM booksinfo WHERE bookid=%s") data=(bno,) C.execute(Query,data) mydb.commit() print(C.rowcount, "record(s) affected") C.close() mydb.close() except: mydb.close() #--show all books def showallbook():
  • 15. try: conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=conn.cursor() Query=("SELECT * FROM booksinfo") #data=(scid,) C.execute(Query) rc=C.fetchall() if rc: print("BOOKIDtTITLEtPRICEtQUANTITYtPUB-NAMEtISBNtAUTHORtCATEGORY") for x in rc: print(x[0],"t",x[1],"t",x[2],"t",x[3],"t",x[4],"t",x[5],"t",x[6],"t",x[7]) input("--------------------press the key---------------------------------") os.system('cls') C.close() conn.close() return rc except: conn.close() #----search and display book by ID def showbookID(): try: conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=conn.cursor() scid=int(input("Enter the Book ID:")) Query=("SELECT * FROM booksinfo WHERE bookid=%s") data=(scid,) C.execute(Query,data) rc=C.fetchone() if rc: print("BOOKIDtTITLEtPRICEtQUANTITYtPUB-NAMEtISBNtAUTHORtCATEGORY") print(rc[0],"t",rc[1],"t",rc[2],"t",rc[3],"t",rc[4],"t",rc[5],"t",rc[6],"t",rc[7]) input("--------------------press the key---------------------------------") os.system('cls') C.close() conn.close() return rc except: conn.close() #----search and display book by title def showtitle(): try: conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=conn.cursor()
  • 16. scid=input("Enter the Book TITLE:") Query=("SELECT * FROM booksinfo WHERE title=%s") data=(scid,) C.execute(Query,data) rc=C.fetchone() if rc: print("BOOKIDtTITLEtPRICEtQUANTITYtPUB-NAMEtISBNtAUTHORtCATEGORY") print(rc[0],"t",rc[1],"t",rc[2],"t",rc[3],"t",rc[4],"t",rc[5],"t",rc[6],"t",rc[7]) input("--------------------press the key---------------------------------") os.system('cls') C.close() conn.close() return rc except: conn.close() #----search and display book by price def showbyprice(): try: conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=conn.cursor() low=int(input("Enter the Price lowest value:")) high=int(input("Enter the Price Highest value:")) Query=("SELECT * FROM booksinfo WHERE price BETWEEN %s AND %s ") data=(low,high) C.execute(Query,data) rc=C.fetchall() if rc: print("BOOKIDtTITLEtPRICEtQUANTITYtPUB-NAMEtISBNtAUTHORtCATEGORY") for rc1 in rc: print(rc1[0],"t",rc1[1],"t",rc1[2],"t",rc1[3],"t",rc1[4],"t",rc1[5],"t",rc1[6],"t",rc1[7]) input("--------------------press the key---------------------------------") os.system('cls') C.close() conn.close() return rc except: conn.close() #----search and display book by type def showtype(): try: conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=conn.cursor() scid=input("Enter the Book Category(Fiction/Drama/Education/Programming/Others):") Query=("SELECT * FROM booksinfo WHERE category=%s")
  • 17. data=(scid,) C.execute(Query,data) rc=C.fetchall() if rc: print("BOOKIDtTITLEtPRICEtQUANTITYtPUB-NAMEtISBNtAUTHORtCATEGORY") for rc1 in rc: print(rc1[0],"t",rc1[1],"t",rc1[2],"t",rc1[3],"t",rc1[4],"t",rc1[5],"t",rc1[6],"t",rc1[7]) input("--------------------press the key---------------------------------") os.system('cls') C.close() conn.close() return rc except: conn.close() #----search and display book by publisher name def showpub(): try: conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=conn.cursor() scid=input("Enter the Book publisher name:") Query=("SELECT * FROM booksinfo WHERE pubname=%s") data=(scid,) C.execute(Query,data) rc=C.fetchall() if rc: print("BOOKIDtTITLEtPRICEtQUANTITYtPUB-NAMEtISBNtAUTHORtCATEGORY") for rc1 in rc: print(rc1[0],"t",rc1[1],"t",rc1[2],"t",rc1[3],"t",rc1[4],"t",rc1[5],"t",rc1[6],"t",rc1[7]) input("--------------------press the key---------------------------------") os.system('cls') C.close() conn.close() return rc except: conn.close() #-- to generate the autonumbers def givemeno(): count=0 mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") print(mydb) mycursor=mydb.cursor() query=("SELECT COUNT(*) FROM salepurchase") q=("SELECT MAX(SPID) FROM salepurchase")
  • 18. mycursor.execute(query) rc=mycursor.fetchone() tmp=rc[0] print(tmp) if tmp==0: count=1 else: q=("SELECT MAX(SPID) FROM salepurchase") mycursor.execute(q) rc=mycursor.fetchone() count=rc[0] count=count+1 mycursor.close() mydb.close() return count #------Update the qty---- def changeqty(bno,qt,ch): try: mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=mydb.cursor() if(ch=='S'): Query=("UPDATE booksinfo SET qty=qty-%s WHERE bookid=%s") elif(ch=='A'): Query=("UPDATE booksinfo SET qty=qty+%s WHERE bookid=%s") data=(qt,bno) C.execute(Query,data) mydb.commit() print(C.rowcount, "record(s) affected") C.close() mydb.close() except: mydb.close() #-------invoice to sell the books def books_Sale(): try: mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") print(mydb) #mycursor=mydb.cursor() C=mydb.cursor() netamt=0 Query=("INSERT INTO salepurchase VALUES(%s,%s,%s,%s,%s,%s,%s)") invono=int(input("Enter the invoice no:"))
  • 19. dosp=input("Enter the date of sale") while True: no=givemeno() invoiceid=no bno=int(input("Enter the book no")) rc1=booksearchdata(bno) if rc1: qt=int(input("Enter the quantity:")) pr=int(input("Enter the price")) netamt=pr*qt #print(invoiceid,bno,dosp,qt,'SALE',invono,netamt) data=(invoiceid,bno,dosp,qt,'SALE',invono,netamt) C.execute(Query,data) mydb.commit() print(C.rowcount, "record(s) affected") changeqty(bno,qt,'S') else: print("No such book record please try again") ch=input("Do you want to add more books to sell(y/n)") if(ch=='n' or ch=='N'): break C.close() mydb.close() except: mydb.close() #-------invoice to sell the books def books_purchase(): try: mydb=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") print(mydb) #mycursor=mydb.cursor() C=mydb.cursor() netamt=0 Query=("INSERT INTO salepurchase VALUES(%s,%s,%s,%s,%s,%s,%s)") invono=int(input("Enter the invoice no:")) dosp=input("Enter the date of Purchase") while True: no=givemeno() invoiceid=no bno=int(input("Enter the book no")) rc1=booksearchdata(bno)
  • 20. if rc1: qt=int(input("Enter the quantity:")) pr=int(input("Enter the price")) netamt=pr*qt #print(invoiceid,bno,dosp,qt,'PURCHASE',invono,netamt) data=(invoiceid,bno,dosp,qt,'PURCHASE',invono,netamt) C.execute(Query,data) mydb.commit() print(C.rowcount, "record(s) affected") changeqty(bno,qt,'A') else: print("No such book record please try again") ch=input("Do you want to add more books (y/n)") if(ch=='n' or ch=='N'): break C.close() mydb.close() except: mydb.close() #--------SEARCH AND PRINT SALE INVOICE def searchinvoice(): try: conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=conn.cursor() tot=0 gst=0 count=1 nettot=0 invo=int(input("Enter the Invoice No:")) Query=("SELECT booksinfo.title,salepurchase.amount,salepurchase.quantity,salepurchase.date_SP FROM booksinfo,salepurchase WHERE booksinfo.bookid=salepurchase.bookid AND salepurchase.status='SALE' AND salepurchase.invoiceno=%s") data=(invo,) C.execute(Query,data) rc=C.fetchall() if rc: print("----------------INVOICE: ",invo,"---------DATE: ",rc[0][3]) print("--------------------------SALE------------------------------") print("S.NO.----|------------BOOK NAME-------------------TOTAL-----") for rc1 in rc: tot=tot+rc1[1] print(count," |---",rc1[0],"ttttt |t",rc1[1])
  • 21. count=count+1 gst=tot*12/100 nettot=tot+gst print("============================================================") print(" Total: ",tot) print(" GST : ",gst) print(" NETTOTAL: ",nettot) input("----------------------Press any key-------------------------") C.close() conn.close() return rc except: conn.close() #--------SEARCH AND PRINT PURCHASE INVOICE def searchinvoicePUR(): try: conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=conn.cursor() tot=0 gst=0 count=1 nettot=0 invo=int(input("Enter the Invoice No:")) Query=("SELECT booksinfo.title,salepurchase.amount,salepurchase.quantity,salepurchase.date_SP FROM booksinfo,salepurchase WHERE booksinfo.bookid=salepurchase.bookid AND salepurchase.status='PURCHASE' AND salepurchase.invoiceno=%s") data=(invo,) C.execute(Query,data) rc=C.fetchall() if rc: print("----------------INVOICE: ",invo,"---------DATE: ",rc[0][3]) print("-----------------------PURCHASE-----------------------------") print("S.NO.----|------------BOOK NAME-------------------TOTAL-----") for rc1 in rc: tot=tot+rc1[1] print(count," |---",rc1[0],"ttttt |t",rc1[1]) count=count+1 gst=tot*12/100 nettot=tot+gst print("============================================================") print(" Total: ",tot) print(" GST : ",gst) print(" NETTOTAL: ",nettot)
  • 22. input("----------------------Press any key-------------------------") C.close() conn.close() return rc except: conn.close() #----------display all invoice SALE or PURCHASE wise def displayinvoiceSP(): try: conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=conn.cursor() count=1 ch=int(input("Enter the Choice 1- SALE Wise 2- PURCHASE Wise:")) Query=("SELECT booksinfo.title,salepurchase.amount,salepurchase.quantity,salepurchase.date_SP FROM booksinfo,salepurchase WHERE booksinfo.bookid=salepurchase.bookid AND salepurchase.status=%s") if(ch==1): data=('SALE',) else: data=('PURCHASE',) C.execute(Query,data) rc=C.fetchall() if rc: print("---------------------INVOICE LIST---------------------------") print("------------------------------------------------------------") print("S.NO.ttTitlettQUANTITYttAMOUNTttDATE") for rc1 in rc: print(count,"tt",rc1[0],"tt",rc1[2],"tt",rc1[1],"tt",rc1[3]) count=count+1 print("============================================================") input("----------------------Press any key-------------------------") C.close() conn.close() return rc except: conn.close() #----------display all invoice SALE or PURCHASE by date def displayinvoiceSPdate(): try: conn=pymysql.connect(host="localhost", user="root", passwd="", database="booksystem") C=conn.cursor() count=1 ch=int(input("Enter the Choice 1- SALE Wise 2- PURCHASE Wise:")) dt=input("Enter the date(yyyy-mm-dd)")
  • 23. Query=("SELECT booksinfo.title,salepurchase.amount,salepurchase.quantity,salepurchase.date_SP,salepurchase.invoiceno FROM booksinfo,salepurchase WHERE booksinfo.bookid=salepurchase.bookid AND salepurchase.status=%s and salepurchase.date_SP=%s") if(ch==1): data=('SALE',dt) info='SALE' else: data=('PURCHASE',dt) info='PURCHASE' C.execute(Query,data) rc=C.fetchall() if rc: print("---------------------INVOICE LIST---------------------------") print("---------------------",info,"---------------------------") print("S.NO.ttTitlettQUANTITYttAMOUNTttDATEttINVOICENO") for rc1 in rc: print(count,"tt",rc1[0],"tt",rc1[2],"tt",rc1[1],"tt",rc1[3],"tt",rc1[4]) count=count+1 print("============================================================") input("----------------------Press any key-------------------------") C.close() conn.close() return rc except: conn.close() File Name: BOOKSmainpage.py import books_menu as CM import sys import books as BK def invoice_show(): choice1=CM.booksinvoicereports() while True: if choice1==1: BK.searchinvoice() break elif choice1==2: BK.searchinvoicePUR() break elif choice1==3: BK.displayinvoiceSP() break elif choice1==4: BK.displayinvoiceSPdate() break elif choice1==5: main() else: #print("Enter the correct choice") input("Enter any key to continue") choice1=0 invoice_show() def modifybooksshow(): choice1=" " choice1=CM.modifyBOOKS_menu() while True: if choice1==1: #-----1.MODIFY TITLE BK.search_mod_Title() break elif choice1==2: #-------2.MODIFY PRICE BK.search_mod_price()
  • 24. break elif choice1==3: #-------3.MODIFY QUANTITY BK.search_mod_qty() break elif choice1==4: #-------4.MODIFY ISBN BK.search_mod_ISBN() break elif choice1==5: #-------5.MODIFY PUBLISHER BK.search_mod_pub() break elif choice1==6: #-------5.MODIFY CATEGORY BK.search_mod_cat() break elif choice1==7: main() else: input("Enter any key to continue") modifybooksshow() #-----------------BOOKS MENU def booksmenu_show(): choice1=" " choice1=CM.BOOKS_menu() while True: if choice1==1: bookmidmenu() break elif choice1==2: salepurchase_show() break elif choice1==3: main() else: print("Enter the correct choice") input("Enter any key to continue") booksmenu_show() #--------MODIFY MENU AREA def modifyshow(): choice1=CM.modify_menu() while True: if choice1==1: #--to search custid and modify customer name cust.search_mod_custnm() input("----Press any key------") break elif choice1==2: #----to search custid and modify customer address cust.search_mod_custadd() input("----Press any key------") break elif choice1==3: #---to search custid and search customer phone no. cust.search_mod_custphno() input("----Press any key------") break elif choice1==4: print("a") break else: print("Enter the correct choice") input("-----Press any key to continue-----") choice1=0 modifyshow() #------------------------- def book_show(): choice1=CM.admin_menu1() while True: if choice1==1: BK.write_bookrecord() break elif choice1==2: BK.showallbook() break elif choice1==3: BK.showbookID() break elif choice1==4: BK.showtitle() break elif choice1==5: BK.showbyprice() break elif choice1==6: BK.showtype()
  • 25. break elif choice1==7: BK.showpub() break elif choice1==8: main() break else: input("Enter any key to continue") choice1=0 book_show() #--------administrator menu def bookmidmenu(): choice1=CM.book_menu() while True: if choice1==1: book_show() break elif choice1==2: modifybooksshow() break elif choice1==3: BK.deletebooks() break elif choice1==4: print("a") break else: print("Enter the correct choice") input("Enter any key to continue") choice1=0 midmenu() def salepurchase_show(): choice1=CM.SALE_PURCHASEmenu() while True: if choice1==1: BK.books_Sale() break elif choice1==2: BK.books_purchase() break elif choice1==3: main() else: #print("Enter the correct choice") input("Enter any key to continue") choice1=0 salepurchase_show() #-------------Main MENU------------------------------ def main(): CM.intro() choice=0 while(True): choice=CM.main() if choice==1: CM.myclear() invoice_show() elif choice==2: CM.myclear() booksmenu_show() elif choice==3: exit(1) else: print("Enter the correct choice") input("Enter any key to continue") main()
  • 26. OUTPUTS **********BOOKS******MANAGEMENT****SYSTEM******PROJECT******************* *************************************************************************** =================MAIN MENU==================== 01. BOOKS REPORT GENERATOR 02. ADMINISTRATOR 03. EXIT ============================================== Please Select Your Option (1-3) If choice : 1 =================BOOKS ADD MENU==================== 1.SEARCH AND PRINT SALE INVOICE 2.SEARCH AND PRINT PURCHASE INVOICE 3.DISPLAY ALL INVOICE(SALE/PURCHASE) 4.SEARCH INVOICE BY DATEOFINVOICE 5.BACK TO MAIN MENU Please Enter Your Choice (1-5) If choice: 1 Enter the Invoice No:1452 ----------------INVOICE: 1452 ----------------------------------DATE: 2020-09-20 --------------------------SALE------------------------------ S.NO.----|------------BOOK NAME--------------------------------------TOTAL----- 1 |--- CplusProgram | 4500 2 |--- java | 11835 ============================================================ Total: 16335 GST : 1960.2 NETTOTAL: 18295.2 if choice: 3 Enter the Choice 1- SALE Wise 2- PURCHASE Wise:1 ---------------------INVOICE LIST--------------------------- S.NO. Title QUANTITY AMOUNT DATE 1 CplusProgram 5 2250 2020-05-06 2 java 15 11835 2020-05-06 3 CplusProgram 10 4500 2020-09-20 4 java 15 11835 2020-09-20 If choice: 4 Enter the Choice 1- SALE Wise 2- PURCHASE Wise:1 Enter the date(yyyy-mm-dd) 2020-09-20 ---------------------INVOICE LIST--------------------------- --------------------- SALE --------------------------- S.NO. Title QUANTITY AMOUNT DATE INVOICENO 1 CplusProgram 10 4500 2020-09-20 1452
  • 27. 2 java 15 11835 2020-09-20 1452 If choice: 2 =================ADMIN MENU==================== 1.BOOK'S MENU 2.BOOKS SALE/PURCHASE 3.BACK TO MAIN MENU Please Enter Your Choice (1-3) If choice : 1 ===========BOOKS INFO MENU=========== 01. ADD BOOKS INFORMATION 02. MODIFY BOOKS INFORMATION 03. DELETE BOOKS INFORMATION 04. BACK TO MAIN ============================================== Please Select Your Option (1-4) If choice:1 =================BOOKS ADD MENU==================== 1.CREATE BOOKS DETAILS 2.DISPLAY ALL BOOKS DETAILS 3.SEARCH RECORD BY BOOKID 4.SEARCH RECORD BY BOOK TITLE 5.SEARCH RECORD BY PRICE 6.SEARCH RECORD BY TYPE 7.SEARCH RECORD BY PUBLISHER 8.BACK TO MAIN MENU Please Enter Your Choice (1-8) If choice: 1 Enter Title of bookPythonDummies Enter Price of book580 Enter Publisher nameDummies Enter ISBN number78956896 Enter Author NameN.D Enter Category(Fiction/Drama/Education/Others)Computer If choice: 2 Please Enter Your Choice (1-8) 2 BOOKID TITLE PRICE QUANTITY PUB-NAME ISBN AUTHOR CATEGORY 1451 CplusProgram 450 90 E.SAMUEL 145625 T.SMITH FICTIONS 1452 java 789 85 bpb pub 44587 r.james Programming 1453 PythonDummies 580 0 Dummies 78956896 N.D Computer If choice: 3 Enter the Book ID:1452 BOOKID TITLE PRICE QUANTITY PUB-NAME ISBN AUTHOR CATEGORY 1452 java 452 88 bpb pub 445877 r.james Programming If choice: 2 MODIFY If choice : 2 ENTER Book No1452
  • 28. BOOKID TITLE PRICE QUANTITY PUB-NAME ISBN AUTHOR CATEGORY 1452 java 454 88 bpb pub 445877 r.james Programming --------------------press the key--------------------------------- Enter the new Quantity to update:2 1 record(s) affected REQUIREMENTS HARDWARE REQUIRED  Printer, to print the required documents of the project  Processor : intel or any other  Ram : 512 MB or above  Harddisk : 80 GB or more  SOFTWARE REQUIRED  Operating system : Windows 7 or above  Python 2 or above  IDE Atom, PyCharm, Thonny, or any other.  Database: MySQL  WebServer: XAMPP ADVANTAGES AND DISADVANTAGES Advantages:  Customer does not have to wait in long queues.  This software reduces paper work.  It is easy to handle customer’s record.  This software saves the time.  Information of the customer stores permanently. Disadvantages:  This system suitable for only small book shops.  Online facility is not available.
  • 29. CONCLUSION This software is efficient in maintaining customer’s details and can easily perform operations on customer’s records. This software also reduces the work load of the shop keeper to know the quantity of books available and also keep the records of how many books are purchased and sold. In future, this system can launch web site for easy online book selling. BIBLIOGRAPHY  www.mysql.org  www.google.co.in  www.w3schools.com  www.tutorialspoint.com  www.javapoint.com  www.programiz.com  www.guru99.com
  翻译: