Computer Project XI
Computer Project XI
ON
PARKING MANAGEMENT SYSTEM
Signature of Student
2
CERTIFICATE
Signature of Internal
Signature of External
Signature of Teacher
ACKNOWLEDGEMENT
3
I would like to profound sense of gratitude to my guide
Ms. Geetanjali Hota, my computer teacher for her
valuable guidance during preparation of my project
work.
Date:
CONTENT
4
1. Declaration 02
2. Certificate 03
3. Acknowledgement 04
4. Content 05
6. Output 09
5
SOURCE CODE
Vehicle_Number=[ ]
Vehicle_Type=[ ]
Date=[ ]
Time=[ ]
#Spaces available for vehicles
bicycles=10
bikes=20
cars=30
while True:
print("\t\tParking Management System")
print("1.Vehicle entry")
print("2.Remove entry")
print("3.View parked vehicle")
print("4.View left parking space ")
print("5.Charging details ")
print("6.Bill")
print("7.Quit")
option=int(input("Select option:"))
if option==1:
V_No=input("Enter vehicle number")
Vehicle_Number.append(V_No)
Vtype=str(input("Enter vehicle type(Bicycle=A, Bike=B, Car=C):"))
if Vtype=="a" or Vtype=="A":
Vehicle_Type.append("Bicycle")
bicycles-=1
elif Vtype=="b" or Vtype=="B":
Vehicle_Type.append("Bike")
bikes-=1
elif Vtype=="c" or Vtype=="C":
Vehicle_Type.append("Car")
6
cars-=1
else:
print("Please enter valid option")
date=input("Enter date")
Date.append(date)
time=input("Enter time")
Time.append(time)
elif option==2:
Vno=input("Enter vehicle number to delete")
if Vno in Vehicle_Number:
i=Vehicle_Number.index(Vno)
Vehicle_Number.pop(i)
Vehicle_Type.pop(i)
Date.pop(i)
Time.pop(i)
else:
if Vno not in Vehicle_Number:
print("No entry found")
elif option==3:
c=0
print("Parked Vehicles")
print("Vehicle No.\tVehicle Type\t Date\t Time")
for i in range(len(Vehicle_Number)):
c+=1
print(Vehicle_Number[i],"\t ",Vehicle_Type[i],"\t " ,Date[i],"\t ",Time[i])
print("Total Records:",c)
elif option==4:
print("Spaces Left For Parking")
print("Spaces Available for Bicycles:",bicycles)
print("Spaces Available for Bikes:",bikes)
print("Spaces Available for Cars:",cars)
7
elif option==5:
print("Parking Rate")
print("Bicycle Rs20/Hr")
print("Bike Rs40/Hr")
print("Car Rs60/Hr")
elif option==6:
print("Bill")
V_no=input("Enter vehicle number to generate bill")
if V_no in Vehicle_Number:
i=Vehicle_Number.index(V_no)
else:
if V_no not in Vehicle_Number:
print("No entry found")
print("Vehicle Check in time",Time[i])
print("Vehicle Check in Date",Date[i])
print("Vehicle Type",Vehicle_Type[i])
hr=input("Enter No. of hours vehicle was parked")
if int(hr)!=0:
if Vehicle_Type[i]=="Bicycle":
amt=int(hr)*int(20)
elif Vehicle_Type[i]=="Bike":
amt=int(hr)*int(40)
elif Vehicle_Type[i]=="Car":
amt=int(hr)*int(60)
print("Parking Charge=Rs",amt)
elif option==7:
print("Thank You for using our services")
break
quit
8
OUTPUT
9
CONCLUSION
Bibliography
www.github.com
www.copyassignment.com
Sumita Arora Book, Class XI
10