You are on page 1of 37

ST TERESA SCHOOL

INDIRAPURAM,201014

COMPUTER SCIENCE
PROJECT
TOPIC: PET SHOP MANAGEMENT

2023-2024

SUBMITTED TO SUBMITTED BY
Ms Vinita Sharma Vishnu Naveen Nair
DESIGNATION BOARD ROLL NUMBER
HOD-COMPUTER SCIENCE(083) ________________
CERTIFICATE OF COMPLETION

This is to Certify that Vishnu Naveen Nair of


(XII A1), Student of St Teresa School,
Indirapuram,Ghaziabad,201014 of
Board Roll number has Successfully
Completed the Computer Science(083) Project File
under the direct supervision and guidance of
Computer Science teacher named Ms Vinita
Sharma(HOD CS)

INTERNAL EXAMINER EXTERNAL EXAMINER

INTERNAL EXAMINER NO EXTERNAL EXAMINER NO


ACKNOWLEDGEMENT

I would like express my special thanks of


gratitude to my Computer Science teacher
Ms Vinita Sharma Ma'am as well as our
principal Ms Renu Srivastava Ma'am
who gave me this golden opportunity
to do this wonderful project on the
topic “PET SHOP MANAGEMENT”

Secondly, I would like to thank my parents


and friends who helped me a lot in
finalizing this project within limited
time frame.
INDEX
SOFTWARE REQUIREMENTS
CODE
OUTPUTS
SOFTWARE REQUIREMENTS
Microsoft Excel (version 2016 and above)
Python IDLE (3.11 version and above)
Computer/Laptop (8th generation and above)
CODE
### IMPORTING REQUIRED MODULES
from openpyxl import Workbook, load_workbook
import csv
import pandas as pd

## INITIALISATION OF VARIABLES
j=0
P1,P2,P3,P4,P5,P6 = 0,0,0,0,0,0
c1,c2,c3,c4,c5,c6 = 0,0,0,0,0,0
Total_pet = 0

## DEFINING DOG FUNCTION


