Parking Management System Ip Project 2023
Parking Management System Ip Project 2023
2023######################
import pandas as pd
import numpy as np
'hours' : [5 ,3,10,2],
'bill' : [275,115,525,75]}
parked_vehicles = pd.DataFrame(vehicle_list)
pd.set_option('display.max_colwidth', 15)
#########parking spot####
available_spot_car = ['c1' , 'c3' , 'c4' ,'c5' , 'c6' , 'c7' ,'c8' , 'c9' ,'c10']
available_spot_scooter=['s1','s2','s3','s4','s5','s6','s8','s9','s10']
while True:
#############################giving
options#########################################
if ch == 1:
o_name,v_num,v_type,v_spot,bill_amt,o_claim = "","","","","",""
print(" +-------------------------------+")
print(" +-------------------------------+")
print(" +-------------------------------+")
if v_type == 1:
break
else:
break
break
elif v_type == 2:
v_type = "bike"
break
else:
break
break
elif v_type == 3:
v_type = "scooter"
break
else:
break
break
if (o_name.replace(" ","")).isalpha():
break
v_num = (input('Please enter the vehicle number , format eg: GJ 16 EG 8989 ---->')).upper()
break
bill_amt = 0
v_hrs = input("please specify the number of hours you want to park your vehicle")
if v_hrs.isalpha():
else:
v_hrs = int(v_hrs)+1
if v_hrs == 1:
bill_amt = 75
bill_amt = 75 + 50*(v_hrs - 1)
bill_amt = 75 + 30*(v_hrs - 1)
elif v_hrs >1 and v_type == "scooter":
bill_amt = 75 + 20*(v_hrs - 1)
break
print("Do you want to avail our special offer to wash your vehicle?")
print("price: 250/- for car and 120/- for bike and scooter")
if o_claim.lower() == "yes":
if v_type == "car":
bill_amt += 250
break
else:
bill_amt += 120
break
if o_claim.lower() == "no":
break
if v_type == "car":
v_spot = available_spot_car[0]
available_spot_car.pop(0)
if v_type == "bike":
v_spot = available_spot_bike[0]
available_spot_bike.pop(0)
if v_type == "scooter":
v_spot = available_spot_scooter[0]
available_spot_scooter.pop(0)
print(" ENTRY SUCCESSFULL")
print(" +--------------------------------------------------+")
print(" +--------------------------------------------------+")
print(parked_vehicles)
if ch == 2:
v_num = (input('Please enter the vehicle number , format eg: GJ 16 EG 8989 ---->')).upper()
print(parked_vehicles.iloc[((parked_vehicles.index[parked_vehicles['vehicle number'] ==
v_num])-1)[0]])
while True:
if resp == "yes":
print("THANL YOU :)..Please collect your vehicle from the parking spot mentioned in the
list")
parked_vehicles = parked_vehicles.drop(parked_vehicles[parked_vehicles['vehicle
number'] == v_num].index)
break
print(parked_vehicles)
if ch == 3:
print("NOTE: for fractional hours the price is calculated to the next nearest integral hour.")
print("for eg. for prking for 2.5 hours price is calculated for 3 hours")
if ch == 4:
print(parked_vehicles)
if ch == 5:
break
else:print("please make a valid choice")
##################################################################################
#############################################################
# +-------- |\ | +----
# | |\ | | \
# | | \ | | \
# +------- | \ | | |
# | | \ | | /
# | | \| | /
# +-------- | \| +----