CS Parking Word-1

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 21

INVESTIGATORY PROJECT REPORT IN

COMPUTER SCIENCE SUBMITTED IN PARTIAL


FULFILMENT OF THE REQUIREMENTS FOR THE
PRACTICAL EXAMINATION

PARKING MANAGEMENT SYSTEM

SUBMITTED BY
GOPAL R
(REG.NO )

Team members:-
Gopal R
Sharveshaa A
Shreesaanth R

PSG PUBLIC SCHOOLS


COIMBATORE
INDEX

S.NO CONTENT PAGE


1 INTRODUCTION 1-2
2 NEED OF COMPUTERIZATION 3
3 SOFTWARE AND HARDWARE REQUIREMENT 4
4 ADVANTAGES OF PROJECT 5
5 LIMITATIONS OF PROJECT 6
6 SOURCE CODE 7-12
7 OUTPUT SCREENING 13-15
8 FUTURE ENHANCEMENT OF PROJECT 16
9 BIBLIOGRAPHY 17
INTRODUCTION
This is a project based on Parking Management. The program helps us to enter, display
or alter the details of vehicles in parking records.

Moreover & most importantly the program helps us The program also helps us to know
the present status of a parking detail, vehicle detail etc.

It includes various function programs to do the above mentioned tasks.

Data file handling has been effectively used in the program.

The database is a collection of interrelated data to serve multiple applications. That is


database programs create files of information. So we see that files are worked with most,
inside the program.

DBMS

The software required for the management of data is called as DBMS. It has 3 models

• Relation model
• Hierarchical model
• Network model
RELATIONAL MODEL It’s based on the concept on relation. Relation is the table that
consists of rows and columns. The rows of the table are called tuple and the columns of
the table are called attribute. Numbers of rows in the table is called as cardinality.
Number of columns in the table is called as degree.

1
HIERARCHICAL MODEL:In this type of model, we have multiple records for each record. A
particular record has one parent record. No chide record can exist without parent record. In
this, the records are organized in tree (like structure)
NETWORK MODEL:- In this, the data is represented by collection of records and
relationship is represented by (ink or association).

CHARACTERISTICS OF DBMS: -

• It reduces the redundancy


• Reduction of data in inconsistency
• Data sharing
• Data standardization
DIFFERENT TYPES OF FILES: -BASED ON ACCESS:-

• Sequential file
• Serial file
• Random (direct access) file BASED ON STORAGE:-
• Text file
• Binary File

2
NEED OF COMPUTERIZATION

No one can easily plan the journey comfortably as the process is efficient and fast with
being easy to access. Reservations can be made through the Indian railways site or at the
ample reservation centers all over the country. Also now there are authorized agencies
which provide reservation facility on behalf of India railways and without waiting in
long line one can easily book a ticket. The booking is done through an E- Ticket issue
which has a PNR number of which one has to take a print and just have to show at the
station.

It not only provides reservation but cancellation can also be done through this system at
ease and one can use a credit card to complete the process. This being a big step in terms
of improvement in the railway system it is widely accepted across the country.

3
SOFTWARE & HARDWARE REQUIREMENT

SOFTWARE SPECIFICATION: -
Operating System: Windows 7
Platform: Python IDLE 3.7
Language: Python

HARDWARE SPECIFICATION: -

Processor: Dual Core & Above Hard Disk:


40GB
RAM: 1024MB

Note: For Python-MySQL connectivity, following data have been used:-


Host- localhost, user- root, password- root, database- school

4
ADVANTAGES OF PROJECT

 There is a greater sense of security due to the fact that patrons do not actually
walk to and from their own space.
 It is highly feasible for extremely small sites that are unable to accommodate
a conventional ramped parking structure.
 There is high parking efficiency (i.e. sf/space and cf/space).
 There is no need for driving while looking for an available space.
 Emissions are greatly brought down and reduced.
 The patrons wait for their car in a highly controlled
environment.
 There are less chances for vehicle vandalism.
 There is a minimal staff requirement if it is used by known parkers.
 It is possible that the retrieval time is lower than the combined
driving/parking/walking time in conventional ramped parking structures.
There is an easier facade integration since there are no ramping floors or openings in
exterior walls.

