Professional Documents
Culture Documents
INTRODUCTION
This software is used to maintain the shop customer detail,
product details. Worker detail maintain the shop in updated
and maintain records of in and out data of shop. The
“Grocery Shop Management System” has been developed to
override the problems prevailing in the practicing manual
system.
This software is supported to eliminate and, in some cases,
reduce the hardships faced by this existing system. More over
this system is designed for the particular need of the company
to carry out operations in a smooth and effective manner. The
application is reduced as much as possible to avoid errors
while entering the data. It also provides error message while
entering in valid data. No formal knowledge is needed for the
user to use this system. Thus, by this all it proves itis user-
friendly Grocery Shop Management System, as described
above, can lead to error free, secure, reliable and fast
management system. It can assist the user to concentrate on
the recordkeeping.
Thus, it will help organization in better utilization of
resources.
OBJECTIVES OF THE PROJECT
Implementation
Support
Construction, Testing, & Software
Configuration
SOFTWARE REQUIRMENTS:
I. Window OS
II. Python
III. Mysql
Flow chart
SPECIFICATIONS
1. OEPRATING SYSTEM
Windows 10 and above
2. SOFTWARE REQUIEMENTS
Windows OS, Python and MYSQL
3. HARDWARE REQUIREMENTS
RAM: 512MB
Hard disc : SATA 40GB
Monitor : 14.1 or 15-17 inch
Keyboard and mouse
Source code
importmysql.connectorassql
conn=sql.connect(host='localhost',user='root',passwd='manage'
,database='grocery_shop)
if conn.is_connected():
print('successfullyconnected')
c=conn.cursor()
print('groceryshopmanagementsystem)
print('1.login')
print('2.exit')
choice=int(input('enteryourchoice:')
ifchoice==:
user_name=input('enteryourusername=' )
password=input('enteryourpassword=')
whileuser_name=='rohan'andpassword=='rohanl23':
print('connectedsuccessfully')
print('groceryshop')
print('1.customerdetails')
print('2.procluctdetails')
print('3.workerdetails')
print('4.seeallcustomerdetails')
print('S.seeallproductdetails')
print('6.seeallworkerdetails')
print('7.seeonecustomerdetails')
print(8• Seeoneproductdetails')
I
print('9.seeoneworkerdetails')
print('lO.stocks')
print('ll.piechartforavalibilityofstock')
choice=int(input('enterthechoice'))
ifchoice==l:
cust_name=input('enteryourname=')
phone_no=int(input('enteryourphonenumber')
cost=float(input('enteryourcost='))
sql_insert="insertintocustomerdetails
values("+str(phone_no)+",'"+(cust_name)+"',"+str(cost))"
c.execute(sql_insert)
conn.commit()
print('dataisupdated')
elifchoice=2:
product_name=input('enter product name=')
product_cost=float(input('enterthecost=')
values(""'"+(product_name)+"',"+str(product_cost)+")"
c.execute(sql_insert)
conn.commit()print('data is updated')
elifchoice==3:
worker_name=input('enteryourname=')
workerwork=input('enteryourwork=')
worker_age=int(input('enteryourage='))
worker_salary=float(input('enteryoursalary='))
phone_no=int(input('enteryourphonenumber='))
sql_insert="insertintoworker_detailsvalues("
"'"+(worker_name)+"',""'"+(worker_work)+"',"+str(workr
_age)
+","+str(worker_salary)+","+str(phone_no)+")"
c.execute(sql_insert)
conn.commit()
print('data is updated')
elifchoice=4:
t=conn.cursor()
t.execute('select*from customer_details')
record=t.fetchall()
for i in record:
print(i)
elifchoice=5:
t=conn.oursor()
t.execute('select*fromproduct_details')
record=t.fetchall()
for i in record:
print(i)
elifchoice=6:
t=conn.cursor()
t.execute('select*fromworker_details')
record=t.fetchall()
for i in record:
print(i)
elifchoice=7:
a=input('enteryourname')
t='select*francustomerdetailswhere
cust_name=("{}")'.format(a)
c.execute(t)
v=c.fetchall()f
for i in v:
print(v)
elifchoice=8:
a=input('enteryourproduct_name')
t='select*from product_details
where product_name=("{}")'.format(a)
c.execute(t)
v=c.fetchall)
for i in v:
print(v)
elifchoice==9:
a=input('enteryourname')
v=c.fetchall()
for i in v:
print(v)
elifchoice==lO:
print('**************************************')
f=open('test.txt', 'r')
data=f.read()
print(data)
f.close()
print('******************************************')
elifchoice==ll:
import matplotlib.pyplot as plt
items=('shoes','stationary','watch','house
use','fooditems')
avalibility=[156,200,103,206,196]
colors=['red','yellowgreen','blue','gold','lightcoral']plt
.pie(avalibility,labels=items,colors=colors)
plt.title(‘availability of items in shop’)
plt.show()
else:
print(‘wrong password, try again’)
if choice==2:
exit()
Output
Grocery shop
1.customer details
2.product details
3.worker details
4.See all customer details
5.See all product details
6.See all worker details
7.See one customer details
8.see one product details
9.see one worker details
10. stocks
11. exit
enter the choice l
enter your name=rohan
enter your phone number=9149097992
enter your cost=4728.5
data is updated
Grocery shop
1.customer details
2.product details
3.worker details
4.See all customer details
5.See all product details
6.See all worker details
7.See one customer details
8.see one product details
9.see one worker details
10.stocks
11.exit
enter the choice2
enter product name=python book
enterthecost=575
data is updated
Grocery shop
1.customer details
2.product details
3.worker details
4.See all customer details
5.See all product details
6.See all worker details
7.See one customer details
8.see one product details
9.see one worker details
10.stocks
11.exit
entertheohoice3
enter your name=garvit'
enter you.
r work-manager
enter your age=l9
enter your salary-50000
enter your phone number=84884156
data is updated
Grocery shop
1.customer details
2.product details
3.worker details
4.See all customer details
5.See all product details
6.See all worker details
7.See one customer details
8.see one product details
9.see one worker details
10.stocks
11.exit
Entertheohoice4
(984688556,•rohan',10000.0)
(945886234,•garvit',10.63)
(894555612,•suraj•,7 356.0)
(447748454,•anushka',1254..0)
(895585656,•prachi',5648.0)
Grocery shop
1.customer details
2.product details
3.worker details
4.See all customer details
5.See all product details
6.See all worker details
7.See one customer details
8.see one product details
9.see one worker details
10.stocks
11.exit
Entertheohoice5
('tomato•,5 0•0)
('watch•,1559.59)
('pen',5.0)
('waterbottel•,14.65)
('sonata•,1564.0)
('pythonbook•,450.0)
Grocery shop
1.customer details
2.product details
3.worker details
4.See all customer details
5.See all product details
6.See all worker details
7.See one customer details
8.see one product details
9.see one worker details
10.stocks
11.exit
Entertheohoice6
garvit’'manager',16,10000.0,861024564)
(‘
('suraj','helper•,24,5000.0,875851563)
(“prachi”•maintainer•,27,10000.0,854851555)
('anushka•,'distibutor•,31,10067.0,845564155)
('rohan•,•owner',32,100000.0,9149097992)
Bibliography
2. Website:https://www.w3resources.com
TABLE OF CONTENT
Sr.no Description
1. ACKNOWLEDGEMENT
INTRODUCTION
2.
OBJECTIVESOFTHEPROJECT
3.
4. PROPOSEDSYSTEM
SYSTEMDEVELOPMENTLIFECYCLE(SDLC)
5.
7. FLOWCHART
ABOUT PYTHON
8.
9. ABOUT MYSQL
11. OUTPUT
12. BIBLIOGRAPHY
It is certified that Rohan Gupta of class XII has completed
this project under the guidance and supervision of Mrs. Deepti
Joshi with great diligence. The project for the subject of
Computer Science titled Grocery Shop is up to the standards
of the Central Board of Secondary Education and can be sent
for evaluation.