def dog():
global P1,c1
P1,c1,Total_pet=0,0,0
Total_pet=P1+P2+P3+P4+P5+P6
## PATH OF FILE(DO NOT ENTER FILENAME OF THE CSV
FILE)
filename1 = r"C:\Users\Vishnu Nair\OneDrive\Desktop\CSV
FILES\dog.csv"
## IMPORTING THE MODULE
import csv
import random
## GUI OF DOG
def menu1():
print("#" *30)
print(" ||PET PARADISE|| ")
print("#" * 30)
print("press 0 to Log out")
print("press 1 to display breeds of dog")
ch1 = int(input("Enter your choice: "))
return ch1
## FORMATTING FOR HEADERS OF CSV FILES
def heading1():
print("=" * 220)
print("%-40s%-40s%-40s%-40s%-40s%-40s%-40s"%
("DOGCODE","BREED OF DOG","COLOUR","LIFE SPAN(IN
YEARS)","SPECIAL FEATURES","HEIGHT(IN CM)","PRICE(IN Rs)"))
print("=" * 220)
## SEARCHING DATA FROM DOG.CSV & ALIGNMENT CODE FOR
RECORDS OF DOG.CSV
def readall1(n=None):
flag1 = 0
with open(filename1, 'r', newline = '\r\n') as fobj1:
datareader1 = csv.reader(fobj1)
heading1()
if n==None:
for mydata1 in datareader1:
print("%-40s%-40s%-40s%-40s%-40s%-40s%-40s"%
(mydata1[0],mydata1[1],mydata1[2],mydata1[3],mydata1[4],mydata1
[5],mydata1[6]))
elif n!=None:
for mydata1 in datareader1:
if mydata1[0] == n:
print("%-40s%-40s%-40s%-40s%-40s%-40s%-40s"%
(mydata1[0],mydata1[1],mydata1[2],mydata1[3],mydata1[4],mydata1
[5],mydata[6]))
flag1 += 1
if flag1 == 0:
print("Oops your favourite breed is not available with us.
Sorry for inconvenience")
fobj1.close()
## GUI FOR PAYMENT & DELIVERY STATUS
while True:
ch1 =menu1()
if ch1 == 0:
break

elif ch1 == 1:
readall1()
import csv
f=open("dog.csv","r")
a=csv.reader(f)
PET=input("Enter breed code your want to adopt")
QTY=int(input("Enter no of above pet you want to adopt"))
P1+=QTY
for i in a:
if i[0]==PET:
c1+=QTY*(int(i[6].replace(",","")))
print("COST OF ",QTY,i[1],"=",QTY*(int(i[6].replace(",",""))))
## DEFINING CAT FUNCTION
def cat():
global P2,c2
P2,c2,Total_pet=0,0,0
Total_pet=P1+P2+P3+P4+P5+P6
## PATH OF THE FILE(DO NOT ENTER FILENAME OF THE CSV FILE)
filename2 =r"C:\Users\Vishnu Nair\OneDrive\Desktop\CSV
FILES\cat.csv"
## IMPORTING MODULE
import csv
## GUI OF CAT
def menu2():
print("#" *30)
print(" ||PET PARADISE|| ")
print("#" * 30)
print("press 0 to Log out")
print("press 1 to display breeds of cat")
ch2 = int(input("Enter your choice: "))
return ch2
## FORMATTING THE HEADERS OF CAT.CSV
def heading2():
print("=" * 220)
print("%-40s%-40s%-40s%-40s%-40s%-40s%-20s"%
("CATCODE","BREED OF CAT","COLOUR","LIFE SPAN(IN
YEARS)","SPECIAL FEATURES","HEIGHT(IN CM)","PRICE(IN Rs)"))
print("=" * 220)
## SEARCHING DATA FROM CAT.CSV & ALIGNMENT CODE FOR
RECORDS OF CAT.CSV
def readall2(n=None):
flag2 = 0
with open(filename2, 'r', newline = '\r\n') as fobj2:
datareader2 = csv.reader(fobj2)
heading2()
if n==None:
for mydata2 in datareader2:
print("%-40s%-40s%-40s%-40s%-40s%-40s%-20s"%
(mydata2[0],mydata2[1],mydata2[2],mydata2[3],mydata2[4],mydata2
[5],mydata2[6]))
elif n!=None:
for mydata2 in datareader2:
if mydata2[0] == n:
print("%-40s%-40s%-40s%-40s%-40s%-40s%-20s"%
(mydata2[0],mydata2[1],mydata2[2],mydata2[3],mydata2[4],mydata2
[5],mydata2[6]))
flag2 += 1
if flag2 == 0:
print("Oops your favourite breed is not available with us.
Sorry for inconvenience")
fobj2.close()
## GUI FOR PAYMENT AND DELIVERY STATUS
while True:
ch2 =menu2()
if ch2 == 0:
break
elif ch2 == 1:
readall2()
import csv
f=open(r"C:\Users\Vishnu Nair\OneDrive\Desktop\CSV
FILES\cat.csv","r")
a=csv.reader(f)
PET=input("Enter breed code your want to adopt")
QTY=int(input("Enter no of above pet you want to adopt"))
P2+=QTY

for i in a:
if i[0]==PET:
c2+=QTY*(int(i[6].replace(",","")))
print("COST OF ",QTY,i[1],"=",QTY*(int(i[6].replace(",","")))) ##
DEFINING FISH FUNCTION
def fish():
global P3,c3
P3,c3,Total_pet=0,0,0
## PATH OF THE FILE(DO NOT ENTER THE FILENAME OF THE CSV
FILE)
filename3 =r"C:\Users\Vishnu Nair\OneDrive\Desktop\CSV
FILES\fish.csv"
## IMPORTING MODULE
import csv
## GUI FOR FISH
def menu3():
print("#" *30)
print(" ||PET PARADISE|| ")
print("#" * 30)
print("press 0 to Log out")
print("press 1 to display breeds of cat")
ch3 = int(input("Enter your choice: "))
return ch3
## FORMATINNG CODE FOR HEADERS OF FISH.CSV
def heading3():
print("=" * 220)
print("%-40s%-40s%-40s%-40s%-40s%-40s"%
("FISHCODE","BREED OF FISHES","COLOUR","LIFE SPAN (IN
YEARS)","ORIGIN","PRICE"))
print("=" * 220)
## SEARCHING DATA FROM FISH.CSV & ALIGNMENT CODE FOR
RECORDS OF FISH.CSV
def readall3(n=None):
flag3 = 0
with open(filename3, 'r', newline = '\r\n') as fobj3:
datareader3 = csv.reader(fobj3)
heading3()
if n==None:
for mydata3 in datareader3:
print("%-40s%-40s%-40s%-40s%-20s%-40s"%
(mydata3[0],mydata3[1],mydata3[2],mydata3[3],mydata3[4],mydata
3[5]))
elif n!=None:
for mydata3 in datareader3:
if mydata3[0] == n:
print("%-40s%-40s%-40s%-40s%-40s%-40s"%
(mydata3[0],mydata3[1],mydata3[2],mydata3[3],mydata3[4],mydata
3[5]))
flag3 += 1
if flag3 == 0:
print("Oops your favourite fish not available with us. Sorry for
inconvenience")
fobj3.close()
## GUI FOR PAYMENT & DELIVERY STATUS
while True:
ch3 =menu3()
if ch3 == 0:
break
elif ch3 == 1:
readall3()
import csv
f=open(r"C:\Users\Vishnu Nair\OneDrive\Desktop\CSV
FILES\fish.csv","r")
a=csv.reader(f)
PET=input("Enter breed code your want to adopt")
QTY=int(input("Enter no of above pet you want to adopt"))
P3+=QTY

for i in a:
if i[0]==PET:
c3+=QTY*(int(i[5].replace(",","")))
print("COST OF ",QTY,i[1],"=",QTY*(int(i[5].replace(",","")))) ##
DEFINING REPTILES FUNCTION
def reptiles():
global P4,c4
P4,c4,Total_pet=0,0,0
Total_pet=P1+P2+P3+P4+P5+P6
## PATH OF THE FILE(DO NOT NETER FILENAME OF THE CSV FILE)
filename4 = r"C:\Users\Vishnu Nair\OneDrive\Desktop\CSV
FILES\reptile.csv"
## IMPORTING MODULE
import csv
## GUI FOR REPTILES
def menu4():
print("#" *30)
print(" ||PET PARADISE|| ")
print("#" * 30)
print("press 0 to Log out")
print("press 1 to display reptiles")
ch4 = int(input("Enter your choice: "))
return ch4
## FORMATTING CODE FOR HEADERS OF REPTILES.CSV
def heading4():
print("=" * 220)
print("%-40s%-40s%-40s%-40s%-40s%-40s%-40s"%
("REPTILECODE","REPTILES","COLOUR","LIFE SPAN(IN
YEARS)","SPECIAL FEATURES","HABITAT","PRICE(IN Rs)"))
print("=" * 220)
## SEARCHING DATA FROM REPTILES.CSV & ALIGNMENT CODE
FOR RECORDS OF REPTILES.CSV
def readall4(n=None):
flag4 = 0
with open(filename4, 'r', newline = '\r\n') as fobj4:
datareader4 = csv.reader(fobj4)
heading4()
if n==None:
for mydata4 in datareader4:
print("%-40s%-40s%-40s%-40s%-40s%-40s%-40s"%
(mydata4[0],mydata4[1],mydata4[2],mydata4[3],mydata4[4],mydata
4[5],mydata4[6]))
elif n!=None:
for mydata4 in datareader4:
if mydata4[0] == n:
print("%-40s%-40s%-40s%-40s%-40s%-40s%-40s"%
(mydata4[0],mydata4[1],mydata4[2],mydata4[3],mydata4[4],mydata
4[5],mydata4[6]))
flag4 += 1
if flag4 == 0:
print("Oops your favourite reptileis not available with us.
Sorry for inconvenience")
fobj4.close()
## GUI FOR PAYMENT AND DELIVERY STATUS
while True:
ch4 =menu4()
if ch4 == 0:
break
elif ch4 == 1:
readall4()
import csv
f=open(r"C:\Users\Vishnu Nair\OneDrive\Desktop\CSV
FILES\reptile.csv","r")
a=csv.reader(f)
PET=input("Enter breed code your want to adopt")
QTY=int(input("Enter no of above pet you want to adopt"))
P4+=QTY

for i in a:
if i[0]==PET:
c4+=QTY*(int(i[6].replace(",","")))
print("COST OF ",QTY,i[1],"=",QTY*(int(i[6].replace(",","")))) ##
DEFINING FUNCTION BIRDS
def birds():
global P5,c5
P5,c5,Total_pet=0,0,0
Total_pet=P1+P2+P3+P4+P5+P6
## PATH OF THE FILE(DO NOT ENTER THE FILENAME OF THE FILE)
filename5 = r"C:\Users\Vishnu Nair\OneDrive\Desktop\CSV
FILES\birds.csv"
## IMPORTING MODULE
import csv
## GUI FOR BIRDS
def menu5():
print("#" *30)
print(" ||PET PARADISE|| ")
print("#" * 30)
print("press 0 to Log out")
print("press 1 to display various bird breeds")
ch5 = int(input("Enter your choice: "))
return ch5
## FORMATTING CODE FOR HEADERS OF BIRDS.CSV
def heading5():
print("=" * 170)
print("%-25s%-25s%-40s%-40s%-25s%-20s%-20s"%
("BIRDCODE","TYPES OF BIRDS","LENGTH (IN
INCHES)","FEATURES","ORIGIN","WEIGHT(IN OUNCES)","PRICE"))
print("=" * 170)
## SEARCHING DATA FORM BIRDS.CSV & ALIGNMENT CODE FOR
RECORDS OF BIRDS.CSV
def readall5(n=None):
flag5 = 0
with open(filename5, 'r', newline = '\r\n') as fobj5:
datareader5 = csv.reader(fobj5)
heading5()
if n==None:
for mydata5 in datareader5:
print("%-40s%-40s%-40s%-40s%-40s%-40s%-40s"%
(mydata5[0],mydata5[1],mydata5[2],mydata5[3],mydata5[4],mydata
5[5],mydata5[6]))
elif n!=None:
for mydata5 in datareader5:
if mydata5[0] == n:
print("%-40s%-40s%-40s%-40s%-40s%-40s%-40s"%
(mydata5[0],mydata5[1],mydata5[2],mydata5[3],mydata5[4],mydata
5[5],mydata5[6]))
flag5 += 1
if flag5 == 0:
print("Oops your favourite breed is not available with us.
Sorry for inconvenience")
fobj5.close()
## GUI FOR PAYMENT AND DELIVERY STATUS
while True:
ch5 =menu5()
if ch5 == 0:
break
elif ch5 == 1:
readall5()
import csv
f=open(r"C:\Users\Vishnu Nair\OneDrive\Desktop\CSV
FILES\birds.csv","r")
a=csv.reader(f)
PET=input("Enter breed code your want to adopt")
QTY=int(input("Enter no of above pets you want to adopt"))
P5+=QTY

for i in a:
if i[0]==PET:
c5+=QTY*(int(i[6].replace(",","")))
print("COST OF ",QTY,i[1],"=",QTY*(int(i[6].replace(",","")))) ## MENU
DRIVEN PROGRAM FOR RABBITS
## DEFINING THE FUNCTION RABBITS
def rabbit():
global P6,c6
P6,c6,Total_pet=0,0,0
Total_pet=P1+P2+P3+P4+P5+P6
## PATH OF THE FILE ( DO NOT USE THE FILENME OF THE CSV FILE)
filename6 = r"C:\Users\Vishnu Nair\OneDrive\Desktop\CSV
FILES\rabbits.csv"
import csv
def menu6():
print("#" *30)
print(" ||PET PARADISE|| ")
print("#" * 30)
print("press 0 to Log out")
print("press 1 to display breeds of rabbits")
ch6 = int(input("Enter your choice: "))
return ch6
## FORMATTING CODE FOR HEADERS OF RABBITS.CSV
def heading6():
print("=" * 450)
print("%-80s%-80s%-80s%-80s%-80s%-80s%-70s"%
("RABBITCODE","TYPES OF RABBITS","COLOUR","WEIGHT (IN
POUNDS)","SPECIAL FEATURES","ORIGIN","PRICE"))
print("=" * 450)
## SEARCHING DATA FROM RABBITS.CSV & ALIGNMENT CODE FOR
RECORDS OF RABBITS.CSV
def readall6(n=None):
flag6 = 0
with open(filename6, 'r', newline = '\r\n') as fobj6:
datareader6 = csv.reader(fobj6)
heading6()
if n==None:
for mydata6 in datareader6:
print("%-80s%-80s%-80s%-80s%-80s%-80s%-80s"%
(mydata6[0],mydata6[1],mydata6[2],mydata6[3],mydata6[4],mydata
6[5],mydata6[6]))
elif n!=None:
for mydata6 in datareader6:
if mydata6[0] == n:
print("%-80s%-80s%-80s%-80s%-80s%-80s%-80s"%
(mydata6[0],mydata6[1],mydata6[2],mydata6[3],mydata6[4],mydata
6[5],mydata6[6]))
flag6 += 1
if flag6 == 0:
print("Oops your favourite breed is not available with us. Sorry for
inconvenience")
fobj6.close()
## GUI FOR PAYMENT AND DELIVERY STATUS
while True:
ch6 =menu6()
if ch6 == 0:
break
elif ch6 == 1:
readall6()
import csv
f=open(r"C:\Users\Vishnu Nair\OneDrive\Desktop\CSV
FILES\rabbits.csv","r")
a=csv.reader(f)
PET=input("Enter breed code your want to purchase")
QTY=int(input("Enter no of above pet you want to adopt"))
P6+=QTY

for i in a:
if i[0]==PET:
c6+=QTY*(int(i[6].replace(",","")))
print("COST OF ",QTY,i[1],"=",QTY*(int(i[6].replace(",","")))) ##MAIN
MENU()
def MAIN_MENU():

print("Type 'DOGS' or 1 to adopt dogs")


print("Type 'CATS' or 2 to adopt cats")
print("Type 'FISH' or 3 to adopt fish")
print("Type 'REPTILES' or 4 to adopt reptiles")
print("Type 'BIRDS' or 5 to adopt birds")
print("Type 'RABBITS' or 6 to adopt rabbits")
ab=input("Please enter the pet code you want to adopt")
if ab in "DOGS1":
dog()
elif ab in "CATS2":
cat()
elif ab in "FISH3":
fish()
elif ab in "REPTILES4":
reptiles()
elif ab in "BIRDS5":
birds()
elif ab in "RABBITS6":
rabbit()
else:
print("oops!! not available")
## ASSIGN function
def assign():
if Total_pet!=0:
print("dhanyawad///Thank You///merci")
import csv
global row
row=[name,address,phone_no,Total_pet,subtotal]
f=open("SALES21.csv","a",newline="\n")

h=csv.writer(f)
h.writerow(row)
## ADMIN FUNCTION (which contains sales, inventory and pur
functions)
def ADMIN():

a=input("Enter your password")


import csv
def sales():
f=open("SALES21.csv","r",newline="\n")
z=csv.reader(f)
print("=" * 220)
print("%-25s%-50s%-20s%-35s%-25s"%
("NAME","ADDRESS","PHONE_NO","TOTAL_PET","SUBTOTAL"))
print("=" * 220)

for i in z:

print("%-25s%-50s%-20s%-35s%-25s"%(i[0],i[1],i[2],i[3],i[4]))
print("=" * 220)
def inventory():
f = open("new2.csv","r",newline="\n")
a = csv.reader(f)

for i in a:
print("=" * 220)
print("%-40s%-40s%-40s%-40s"%(i[0],i[1],i[2],i[3]))
print("=" *220)
f.close()
def pur():
user=input("Do you want to purchase
Dogs,cats,rabbits,reptiles,birds,fishes(Yes or No) from the dealers")
if user in "YESyes":
print("enter 1 for purchasing dogs")
print("enter 2 for purchasing cats")
print("enter 3 for purchasing fish")
print("enter 4 for purchasing reptiles")
print("enter 5 for purchasing birds")
print("enter 6 for purchasing rabbits")
a =int(input("enter your choice"))
if a == 1:
dogs = int(input("enter the number of dogs you want to
purchase"))
wb = load_workbook("inventory1.xlsx")
ws = wb.active
ws['C2'].value =ws['C2'].value+dogs
wb.save("inventory1.xlsx")
y = input("Do you want more pets")
if y == "YES":
pur()
else:
print("Thank You")
elif a == 2:
cats = int(input("enter the number of cats you want to
purchase"))
wb = load_workbook("inventory1.xlsx")
ws = wb.active
ws['C3'].value =ws['C3'].value+cats
wb.save("inventory1.xlsx")
y = input("Do you want more pets")
if y == "YES":
pur()
else:
print("Thank You")
elif a == 3:
fish= int(input("enter the number of fish you want to purchase"))
wb = load_workbook("inventory1.xlsx")
ws = wb.active
ws['C4'].value =ws['C4'].value+fish
wb.save("inventory1.xlsx")
y = input("Do you want more pets")
if y == "YES":
pur()
else:
print("Thank You")

elif a == 4:
reptiles = int(input("enter the number of reptiles you want to
purchase"))
wb = load_workbook("inventory1.xlsx")
ws = wb.active
ws['C5'].value =ws['C5'].value+reptiles
wb.save("inventory1.xlsx")
y = input("Do you want more pets")
if y == "YES":
pur()
else:
print("Thank You")
elif a == 5:
birds = int(input("enter the number of birds you want to purchase"))
wb = load_workbook("inventory1.xlsx")
ws = wb.active
ws['C6'].value =ws['C6'].value+birds
wb.save("inventory1.xlsx")
y = input("Do you want more pets")
if y == "YES":
pur()
else:
print("Thank You")

elif a == 6:
rabbits = int(input("enter the number of rabbits you want to
purchase"))
wb = load_workbook("inventory1.xlsx")
ws = wb.active
ws['C7'].value =ws['C7'].value+rabbits
wb.save("inventory1.xlsx")
y = input("Do you want more pets")
if y == "YES":
pur()
else:
print("Thank You")

else :
print("Thank You")
if a=="*123#":
print("Enter PURCHASE to import more pets for shop")
print("Enter SALES to check sales of shop")
print("Enter INVENTORY to access inventory")
b=input("Enter your choice")
if b=="INVENTORY":
inventory()
if b=="SALES":
sales()
if b == "PURCHASE":
pur()
else:
print("Authentication not succesful")
## UPDATING THE VALUES IN INVENTORY.XLSX
def inv():
wb = load_workbook("inventory1.xlsx")
ws = wb.active
ws['D2'].value =ws['D2'].value+P1
ws['D3'].value =ws['D3'].value+P2
ws['D4'].value =ws['D4'].value+P3
ws['D5'].value =ws['D5'].value+P4
ws['D6'].value =ws['D6'].value+P5
ws['D7'].value =ws['D7'].value+P6
ws['C2'].value = ws['C2'].value - P1
ws['C3'].value = ws['C3'].value - P2
ws['C4'].value = ws['C4'].value - P3
ws['C5'].value = ws['C5'].value - P4
ws['C6'].value = ws['C6'].value - P5
ws['C7'].value = ws['C7'].value - P6
wb.save("inventory1.xlsx")
read_file=pd.read_excel(r"C:\Users\Vishnu
Nair\OneDrive\Desktop\inventory1.xlsx")
read_file.to_csv(r"C:\Users\Vishnu
Nair\OneDrive\Desktop\new2.csv",index=None,header=True)
### GUI OF OVERALL PROGRAM
print("#" *30)
print(" ||PET PARADISE|| \n owners-->ABHAY,AKSHAT AND VISHNU ")
print("#" * 30)
print(" *WELCOME TO OUR SHOP ")
print("#" * 50)
print("!!!PLEASE READ IT CAREFULLY BEFORE YOUR PET
ADOPTION!!!")
print("!!!TERMS & CONDITIONS!!!")
print("1.The customer must ensure that they have the pet keeping
certificate before proceeding towards adopting")
print("2.Our agent will come twice in 1 month period to check the
health of the pet and if any cruelty is done to the animal then the
customer will be strictly punished under PETS ACT (1960)")
print("#" * 135)
print("Enter 'ADMIN' or 1 to open admins")
print("Enter 'BUYER' or 2 to buy pets")
alpha=input("Enter your choice")
if alpha in "BUYER2":
print("Variety of our pets")
print("DOGS , CATS , REPTILES, FISHES , BIRDS, RABBITS")
pet_no=int(input("enter the no of variety of pets you want to
adopt. (You can also enter 1 to proceed to adopt only one pet)"))
for i in range(pet_no):
MAIN_MENU()
Total_pet=P1+P2+P3+P4+P5+P6
if Total_pet!=0:
print("Total dogs adopted",P1)
print("Total cats adopted",P2)
print("Total fish adopted",P3)
print("Total reptiles adopted",P4)
print("Total birds adopted",P5)
print("Total rabbits adopted",P6)
global name,address,phone_no,subtotal
name=input("Enter your name-")
address=input("Enter your address-")
phone_no=int(input("Enter your phone no-"))
print("TOTAL COST OF YOUR DOG ADOPTED",c1)
subtotal=c1+c2+c3+c4+c5+c6
print("Subtotal-",subtotal)
print("Press 'A' or 'a' for Credit Card")
print("Press 'B' or 'a' for cash")
print("Press 'C' or 'a' for netbanking")
choice1 = input("Enter your desired payment gateway")
if choice1 == "Aa":
a=int(input("Enter your credit card number-"))
elif choice1 == "Bb":
i=random.randint(1,6)
print("Pay the required cash on counter no.",i)
elif choice1 == "Cc":
print("Transfer money to bank account no ------> 111348945674 in
ICICI bank Ghaziabad ")
print("Payment succesfull, May you and your pet have a wonderful
journey")
print("Please drop your feedback at PetParadise@gmail.com")
print("Thank You and have a nice day")
print("Keep visiting Pet Paradise")
f=open("SALES.csv","a")
a=csv.writer(f)
ROWS=[name,address,phone_no,Total_pet,subtotal]
a.writerow(ROWS)
f.close()
assign()
inv()
elif alpha in"ADMIN1":
ADMIN()
OUTPUTS

WORKING OF SALES()

WORKING OF INVENTORY()
WORKING OF PUR()

WORKING OF BUYER()

You might also like