You are on page 1of 21

Ackmowledgement

Apart from the efforts of me, the success of any project


depends largely on the encouragement and guidelines of many
others. I take this opportunity to express my gratitude to the
people who have been instrumental in the successful
completion of this project.
I express deep sense of gratitude to almighty God for giving
me strength for the successful completion of the project .
I express my heartfelt gratitude to my parents for constant
encouragement while carrying out this project.
I gratefully acknowledge the contributionof the individuals
who contributed on bringing this project up to this level, who
continues to look after me despite my flaws.
I express my deep sense of gratitude to the luminary The
Principal, Gurukul International School, Haldwani for
constant encouragement and the guidance provided during
this project.
I am overwhelmed to express my thanks to The
Administrative Officer for providing me an infrastructure and
moral support while carrying out this project in the school.
My sincere thanks to Mrs. Deepti Joshi , a guide ,Mentor, who
critically reviewed my project and helped in solving each and
every problem, occurred during implementation of the
project.The guidance and support received from all the
members who contributed and who are contributing to this
project, was vital for the success of the project.
PROJECT ON GROCERY SHOP
MANAGEMENT SYSTEM

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

The objective of this project is to let the students apply the


programming knowledge into a real world situation/problem
and exposed the students how programming skills helps in
developing a good software.
1. Write programs utilizing modern software tools.
2. Apply object oriented programming principles
effectively when developing small to medium sized
projects.
3. Write effective procedural code to solve small to
medium sized problems.
4. Students will demonstrate a breadth of knowledge in
INFORMATICS PRACTICES, as exemplified in the
areas of systems, theory and software development.
5. Students will demonstrate ability to conduct a research
or applied INFORMATICS PRACTICES project,
requiring writing and presentation skills which
exemplify scholarly style in INFORMATICS
PRACTICES.
PROPOSED SYSTEM
Today one cannot afford to rely on the fallible human beings
of be really wants to stand against today ‘s merciless
competition where not to wise saying “to err is human” no
longer valid, it’s outdated to rationalize your mistake. So, to
keep pace with time, to bring about the best result without
malfunctioning and greater efficiency so to replace the
unending heaps of flies with a much sophisticated hard disk of
the computer.
One has to use the data management software. Software has
been an ascent in atomization various organisations. Many
software products working are now in markets, which have
helped in making the organizations work easier and
efficiently. Data management initially had to maintain a lot of
ledgers and a lot of paper work has to be done but now
software product on this organization has made their work
faster and easier. Now only this software has to be loaded on
the computer and work can be done.
This prevents a lot of time and money. The work becomes
fully automated and any information regarding the
organization can be obtained by clicking the button.
Moreover, now it’s an age of computers of and automating
such an organization gives the better look.
SYSTEM DEVELOPMENT LIFE CYCLE

Planning Analysis Design

Implementation
Support
Construction, Testing, & Software
Configuration

(Consisted of three iterations on


Different hardware platforms)

The systems development life cycle is a project management


technique that divides complex projects into smaller, more
easily managed segments or phases. Segmenting projects
allows managers to verify the successful completion of project
phases before allocating resources to subsequent phases.
Software development projects typically include initiation,
planning, design, development, testing, implementation, and
maintenance phases. However, the phases may be divided
differently depending on the organization involved.
HARDWARE AND SOFTWARE
REQUIREMENTS
 OPERATING SYSTEM : WINDOW 10 AND
ABOVE
 PROCESSOR : PENTIUM(ANY)
 MOTHERBOARD : 1.845
 RAM : 512MB+
 Hard Disk : SATA 40 GB OR ABOVE
 CD/DVD r/w multi drive: (if back up required )
 FLOPPY DRIVE 1.44MB: (If Backup required)
 MONITOR : 14.1 OR 15-17inch
 Key board and mouse
 Printer : (if print is required –[Hard

SOFTWARE REQUIRMENTS:
I. Window OS
II. Python
III. Mysql
Flow chart

Python -Mysql connecting

Software login with username & passwords

Ask user to enter his choice

Your need will be fulfilled by python by


interfacing with Mysql
About Python
Python is a computer programming language often used to
build websites and software, automate tasks, and conduct data
analysis. Python is a general-purpose language, meaning it
can be used to create a variety of different programs and isn’t
specialized for any specific problems. This versatility, along
with its beginner- friendliness , has made it one of the most-
used programming languages today. A survey conducted by
industry analyst firm Red Monk found that it was the second-
most popular programming language among developers in
2021.
What can you do with Python? Some things include:
 Data analysis and machine learning
 Web development
 Automation or scripting
 Software testing and prototyping
 Everyday tasks
ABOUT SQL
SQL is an acronym for structured Query Language, a domain-
specific programming language designed to offer a lot of
functions and features.
Raymond FF Boyce and Donald D. Chamberline developed
SQL with the name SEQUEL in the 1970s at IBM.
By design, it was supposed to manipulate and retrieve data
stored in the original quasi-relational DBMS of IBM.
SQL’s first commercial implementation was in June 1979
when Relational Software for VAX computers introduced
SQL.
Nowadays, the language can manage and manipulate data like
updating, deletion, insertion based on a relational database
management system.
One of the reasons SQL is popular and widely used is because
it is user- friendly and easy to understand.
Its creators designed SQL’s usage similar to the English
Language while making it easier to access data directly
whenever it is stored rather than copy the data to other
applications.
This alone makes analytics a lot more convenient. SQL is also
great for stream processing within a relational data stream
management system, and in addition, you can do the
following with it:
 Retrieve data from database, and a solid example is
getting the number of sales in a specific month.
 Manipulate data, and a good example is replacing null or
blank values with a word.
 Define data, and an example is normalizing abbreviated
values to full state names.

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=')

sql_insert="insert into product_details

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')

t='select*from worker_details where


worker_name=(" {}")'.format(a)
c.execute(t)

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

1.INFORMATICS PRACTICES WITH PYTHON - Class XII By- Sumita Arora

2. Website:https://www.w3resources.com
TABLE OF CONTENT

Sr.no Description
1. ACKNOWLEDGEMENT

INTRODUCTION
2.

OBJECTIVESOFTHEPROJECT
3.

4. PROPOSEDSYSTEM

SYSTEMDEVELOPMENTLIFECYCLE(SDLC)
5.

6. HARDWARE AND SOFTWARE REQUIREMENTS

7. FLOWCHART

ABOUT PYTHON
8.

9. ABOUT MYSQL

10. SOURCE CODE

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.

Teacher’s Signature Student’s Signature

You might also like