0% found this document useful (0 votes)
11 views17 pages

Cs Projec Final

The document presents a project report on a Grocery Management System developed by Xowaron Mridul for the Computer Science subject at PM SHRI Kendriya Vidyalaya School. It includes a certificate of completion, acknowledgments, source code, testing methodologies, hardware and software requirements, and a bibliography. The project aims to manage grocery shop operations through a database interface and includes functionalities for customer, product, and worker management.

Uploaded by

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

Cs Projec Final

The document presents a project report on a Grocery Management System developed by Xowaron Mridul for the Computer Science subject at PM SHRI Kendriya Vidyalaya School. It includes a certificate of completion, acknowledgments, source code, testing methodologies, hardware and software requirements, and a bibliography. The project aims to manage grocery shop operations through a database interface and includes functionalities for customer, product, and worker management.

Uploaded by

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

PM SHRI KENDRIYA VIDYALAYA SCHOOL

NORTH LAKHIMPUR
(AFFILIATED TO CBSE )

SESSION : 2024-2025
COMPUTER SCIENCE PROJECT ON :
GROCERY MANAGEMENT SYSTEM
Submitted to: Mr. AVISHEK SINHA
PGT Computer Science,Teacher

Submitted by: Xowaron Mridul


CERTIFICATE
This is to certify that Cadet Xowaron Mridul has successfully

completed the project work entitled GROCERY MANAGEMENT SYSTEM

in the subject Computer Science (083) laid down in the regulations of

CBSE for the purpose of Practical Examination in Class XII to be

held in on PM SHRI KENDRIYA VIDYALAYA SCHOOL NORTH

LAKHIMPUR____________.

Examiner:
Name: _______________
Signature:
ACKNOWLEDGEMENT
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 contribution of the individuals who contributed in 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, PM Kendriya


Vidyalaya, Noth lakhimpur who has been continuously motivating and extending their
helping hand to us.
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 Mr. Avishek Sinha, Master In-charge, a guide, mentor all the
above a friend, 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. I am grateful for their
constant support and help
SOURCE CODE

import mysql.connector as sql