5
LIMITATIONS OF PROJECT

 There is a greater construction cost per space (but this may be


offset by the chance for lesser land costs per space and the
system manufacturers say that the operating and maintenance
cost will be lower as compared to a conventional ramped parking
structure).
 Use of redundant systems will result in a greater cost.
 It may be a bit confusing for unfamiliar users.
 It is not recommended for high peak hour volume facilities.
 There may be a fear of breakdown (How do I get my car out?).
 There is an uncertain building department
review and approval process.
 It requires a maintenance contract with the supplier.

6
SOURCE CODE

#Import Time
import time

Vehicle_Number=['XXXX-XX-XXXX']
Vehicle_Type=['Bike']
vehicle_Name=['Intruder']
Owner_Name=['Unknown']
Date=['22-22-3636']
Time=['22:22:22']
bikes=100
cars=250
bicycles=78
def main():
global bikes,cars,bicycles
try:
while True:

print("----------------------------------------------------------------------------------------")
print("\t\tParking Management System")

print("----------------------------------------------------------------------------------------")
print("1.Vehicle Entry")
print("2.Remove Entry" )
print("3.View Parked Vehicle ")
print("4.View Left Parking Space ")
print("5.Amount Details ")
print("6.Bill")
print("7.Close Programme ")
print("+---------------------------------------------+")
ch=int(input("\tSelect option:"))
if ch==1:
no=True
while no==True:
Vno=input("\tEnter vehicle number (XXXX-XX-XXXX) - ").upper()

