0 ratings0% found this document useful (0 votes) 29 views19 pagesComputer Science Project
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
PYTHON PROJECT
PARKING MANAGEMENT SYSTEM
SUBMITTED BY- Mr.Alok Patil
Mr.Mohit PatelAcknowledgement
would like to express my sincere gratitude to my computer
science teacher Ms.APARNA DHIRDE,PGT COMPUTER
SCIENCE, for her vital support, guidance and encouragement —
without which this project would not have come forth.
| would also like to express my gratitude to my school KENDRIYA
VIDYALAYA _AMBARNATH for letting me use the school
laboratory.INDEX
Sr. No
Particular
Page No.
Brief overview of project
Need of computerization
Software and hardware requirement
Advantages of project
Limitations of project
Source code of project
Output screening
Future enhancement of project
©) oe NJ of af a] oe]
BibliographyIntroduction
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 rowsof 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.
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 DB MS: -
+ 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 FileNeed 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.Software & Hardware Requirement
SOFTWARE SPECIFICATION: -
Operating System: Windows 7
Platform: Python IDLE 3.7
Database: MySQL
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- schoolAdvantages 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.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 | get my car
out?).
There is an uncertain building department review and
approval process.
It requires a maintenance contract with the supplier.Source Code Of Project
import os
import platform
import mysql.connector
mydb=mysql.connector.connect(host="localhost" user="root” ,password="ro
mycursor=mydb.cursor()
defAdd_Record():
l=]
id4=int(input("Enter the parking number : "))
L.append(id1)
pname'=input("Enter the Parking Name: ")
L.append(pname1)
level1=input("Enter level of parking : ")
Lappend(level1)
freespace1=input("Is there any freespace or not : YES/NO ")
L.append(freespace)
vehicleno1=input("Enter the Vehicle Number : ")
L.append(vehiclenot)
nod1=int(input("Enter total number of days for parking: "))L.append(nod1)
if nod1==
Payment1=20
elif nod1==2:
Payment1=40
elif nod1==3:
Payment1=60
elif nod
Paymentt=80
5:
elif nod1
Payment1=100
elif nod1==6:
Payment1=120
L.append(Payment1)
stud=(L)
sql='insert into
parkmaster12(pid,pnm, level, freespace, vehicleno,nod, payment)
values(%s,%S8,%8,%8,%S,%8,%8)'
mycursor.execute(sq],stud)
mydb.commit()
defRec_View():
print("Select the search criteria : ")print("4. Parking Number")
print("2. Parking Name")
print("3. Level No")
print("4. All")
ch=int(input(‘Enter the choice :"))
if oh
s=int(input("Enter Parking no : "))
rl=(s,)
sql="select * from parkmaster12 where pid=%s"
mycursor.execute(sqj,rl)
res=mycursor fetchall()
elifch
s=input("Enter Parking Name : ")
nlF(s,)
sql="select * from parkmaster12 where pnm=%s"
myoursor.execute(sqj,rl)
res=mycursor.fetchall()
elifch==3:
s=int(input("Enter Level of Parking : "))
rl=(s,)
sql="select * from parkmaster12 where level=%s"
mycursor.execute(sq],rl)
res=mycursor-fetchall()elifch==4:
sql="select * from parkmaster12"
mycursor.execute(sql)
res=mycursor.fetchall()
print("Details about Parking are as follows : ")
print("(Parking Id,ParkingName,Level,FreeSpace(Y/N),Vehicle No,No of
days for parking,Payment)")
for x in res:
print(x)
print(‘Task comple ted’)
defVehicle_Detail():
l=]
vid4=int(input("Enter Vehicle No : "))
L.append(vid1)
ynm1=input("Enter Vehicle Name/Model Name :
L.append(vnm1)
dateofpur1=input("Enter Year-Month-date of purchase : ")
L.append(dateofpur1)
vdt=(L)
sql="insert into vehicle(pid,vnm,dateofpur) values(%s,%s,%s)"
mycursor.execute(sq],vdt)
mydb.commit()
defVehicle_View():vid4=int(input("Enter the vehicle number of the vehicle whose details is
to be viewed : "))
sql="select parkmaster12.pid,parkmaster12.pnm,parkmaster12.vehicleno,
vehicle.pid,vehicle._vnm from parkmaster12 INNER JOIN vehicle ON
parkmaster12.pid=vehicle.pid and vehicle.pid=%s"
rl=(vid1,)
print(‘The following are the detailes you wanted:’)
mycursor.execute(sqj,rl)
res=mycursor.fetchall()
for x in res:
print(x)
print(‘Task compelted’)
defremove():
vid4=int(input("Enter the vehicle number of the vehicle to be deleted : "))
rl=(vid1,)
sql="Delete from vehicle where pid=%s"
mycursor.execute(sql,rl)
mydb.commit()
print((Removed as per the command’)
defMenu():
print("Enter 1 : To Add Parking Detail”)
print("Enter 2 : To View Parking Detail ")
print("Enter 3 : To Add Vehicle Detail ")
print("Enter 4 : To Remove Vehicle Record")print("Enter 5 : To see the details of Vehicle")
input_dt = int(input("Please Select An Above Option: "))
iffinput_dt== 1):
Add_Record()
elif (input_dt==2):
Rec_View()
elif (input_dt==3):
Vehicle_Detail()
4)
elif (input_dt:
remove()
elif (input_dt==5):
Vehicle_View()
else:
print("Enter correct choice.
Menu()
defrunAgain()
runAgn=input(\nwant to run Again Yin:')
while(runAgn.lower()=='y)
if(platform.system()=="Windows'):
print(os.system(‘cls’))
else:
print(os.system(‘clear’))
Menu()runAgn=input(‘inwant to run Again Y/n:') runAgain()
Output Screening
CTE
Ho
NeLB Python 5.0.0 She - a
File Edit Shell Debug Options Window Help
Python 3.7.0 (v3.7. C:1bbfOccS093, Jun 27 2018, 04-06-47; [MISC v.1914 32 bit Intel] on wvin32
Type “copyright”, “credits* or “hcense(}" fer more information.
RESTART: C\Users' Mohit\Downloads\Pythonsparkingmangaementpay mentcoracted.py
RESTART: CUsers'Mohit\Downloads\Python:parkingmangeementpaymentcorrected. py
Enter |: To Add Parking Detail
Enter 2: To View Parking Detail
Enter 3. To Add Vehicle Detail
Enter 4: To Remove Vehicle Record
Enter 5: To see the detail of Vehicle
Please Select An Above Option: |
Enter the perking number: 123
Enter the Parking Name: CS.
Enter level of parking = 2
Is there any frees pace or nat -YES/NO YES
Enter the Vehicle Number : 4545
Enter total number of days for parking: 4
want to run Again Yro:
Ls -Pyanon 3.7.0 shett™ - 0
File Edit Shell Debug Option: viindew Help
Python 3.7.0 \v3.7.0:1bf9eeS083, Jun 27 2018, 04.06.47} [MSC v.1914 32 bit Intel] on win 52
Type "copyright", "credits’ or "icensel}" for more information
RESTART: CA Users Mohit De.
Enter 1: To Ade Parking Detail
Enter 2: To View Parking Detail
Enter 3 To Acid Vehicle Detail
Enter 4, To Remove Vehkle Record
Enter 5 | Io see the details of Venice
Please Salect An Above Option: 2
Select the search criteria
1 Parking Number
2 Parking Name
3. Lavell No:
all
Enter the choke:
Details about Parking are as follows
{Parking Id,Parking Name, Level,FreeSpacel¥’N}.Vehicle No No of days for parking, Payment!
§123-°CS. "2, ‘VES. '4545,, 4" 80)
Task comple ted
ploads:Pytho niparkingmangaementpaymentes rected. py
want to run Again Yea}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 valetsBibliography
www.google.com
https ://pythontrends.wordpress.com
BOOK ~ Python by Sumita Arora