PDF of The Program of Medi Shop Management System
PDF of The Program of Medi Shop Management System
a=["paracitamol","surfaz-sn","ondem-md-4","pantaford-dsr","tribs","avomine"]
b=[20,72.57,46.58,89,42,20]
c=[100,25,50,100,60,100]
d={"MEDICINE NAME":a,"PRICE":b,"QUANTITY":c}
print("""
.......................................................................................
///////////////////////////////////////////////////////////////////////////////////////
<<<<<<<<<<<<<<<<<<<<<<KENDRIYA VIDYALAYA
KHANAPARA>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
.......................................................................................
""")
while(True):
print("""
1=ADD MEDICINE
2=SELL MEDICINE
4=DELETE MEDICINE(NOTE:YOU CAN DELETE THOSE MEDICINES THAT ARE EXPIRED OR DAMAGED)
5=EDIT MEDICINE DETAILS
6=EXIT
""")
print( )
if e==1:
print("\n !!!!BEFORE ADDING THE MEDICINE TO THE STOCK PLEASE CHECK THE EXPIRY
DATE OF IT!!!!")
print( )
if f in a:
z=a.index(f)
i=str(input("\nDO YOU WANT TO UPDATE THE PRICE AND THE QUANTITY ? ( Y / N ):"))
if i =="y":
b[z]=g
c[z]+=h
#asking the user tp print the details of the updated details of the medicine
y=str(input("\nDO YOU WANT TO SEE THE DETAILS OF THE UPDATED DETAILS ? ( Y / N ):"))
print("MEDICINE NAME\tPRICE\tQUANTITY")
print(".............\t.....\t........")
if y == "y":
print( )
print(a[z],end="\t")
print(b[z],end=
"\t")
else:
else:
continue
else:
a.append(f)
b.append(g)
c.append(h)
if g== "y":
print( )
print("medicine name:",a[len(a)-1])
print("price:",b[len(b)-1])
print("quantity:",c[len(c)-1])
else:
if s =="y":
continue
else:
break
elif e==2:
print( )
if i in a:
print( )
if (j <=c[k]):
c[k]-=j
print("\nMEDICINE IS IN STOCK")
print("\n !!!!BEFORE SELLING THE MEDICINE PLEASE CHECK THE EXPIRY DATE OF THE
MEDICINE!!!!")
print( )
if z=="y":
print( )
print("""
RECEIPT
...........
continue
z=str(input("\nDO YOU WANT TO SEE THE DETAILS OF THE SOLD MEDICINE IN THE STOCK? ( Y / N ):"))
print("\nMEDICINE NAME:",a[k])
print("PRICE:",b[k])
print("QUANTITY LEFT:",c[k])
else:
else:
else:
if s =="y":
continue
else:
break
print( )
print("MEDICINE NAME\tPRICE\tQUANTITY")
print(".............\t.....\t........")
print( )
for k in range(len(a)):
print(a[k],end="\t")
print(b[k],end="\t")
print(c[k])
if s =="y":
continue
else:
break
elif e==4:
print( )
if f in a:
i=a.index(f)
print( )
c[i]-=g
print( )
print("\nMEDICINE NAME:",a[i])
print("QUANTITY LEFT:",c[i])
else:
else:
print( )
if s =="y":
continue
else:
break
elif e==5:
print( )
g=str(input("MEDICINE NAME:"))
i=a.index(g)
1==PRICE
2==QUANTITY
""")
print( )
if(f==1):
b[i]=h
print( )
if z=="y":
print("\nMEDICINE NAME:",a[i])
print("NEW PRICE:",b[i])
else:
elif f==2:
print( )
1=INCREASE QUANTITY
2=DECREASE QUANTITY
""")
##if the user wants to increase the no. of medicines in the stock
if p==1:
print( )
c[i]+=h
print( )
##if the user wants to decrease the the no. of medicines in the stock
else:
i=a.index(g)
print( )
c[i]-=h
print( )
else:
z=str(input("DO YOU WANT TO SEE THE DETAILS OF THE EDITED MEDICINE ? ( Y / N ):"))
if z=="y":
print("\nMEDICINE NAME:",a[i])
print("NEW QUANTITY:",c[i])
else:
else:
print( )
if s =="y":
continue
else:
break
elif e==6:
print( )
print(""" ////////////////////<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>///////////////////
///////////////////<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>///////////////////
""")
break
print( )