Cs Projectile
Cs Projectile
AHOINANI)
LOINoHd
Index
Certificate 4
2 Acknowledgement 5
3 Synopsis 6-7
5 Output 17-18
6 bibliography 19
Certilicate
This is to certily that computer ocience paject
titlesly "Jnventeuy Management" has been
uccessfully completed by Shruti Chauhan of
class 12th e bearing oll no..... under the
guidance of Mo.Puiyanka ma'am (suliject
teacher) as prescribed by the CBSE duwring
the academic periad of 2021-2022.
acknowledgement
would like ta express a deep sense af thanks
aurd gratitude to
ny project guide Ms. Puiyanka
2m an for guiding meimmensely thraugh the
counse af the
project. She aluways evinced keen
interest in my
praject.
My sincere thanks ga ta Mo. Rashmi
own
principal ma'am, for her ca-ordination in
eatending eveny passible suppot far
campletion of this project.
I alsa thanhs ta
my parents fon their
motivation and
suppot. J must thank my
classmate for thein
timely help andouppot.
Last but nat least, I
thase wha had
would like ta thank ae
helped divectly or indinectly
towands the
completion of this project.
Sfruti chauhan
(12th e)
Synopsis
About the pwject
Jwentony management is the practice of
ondening, otoning, tracking and contralling
ta
inventouy. Jnventouy management applies
its product
eveuy item a business uses to puoduce
oewice- puom uau mateials to inished goods.
Jn other wonds, inventony managenent couers
eweuy aspect of a
business's inventouy.
Saltunane specilication
Operating system: Windou 10
Plaifeum: Python 3DLE 3.8.5
Database: MySeL
Languages: Python
Nate
Far Python-MyS@L connectirity, following
data haue been used:
code-int
(input ("Enter the cosmet.ic ID number "))
J.append (code)
naeinput ("Enter the oomet icD Name "
1.append (name)
Company-input ("Enter company of CoImeties ")
1.append(company)
coSt int (input ("Enter the Cost"))
1.append (cost)
anudteinut ("Enter the Dace ot Manufaccure : ")
l.append (manucdate)
expdateminput ("Enter the Date of Expiry : ")
1.append (expdate)
stud= (1)
"
nto pzduct (cocle, name, company, cost, manudate, ex5date) values ($s, is, is, $s, *s, * )
**sert
mycursoX.execute (sql, stud)
mycb.commit (
print (x*)
eLif chs-2:
Product Name :")
=input ("Enter
rame=$s"
r1=(ss where
fox res
p i n t (2)
. ch==3:
preduct"
' trom
s q l " s e l e c t
p r i n t (*)
2e viewCustomer ()
PIint("Select the seazch cziteria: ")
print("l. Customer ID")
print("2. Cust omer Name")
print("3. A1l")
ch-int (input ("Enter the choice : "))
ch=l:
3 i n t (1nput ("Enter cust omer ID : "))
zl=(s,)
sq"3elect from customer where cust_id=$s"
mycursor.execute (sql, rl)
resmycursor.fetchall ()
for x 1.n res:
print (x)
I i f ch=-2
Sinput("Enter Cosmetics Name ")
zl=(s,)
9q1"9elect frcm customer where Crama=*s"
mycursoI.execute (sql, zl)
resmycursor.fetchall ()
for z in res:
print (x)
elf ch=3:
sql-"selectfron customer"
mycursor.execute (sql)
resmycursor.fetchall (
print("The Cosmetics Stock detail1s are as follcws :")
print (" (Cosmetics ID, Cosuetics Hame, Cost, Date of Manufacture, DatE a Expir7! ")
for x i7 res:
print (x)
ch!='n')
cl=input ( "Enter the items to be purchased : ")
z1=(cl, )
sql="Select cost from product where name=is"
mycursor.execute (sql, rl)
res-mycursor. fetchall ()
tsum=00
for x 17 res:
cost-float (x[0])
print (cost)
ql=int (input ("Enter the item quantity: "))
cc=ql*cost
print (cc)
tsu=tsum+cc
ch-input ( "Want to purchase more item9: ")
MenuSet ()
cief runAgain()
runAgn = input ("\nwant To Run Again Y/n: ")
wile(runAgn.1ower() 'y'}:
(platform. system() "Windows") :
print (os.system('cla'))
else:
print (os.system('clear'))
MenuSet ()
runAgn input ("\nwant To
= Run Again Y/n: ")
print("Good Bye")
runAgain()
Coding
Enter 1:To Add cosmetics product
Enter 3
2: : To View Complete Cosmetica Stock
Enter
Enter :
To Purchase
any cosmetics
Product
To Remove any Cosmetic product
Enter 5 To View Customer Details
Please Select An Above Option: 1