7
if Vno=="":
print("###### Enter Vehicle No. ######")
elif Vno in Vehicle_Number:
print("###### Vehicle Number Already Exists")
elif len(Vno)==12:
no=not True
Vehicle_Number.append(Vno)
else:
print("###### Enter Valid Vehicle Number ######")
typee=True
while typee==True:
Vtype=str(input("\tEnter vehicle
type(Bicycle=A/Bike=B/Car=C):")).lower()
if Vtype=="":
print("###### Enter Vehicle Type ######")
elif Vtype=="a":
Vehicle_Type.append("Bicycle")
bicycles-=1
typee=not True
elif Vtype=="b":
Vehicle_Type.append("Bike")
bikes-=1
typee=not True
elif Vtype=="c":
Vehicle_Type.append("Car")
cars-=1
typee=not True
else:
print("###### Please Enter Valid Option ######")
name=True
while name==True:
vname=input("\tEnter vehicle name - ")
if vname=="":
print("########Please Enter Vehicle Name ########")
else:
vehicle_Name.append(vname)
name=not True
o=True
while o==True:
OName=input("\tEnter owner name - ")
8
if OName=="":
print("###### Please Enter Owner Name ######")
else:
Owner_Name.append(OName)
o=not True
d=True
while d==True:
date=input("\tEnter Date (DD-MM-YYYY) - ")
if date=="":
print("###### Enter Date ######")
elif len(date)!=10:
print("###### Enter Valid Date ######")
else:
Date.append(date)
d=not True
t=True
while t==True:
time=input("\tEnter Time (HH:MM:SS) - ")
if t=="":
print("###### Enter Time ######")
elif len(time)!=8:
print("###### Please Enter Valid Date ######")
else:
Time.append(time)
t=not True
print("\n............................................................Record detail
saved..................................................................")
elif ch==2:
no=True
while no==True:
Vno=input("\tEnter vehicle number to Delete(XXXX-XX-XXXX) -
").upper()
if Vno=="":
print("###### Enter Vehicle No. ######")
elif len(Vno)==12:
if Vno in Vehicle_Number:
i=Vehicle_Number.index(Vno)
Vehicle_Number.pop(i)
Vehicle_Type.pop(i)
vehicle_Name.pop(i)
9
Owner_Name.pop(i)
Date.pop(i)
Time.pop(i)
no=not True
print("\n............................................................Removed
Sucessfully..................................................................")
elif Vno not in Vehicle_Number:
print("###### No Such Entry ######")
else:
print("Error")
else:
print("###### Enter Valid Vehicle Number ######")
elif ch==3:
count=0

print("--------------------------------------------------------------------------------------------
--------------------------")
print("\t\t\t\tParked Vehicle")

print("--------------------------------------------------------------------------------------------
--------------------------")
print("Vehicle No.\tVehicle Type Vehicle Name\t Owner Name\t
Date\t\tTime")

print("--------------------------------------------------------------------------------------------
--------------------------")
for i in range(len(Vehicle_Number)):
count+=1
print(Vehicle_Number[i],"\t ",Vehicle_Type[i],"\t
",vehicle_Name[i],"\t ",Owner_Name[i]," " ,Date[i]," ",Time[i])

print("--------------------------------------------------------------------------------------------
--------------------------")
print("------------------------------------------ Total Records -
",count,"-------------------------------------------------------")

print("--------------------------------------------------------------------------------------------
--------------------------")
elif ch==4:

print("--------------------------------------------------------------------------------------------

10
--------------------------")
print("\t\t\t\tSpaces Left For Parking")

print("--------------------------------------------------------------------------------------------
--------------------------")
print("\tSpaces Available for Bicycle - ",bicycles)
print("\tSpaces Available for Bike - ",bikes)
print("\tSpaces Available for Car - ",cars)

print("--------------------------------------------------------------------------------------------
--------------------------")
elif ch==5:

print("--------------------------------------------------------------------------------------------
--------------------------")
print("\t\t\t\tParking Rate")

print("--------------------------------------------------------------------------------------------
--------------------------")
print("*1.Bicycle Rs20 / Hour")
print("*2.Bike Rs40/ Hour")
print("*3.Car Rs60/ Hour")

print("--------------------------------------------------------------------------------------------
--------------------------")
elif ch==6:
print(".............................................................. Generating
Bill ..........................................................................")
no=True
while no==True:
Vno=input("\tEnter vehicle number to Delete(XXXX-XX-XXXX) -
").upper()
if Vno=="":
print("###### Enter Vehicle No. ######")
elif len(Vno)==12:
if Vno in Vehicle_Number:
i=Vehicle_Number.index(Vno)
no=not True
elif Vno not in Vehicle_Number:
print("###### No Such Entry ######")
else:

11
print("Error")
else:
print("###### Enter Valid Vehicle Number ######")
print("\tVehicle Check in time - ",Time[i])
print("\tVehicle Check in Date - ",Date[i])
print("\tVehicle Type - ",Vehicle_Type[i])
inp=True
amt=0
while inp==True:
hr=input("\tEnter No. of Hours Vehicle Parked - ").lower()
if hr=="":
print("###### Please Enter Hours ######")
elif int(hr)==0 and Vehicle_Type[i]=="Bicycle":
amt=20
inp=not True
elif int(hr)==0 and Vehicle_Type[i]=="Bike":
amt=40
inp=not True
elif int(hr)==0 and Vehicle_Type[i]=="Car":
amt=60
inp=not True
elif int(hr)>=1:
if Vehicle_Type[i]=="Bicycle":
amt=int(hr)*int(20)
inp=not True
elif Vehicle_Type[i]=="Bike":
amt=int(hr)*int(40)
inp=not True
elif Vehicle_Type[i]=="Car":
amt=int(hr)*int(60)
inp=not True
print("\t Parking Charge - ",amt)
ac=18/100*int(amt)
print("\tAdd. charge 18 % - ",ac)
print("\tTotal Charge - ",int(amt)+int(ac))
print("..............................................................Thank you for using our
service...........................................................................")
a=input("\tPress Any Key to Proceed - ")
elif ch==7:
print("..............................................................Thank you for using our
12
service...........................................................................")
print(" **********(: Bye Bye :)**********")
break
quit
except:
main()
main()

13
OUTPUT SCREENING

14
15
16
FUTURE ENHANCEMENT OF PROJECT

The smart parking industry continues to evolve as an increasing number of cities


struggle with traffic congestion and inadequate parking availability. While the
deployment of sensor technologies continues to be core to the development of
smart parking, a wide variety of other technology innovations are also enabling
more adaptable systems—including cameras, wireless communications, data
analytics, induction loops, smart parking meters, and advanced algorithms.

The future of the smart parking market is expected to be significantly influenced


by the arrival of automated vehicles (AVs). Several cities around the world are
already beginning to trial self-parking vehicles, specialized AV parking lots, and
robotic parking valets.

17
BIBLIOGRAPHY

https://www.google.co.in/

Spyder(python 3.9)

18

You might also like