0% found this document useful (0 votes)
21 views

Physics Project

...
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Physics Project

...
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 29

PM SHRI KENDRIYA VIDYALAYA

NO.2
SALT LAKE

AN INVESTIGATORY
PROJECT ON COMPUTER
SCIENCE
SESSION 2023-24

SUBMITTED BY ANUSHKA SRIVASTAVA


TOPIC

GROCERY MANAGEMENT

Submitted by:

 Anushka srivastava
 Angelina das
 Abhinav balaji
CERTIFICATE

This is to certify that Ms. Anushka


Srivastava daughter of Mr.Anil kumar
Srivastava and Mrs. Sunita
Srivastava has successfully
completed the investigatory project
on Computer science for the session
2023-24 and AISSE 2024.

Sign of internal examiner Sign of external examiner


ACKNOWLEDGEMENT

I would like to express my gratitude to

everyone who helped me in completing

this project. Furthermore, I would also like

to thank Mr.SK malakar sir who helped me

in completing this project with his

valuable guidance and ideas.

-Anushka srivastava
INDEX

Sl.no TOPIC Pg.no


1. Cover page I

2. Topic II

3. Certificate III
4. Acknowledgement IV

5. Introduction VI

6. Hardware VIII

requirements

7. Software IX

requirements

8. Code X
9. Output XVII

10. Conclusion XXIII

11. Precautions XXIV

12. Bibliography XXV


INTRODUCTION
This software is used to maintain the shop
customer detail , product details, worker details
maintain the shop in updated and maintain
records of in and out data of shop. 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. 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. 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.

TIME CONSUMING
EASY TO USE
AFFORDABLE
FULLY AUTOMATIC
HARDWARE REQUIREMENTS

 200 GB Hard Disk

 4 GB RAM

 Processor-Intel ® core ™ i5 -2400

CPU@3.10Hz

 Other peripheral devices


SOFTWARE REQUIREMENTS

 OS- windows 11

 Python 3.11

 MySQL
CODE
import mysql.connector as sql

conn=sql.connect(host="localhost",user="root",pass
wd="anushka12a",database="grocery_shop")
if conn.is_connected():
print('successfully connected')
mycursor=conn.cursor()
print('GROCERY MANAGEMENT SYSTEM')
print('1.LOGIN')
print('2.EXIT')
choice=int(input('Enter your choice:'))
if choice==1:
user_name=input("Enter user name:")
password=int(input("Enter password:"))
while True:
print('CONNECTED SUCCESFULLY')
print('GROCERY SHOP')
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')
choice=int(input('enter the choice:'))
choice=int(input('enter the choice:'))
if choice==1:
cust_name=input('Enter your name=')
phone_no=int(input('Enter your phone
number='))
cost=float(input('Enter your cost='))
q1='INSERT INTO customer_details7
VALUES("{}",{},{})'.format(cust_name,phone_no,cost)
mycursor.execute(q1)
conn.commit()
print("Data added succesffuly")
elif choice==2:
product_name=input('Enter Product name=')
product_cost=float(input('Enter the cost='))
q2='INSERT INTO product_details7
VALUES("{}",{})'.format(product_name,product_cost)
mycursor.execute(q2)
conn.commit()
print("Data is updated")
elif choice==3:
worker_name=input('Enter your name=')
worker_work=input("Enter your work=")
worker_age=int(input('Enter your AGE='))
worker_salary=float(input('Enter your salary='))
phone_no=int(input('Enter your phone
number='))
q3='INSERT INTO worker_details7
VALUES("{}","{}",{},{},
{})'.format(worker_name,worker_work,worker_age,wor
ker_salary,phone_no)
mycursor.execute(q2)
conn.commit()
print("Data is updated")
elif choice==4:
t=conn.cursor()
t.execute('SELECT * FROM customer_details7')
record=t.fetchall()
for i in record:
print(i)
elif choice==5:
t=conn.cursor()
t.execute('SELECT * FROM product_details7')
record=t.fetchall()
for i in record:
print(i)
elif choice==6:
t=conn.cursor()
t.execute('SELECT * FROM worker_details7')
record=t.fetchall()
for i in record:
print(i)
elif choice==7:
t=conn.cursor()
a=input("Enter the name you want to view:")
t.execute('SELECT * FROM customer_details7
WHERE cust_name=("{}")'.format(a))
v=t.fetchall()
for i in v:
print(i)
elif choice==8:
t=conn.cursor()
a=input("Enter the product name you want to
view:")
t.execute('SELECT * FROM product_details7
WHERE product_name=("{}")'.format(a))
v=t.fetchall()
for i in v:
print(i)
elif choice==9:
t=conn.cursor()
a=input("Enter the worker name you want to
view:")
t.execute('SELECT * FROM worker_details7
WHERE worker_name=("{}")'.format(a))
x=t.fetchall()
for i in x:
print(i)
else:
print("WRONG PASSWORD...,try again")
if choice==2:
con.close()
OUTPUT
CONCLUSION

This is the best version for today’s


situation however it can be updated
in near future.
PRECAUTIONS

 Syntax errors should be avoided


 Logical errors should be avoided
 Runtime errors should be
avoided
BIBLIOGRAPHY

 https//:cbse.gov.in
 NCERT computer science class
XII
 SUMITA ARORA Class XII

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy