Inventory Management System (Ip Class 12)
Inventory Management System (Ip Class 12)
Inventory Management System (Ip Class 12)
PAGE
SER DESCRIPTION
NO
01 ACKNOWLEDGEMENT 04
02 INTRODUCTION 05
04 PROPOSED SYSTEM 06
05 OUTPUT 07
06 SOURCE CODE 10
07 TESTING 17
09 BIBLIOGRAPHY 21
ACKNOWLEDGEMENT
3
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.
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.
4
PROJECT ON CREATING STOCK INVENTORY SYSTEM FOR STATIONARY
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
5
f=open("shop.csv","r")
r=csv.reader(f)
for i in r:
if(i[1]==s):
print(i)
f.close()
def dispall():
f=open("shop.csv","r")
r=csv.reader(f)
for i in r:
print(i)
f.close()
def dele():
al=[]
t=[]
f1=open("shop.csv")
r=csv.reader(f1)
c=1
for i in r:
if(c==1):
t.append(list(i))
else:
al.append(list(i))
11
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 out-dated to rationalize your mistake. So, to keep
pace with time, to bring about the best result without malfunctioning and greater
One has to use the data management software. Software has been an ascent
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 paperwork has
to be done but now software production 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
6
7
8
9
SOURCE CODES:
import csv
h=['id','gname','cost']
ro=[[1,'pen',20],[2,'pencil',5],[3,'eraser',7],[4,'scale',10]]
f=open("shop.csv","w",newline="")
r=csv.writer(f)
r.writerow(h)
r.writerows(ro)
f.close()
def add():
f=open("shop.csv","a")
r=csv.writer(f,newline="")
#r.writerow(['id','gname','cost'])
while True:
m=input("enter gname")
s=input("enter cost")
v=[n,m.upper(),s]
r.writerow(v)
ch=input("more records(y/n)")
if(ch=='n'):
break
f.close()
def dispa():
10
c+=1
print(t)
for i in al:
print(i)
q=0
nl=[]
for i in al:
if(i[1]!=n):
nl.append(i)
q=1
if(q==0):
print(t)
for i in nl:
print(i)
md=[]
md.extend(t)
for i in nl:
md.append(i)
f1=open("shop.csv","w",newline="")
g=csv.writer(f1)
g.writerows(md)
12
def up():
al=[]
t=[]
f1=open("shop.csv")
r=csv.reader(f1)
c=1
for i in r:
if(c==1):
t.append(list(i))
else:
al.append(list(i))
c+=1
print(t)
for i in al:
print(i)
q=0
nl=[]
for i in al:
data=[]
if(i[1]==n):
sn=input("enter id")
name=input("enter name")
marks=input("enter cost")
data.append(sn)
data.append(name)
13
data.append(marks)
nl.append(data)
else:
nl.append(i)
q=1
if(q==0):
print(t)
for i in nl:
print(i)
md=[]
md.extend(t)
for i in nl:
md.append(i)
f1=open("shop.csv","w",newline="")
g=csv.writer(f1)
g.writerows(md)
#--------------------------------------------------------------
def cal():
f=open("shop.csv","r")
r=csv.reader(f)
next(r)
dispall()
print("-"*30)
t=0
14
for i in r:
if(i[1]==s):
print(i)
z=i[2]
q=int(input("enter quantity"))
t=q*int(z)
print("total cost",t)
return t
f.close()
def gg():
d=[]
gt=0
for i in range(k):
a=cal()
d.append(a)
for i in d:
gt=gt+i
print("--"*15)
print("grand total",gt)
#---------------------------------------------------------------
while True:
print("-"*30)
15
print("2. display one record")
print("7. exit")
print("-"*30)
n=int(input("enter ur choice"))
if(n==1):
add()
elif(n==2):
dispa()
elif(n==3):
dispall()
elif(n==4):
dele()
elif(n==5):
up()
elif(n==6):
gg()
elif(n==7):
break
else:
16
TESTING
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.
SPECIFICATION-BASED TESTING
17
Specification-based testing aims to test the functionality of software according
to the applicable requirements. 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
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, 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)
18
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.
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.
19
HARDWARE AND SOFTWARE REQUIREMENTS
SOFTWARE REQUIREMENTS:
I. Windows OS
II. Python
20
BIBLIOGRAPHY
1. Computer science With Python - Class XI, XII By: Sumita Arora
2. A Project Report on Library Management System (LMS)
By: Ms VANDANA ARORA
3. Website: https://www.w3resource.com
***
22