Cloth Store Management System
Cloth Store Management System
NO.1
2024-25
IN
COMPUTER SCIENCE [083]
SUBMITTED TO:
Mrs.Rajni
Submitted by:
Drishti Rajpoot
XII-A
50
CERTIFICATE
Signature Signature
ACKNOWLEDGEMENT
SOFTWARE REQUIREMENTS:
import mysql.connector
print("""
""")
mydb=mysql.connector.connect(host="localhost",user='root',passwd='0123456789')
mycursor=mydb.cursor()
mycursor.execute("use sales_dr")
z=0
mycursor.execute("select*from login")
for i in mycursor:
z+=1
if(z==0):
mydb.commit()
while True:
print("""
1.Admin
2.Customer
3.Exit
""")
if(ch==1):
passs=input("Enter password:")
mycursor.execute("select*from login")
for i in mycursor:
username,password=i
if(passs==password):
loop2='y'
while(loop2=='y'or loop2=='Y'):
2.updating price
3.Deleting items
5.chang password
6.Log out
""")
if(ch==1):
loop='y'
while(loop=='y'or loop=='Y'):
quantity=int(input("Enter Quantity:"))
mydb.commit()
print("record inserted")
elif(ch==2):
loop='y'
while(loop=='y'or loop=='Y'):
mydb.commit()
elif(ch==3):
loop='y'
while(loop=='y'or loop=='Y'):
pcode=int(input("Enter product code:"))
mydb.commit()
elif(ch==4):
mycursor.execute("select*from stock")
print("pcode||pname||quantity||price")
for i in mycursor:
t_code,t_name,t_quan,t_price=i
print(f"{t_code}||{t_name}||{t_quan}||{t_price}")
elif(ch==5):
mycursor.execute("select*from login")
for i in mycursor:
username,password=i
if(old_passs==password):
else:
mydb.commit()
elif(ch==6):
break
######################customer section
elif(ch==2):
print("""1.Item Bucket
2.Payment
4.go back
""")
if(ch2==1):
for i in mycursor:
t_code,t_name,t_quan,t_price=i
amount=t_price *quantity
net_quan=t_quan-quantity
mydb.commit()
elif(ch2==2):
print(f"amount to be paid{amount}")
elif(ch2==3):
print("CODE||NAME||PRICE")
for i in mycursor:
t_code,t_name,t_quan,t_price=i
print(f"{t_code}||{t_name}||{t_price}")
elif(ch2==4):
print("you have been logged out")
break
elif(ch==3):
break
SOURCE
SOURCECODE
CODESCREENING:
SCREENING:
#login table
#purchase table
#stock table
OUTPUT
OUTPUT OF
OF CODE:
CODE:
#Main menu
#update price
#deleting items
#customer(item bucket)
#view available items
# go back
#exit
Bibliography
Bibliography
The Complete Reference python
MySQL, Black Book
Understanding SQL
http://www.mysql.org/
NCERT Book for class XII
Together with Informatics Practices
Various Websites of Discussion Forum and software
development activities.