Stop and Shop Grocery
Stop and Shop Grocery
PROJECT REPORT
GRADE – XII
PROJECT PREPARED BY:
“……………………………………………………………………….”
Date:
Registration No.:
Signature of Principal
ACKNOWLEDGEMENT
I would like to take this opportunity to express my deep sense of
gratitude to all those people without whom this project could have
never been completed. First and foremost I like to thank God for giving
me such a great opportunity to work on this project, and I would like to
express my special thanks and gratitude to the Management, the
Directors and the Correspondent of Hosur Public School, for their
constant guidance and providing a very nice platform to learn.
I would also like to thank our Principal – Dr. V. Bindhu Hosur Public
School, for her constant encouragement and moral support without
which I would have never be able to give my best.
thankful to all.
PROJECT REPORT ON
GROCERY SHOP
MANAGEMENT SYSTEM
Index
INTRODUCTION
This software is used to maintain the shop customer details,
products details, worker detail maintain the shop in updated
12 BIBLIOGRAPHY
SYSTEM REQUIREMENTS
1. HARDWARE:
✓ Processor
✓ Keyboard
✓ Minimum memory - 2GB
2. SOFTWARE:
ECONOMICAL FEASIBILITY:-
Economic analysis is the most frequently used method for
measuring the records of the customers, their bookings and
offers that they expect etc., and compare them with the cost.
This software is not very costly. So customer’s records can be
maintained at a cheaper cost and every hotel would like to use
this software so that the customer’s records can be managed
easily.
TECHNICAL FEASIBILTY:-
Technical feasibility center on the existing computer system
and to what extent it can support the proposed task. This
involves financial consideration to accommodate technical
enhancements. It is technically feasible because whatever
technology is needed to develop this software is easily
available.
ERRORS AND ITS TYPES
An error, some time called “A BUG” is anything in the code that
prevents a program from compiling and running correctly.
There are broadly three types of errors as follows:
3. Logical Errors:-
Sometimes, even if you don’t encounter any error during
compiling-time and runtime, your program does not provide the
correct result. This is because of the programmer’s mistaken
analysis of the problem he or she is trying to solve. Such errors
are called logical error.
TESTING
1. Alpha Testing:-
It is the most common type of testing used in the software
industry. The objective of this testing is to identify all possible
issues or defects before releasing it into the market or to the
user. It is conducted at the developer’s site.
2. Beta Testing:-
Accepts it is a formal type of software testing which is carried
out by the customers. It is performed in a real environment
before releasing the products into the market for the actual
end-users. It is carried out to ensure that there are no major
failures in the software or product and it satisfies the business
requirement. Beta Testing is successful when the customer the
software.
3. White Box Testing:-
White box testing is based on the knowledge about the internal
logic of an application’s code. It is also known as Glass box
Testing. Internal Software and code working should be known
for performing this type of testing. These tests are based on
the coverage of the code statements, branches, paths,
conditions etc.
4. Black Box Testing:-
It is a software testing, method in which the internal structure
or design of the item to be tested is not known to the tester.
This method of testing can applied virtually to every level of the
software testing.
MAINTENANCE
Programming maintenance refers to the modifications in the
program. After it has been completed, in order to meet
changing requirement or to take care of the errors that shown
up. There are four types of maintenance:-
1. Corrective Maintenance:-
When the program after compilation shows error because of
some unexpected situations, untested areas such errors are
fixed up by Corrective maintenance.
2. Adaptive Maintenance:-
Changes in the environment in which an information system
operates may lead to system management. To accommodate
changing needs time to time maintenance is done and is called
Adaptive maintenance.
3. Preventive Maintenance:-
If possible the errors could be anticipated before they actually
occur; the maintenance is called Preventive maintenance.
4. Perfective Maintenance:-
In this rapidly changing world, information technology is the
fastest growing area. If the existing system is maintained to
keep tuned with the new features, new facilities, new
capabilities, it is said to be Perfective maintenance.
Functions Used
1. Commit():-
This method sends a COMMIT statement to the MySQL
server, committing the current transaction. Since by default
Connector/Python does not auto commit, it is important to call
this method after every transaction that modifies data for
tables that use transactional storage engines.
2. fetchall():-
The method fetches all (or all remaining) rows of a query
result set and returns a list of tuples. If no more rows are
available, it returns an empty list.
3. Execute():-
Execute function can dynamically execute code
of python programs. The code can be passed in as string or
object code to this function. The object code is executed as is
while the string is first parsed and checked for any syntax
error.
FLOW CHART
SOURCE CODE:
importmysql.connector as sql
conn=sql.connect(host='localhost',user='root',passwd='root',da
tabase='grocery_shop')
ifconn.is_connected():
print('successfully connected')
c=conn.cursor()
print('grocery shop management system')
print('1.login')
print('2.exit')
choice=int(input('enter your choice:'))
if choice==1:
user_name=input('enter your user name=')
password=input('enter your password=')
whileuser_name=='loch' and password=='loch123':
print('connected successfully')
print("===================================
=======================================
=======================================
===========================")
print('\t\t\t\t STOP & SHOPGrocery Shop')
print("===================================
=======================================
=======================================
===========================")
print('1.Customer details')
print('2.Product details')
print('3.Worker details')
print('4.See all customer details')
print('5.See all product details')
print('6.See all worker details')
print('7.See one customer details')
print('8.See one product details')
print('9.See one worker details')
print('10.Stocks')
print('12.Exit')
choice=int(input('Enter your choice:'))
if choice==1:
cust_name=input('Enter your name:\t')
phone_no=int(input('enter your phone number:\t'))
cost=float(input('Enter your Bill Amount:\t'))
sql_insert="insert into
customer_detailsvalues("+str(phone_no)+",'"+(cust_name)
+"',"+str(cost)+")"
c.execute(sql_insert)
conn.commit()
print('Data is Updated successfully !!!!!!!!!')
elif choice==2:
product_name=input('Enter product name:\t')
product_cost=float(input('Enter the MRP:\t'))
sql_insert="insert into product_detailsvalues(""'"+
(product_name)+"',"+str(product_cost)+")"
c.execute(sql_insert)
conn.commit()
print('Data is Updated successfully !!!!!!!!!')
elif choice==3:
worker_name=input('Enter your name:\t')
worker_work=input('Enter your work:\t')
worker_age=int(input('Enter your age:\t'))
worker_salary=float(input('Enter your salary:\t'))
phone_no =int(input('Enter your phone number:\t'))
sql_insert="insert into worker_details values(" "'"+
(worker_name)+"'," "'"+(worker_work)+"',"+str(worker_age)
+","+str(worker_salary)+","+str(phone_no)+ ")"
c.execute(sql_insert)
conn.commit()
print('Data is Updated successfully !!!!!!!!!')
elif choice==4:
t=conn.cursor()
t.execute('select*from customer_details')
record=t.fetchall()
fori in record:
print(i)
elif choice==5:
t=conn.cursor()
t.execute('select*from product_details')
record=t.fetchall()
fori in record:
print(i)
elif choice==6:
t=conn.cursor()
t.execute('select*from worker_details')
record=t.fetchall()
fori in record:
print(i)
elif choice==7:
a=input('Enter the customer name:\t')
t='select*from customer_details where
cust_name=("{}")'.format(a)
c.execute(t)
v=c.fetchall()
fori in v:
print(v)
elif choice==8:
a=input('Enter your product_name:\t')
t='select*from product_details where
product_name=("{}")'.format(a)
c.execute(t)
v=c.fetchall()
fori in v:
print(v)
elif choice==9:
a=input('Enter the worker name:\t')
t='select*from worker_details where
worker_name=("{}")'.format(a)
c.execute(t)
v=c.fetchall()
fori in v:
print(v)
elif choice==10:
print('******************************************')
t=conn.cursor()
t.execute('select*from stocks')
record=t.fetchall()
fori in record:
print(i)
print('******************************************')
elif choice==12:
exit()
else:
print('wrong password, try again ')
if choice==2:
exit()
Output:
CONCLUSION
Python supports both function-oriented and structure oriented
programming. It has features of dynamic memory management
which can make use of computational resources efficiently. It
has also compatible with all popular operating systems and
platforms. Hence this language can be universally accepted by
all programmers.
BIBLIOGRAPHY
1. Computer science With Python - Class XII By: Sumita Arora
2. Website: https://www.w3resource.com
3. WWW.GEEKSFORGEEKS.ORG