Book Shop Management System
Book Shop Management System
Book Shop Management System
INDEX
Topic Name
Page no
Introduction 2
Objective 2
Flowchart 3
Output 8-9
Testing 9
Bibliography 10
Objectives
It keeps database of a book details, price, sales record and customer record.
Source code
else:
mycursor.execute("insert into Available_Books(bookname,genr
e,quantity,author,publication,price) values('"+book+"','"+genre+"','"+str(quantity)
+"','"+author+"','"+publication+"','"+str(price)+"')")
mydb.commit()
print("""++++++++++++++++++++++
++SUCCESSFULLY ADDED++
++++++++++++++++++++++""")
#DELETE BOOKS
elif a==2:
print("AVAILABLE BOOKS...")
mycursor.execute("select * from Available_Books ")
for x in mycursor:
print(x)
#REMOVE STAFF
elif ch==2:
nm=str(input("Enter staff name to remove:"))
mycursor.execute("select name from staff_details where name
='"+nm+"'")
toy=mycursor.fetchone()
if toy is not None:
mycursor.execute("delete from staff_details where name
='"+nm+"'")
print("""+++++++++++++++++++++++++++++++++
++STAFF IS SUCCESSFULLY REMOVED++
+++++++++++++++++++++++++++++++++""")
mydb.commit()
else:
print("STAFF DOESNOT EXIST!!!!!!")
#EXISTING STAFF DETAILS
elif ch==3:
mycursor.execute("select * from Staff_details")
run=mycursor.fetchone()
for t in mycursor:
print(t)
if run is not None:
print("EXISTING STAFF DETAILS...")
for t in mycursor:
print(t)
else:
print("NO STAFF EXISTS!!!!!!!")
mydb.commit()
#SELL HISTORY
elif a==5:
print("1:Sell history details")
print("2:Reset Sell history")
ty=int(input("Enter your choice:"))
if ty==1:
mycursor.execute("select * from sell_rec")
for u in mycursor:
print(u)
if ty==2:
Output
Testing
Testing is the major control measure used during software development. Its basic
function is to detect errors in the software. During requirement analysis and design, the
output is a document that is usually textual and no executable. After the coding phase,
computer programs are available that can be executed for testing purpose. This
implies
that testing not only, has to uncover error& introduced during coding, but also errors
introduced during previous phase. Thus the goal of testing is to uncover the
requirements,
design and coding errors in the programs.
The system should have up to 1 GB ram minimum requirement for the application.
Bibliography
https://github.com/
https://www.slideshare.net/
https://stackoverflow.com/