conn=sql.connect(host='localhost',user='root',passwd='m
anager',database='grocery_shop')
if conn.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=')
while user_name=='nitin' and password=='nitin123':
print('connected successfully')

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')
print('10.stocks')
print('11.pie chart for avalibility of stock')
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='))
sql_insert="insert into customer_details
values("+str(phone_no)+",'"+(cust_name)+"',"+str(cost)+
")"
c.execute(sql_insert)
conn.commit()
print('data is updated')

elif choice==2:
product_name=input('enter product name=')
product_cost=float(input('enter the
cost='))
sql_insert="insert into product_details
values(""'"+(product_name)+"',"+str(product_cost)+")"
c.execute(sql_insert)
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='))
sql_insert="insert into worker_details
values(" "'"+(worker_name)+"',"
"'"+(worker_work)+"',"+str(worker_age)+","+str(worker_s
alary)+","+str(phone_no)+ ")"
c.execute(sql_insert)
conn.commit()
print('data is updated')

elif choice==4:
t=conn.cursor()
t.execute('select*from customer_details')
record=t.fetchall()
for i in record:
print(i)

elif choice==5:
t=conn.cursor()
t.execute('select*from product_details')
record=t.fetchall()
for i in record:
print(i)

elif choice==6:
t=conn.cursor()
t.execute('select*from worker_details')
record=t.fetchall()
for i in record:
print(i)

elif choice==7:
a=input('enter your name')
t='select*from customer_details where
cust_name=("{}")'.format(a)
c.execute(t)
v=c.fetchall()
for i in v:
print(v)
elif choice==8:
a=input('enter your product_name')
t='select*from product_details where
product_name=("{}")'.format(a)
c.execute(t)
v=c.fetchall()
for i in v:
print(v)

elif choice==9:
a=input('enter your name')
t='select*from worker_details where
worker_name=("{}")'.format(a)
c.execute(t)
v=c.fetchall()
for i in v:
print(v)

elif choice==10:

print('******************************************')
f=open('test.txt','r')
data=f.read()
print(data)
f.close()
print('******************************************')

elif choice==11:
import matplotlib.pyplot as plt
items=('shoes','stationary','watch','house
use','food items')
avalibility=[156,200,103,206,196]

colors=['red','yellowgreen','blue','gold','lightcoral']

plt.pie(avalibility,labels=items,colors=colors)
plt.title('avalibility of items in shop')
plt.show()

else:
print('wrong password, try again ')

if choice==2:
exit()
OUTPUT
TESTING

Software Testing is an empirical investigation conducted to provide stakeholders


with information about the quality of the product or service under test[1] , with respect to
the context in which it is intended to operate. Software Testing also provides an
objective, independent view of the software to allow the business to appreciate and
understand the risks at implementation of the software. Test techniques include, but are
not limited to, the process of executing a program or application with the intent of finding
software bugs.
It can also be stated as the process of validating and verifying that a software
program/application/product meets the business and technical requirements that guided
its design and development, so that it works as expected and can be implemented with
the same characteristics. Software Testing, depending on the testing method employed,
can be implemented at any time in the development process, however the most test
effort is employed after the requirements have been defined and coding process has
been completed.
TESTING METHODS
Software testing methods are traditionally divided into black box testing and white
box testing. These two approaches are used to describe the point of view that a test
engineer takes when designing test cases.

BLACK BOX TESTING


Black box testing treats the software as a "black box," without any knowledge of
internal implementation. Black box testing methods include: equivalence partitioning,
boundary value analysis, all-pairs testing, fuzz testing, model-based testing, traceability
matrix, exploratory testing and specification-based testing.

SPECIFICATION-BASED TESTING

Specification-based testing aims to test the functionality of software according to


the applicable requirements.[16] Thus, the tester inputs data into, and only sees the
output from, the test object. This level of testing usually requires thorough test cases to
be provided to the tester, who then can simply verify that for a given input, the output
value (or behaviour), either "is" or "is not" the same as the expected value specified in
the test case. Specification-based testing is necessary, but it is insufficient to guard
against certain risks

ADVANTAGES AND DISADVANTAGES

The black box tester has no "bonds" with the code, and a tester's perception is
very simple: a code must have bugs. Using the principle, "Ask and you shall receive,"
black box testers find bugs where programmers don't. But, on the other hand, black box
testing has been said to be "like a walk in a dark labyrinth without a flashlight," because
the tester doesn't know how the software being tested was actually constructed.
That's why there are situations when (1) a black box tester writes many test
cases to check something that can be tested by only one test case, and/or (2) some
parts of the back end are not tested at all. Therefore, black box testing has the
advantage of "an unaffiliated opinion," on the one hand, and the disadvantage of "blind
exploring," on the other.

WHITE BOX TESTING

White box testing, by contrast to black box testing, is when the tester has access
to the internal data structures and algorithms (and the code that implement these)

Types of white box testing:-


The following types of white box testing exist:
api testing - Testing of the application using Public and Private APIs.
Code coverage - creating tests to satisfy some criteria of code coverage.
For example, the test designer can create tests to cause all statements in the
program to be executed at least once.
fault injection methods.
mutation testing methods.
static testing - White box testing includes all static testing.

CODE COMPLETENESS EVALUATION

White box testing methods can also be used to evaluate the completeness of a
test suite that was created with black box testing methods. This allows the software
team to examine parts of a system that are rarely tested and ensures that the most
important function points have been tested.

Two common forms of code coverage are:


Function Coverage: Which reports on functions executed and
Statement Coverage: Which reports on the number of lines executed to
complete the test.
They both return coverage metric, measured as a percentage
HARDWARE AND SOFTWARE REQUIREMENTS

I.OPERATING SYSTEM : WINDOWS 10 AND ABOVE

II. PROCESSOR : PENTIUM(ANY) OR AMD

ATHALON(3800+- 4200+ DUAL CORE)

III. MOTHERBOARD : 1.845 OR 915,995 FOR PENTIUM 0R MSI

K9MM-V VIA K8M800+8237R PLUS CHIPSET

FOR AMD ATHALON

IV. RAM : 512MB+

V. Hard disk : SATA 40 GB OR ABOVE

VI. CD/DVD r/w multi drive combo: (If back up required)

VII. FLOPPY DRIVE 1.44 MB : (If Backup required)

VIII. MONITOR 14.1 or 15 -17 inch

IX. Key board and mouse

X. Printer : (if print is required – [Hard copy])

SOFTWARE REQUIREMENTS:

I. Windows OS
II. Python
III. mysql

.
BIBLIOGRAPHY

1. Computer science With Python - Class XI By : Sumita Arora


2. A Project Report On Blood Bank Management System (BBMS)
By : Praveen M Jigajinni
3. Website: https://www.w3resource.com

***

You might also like