Parking
Parking
Parking
PARKING
PARKING MANAGEMENT SYSTEM
INDEX
Sr. No Particular
1 Brief overview of project
2 Need of computerization
3 Software and hardware requirement
4 Advantages of project
5 Limitations of project
6 Source code of project
7 Output screening
8 Future enhancement of project
9 Bibliography
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 has3 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.
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 File
Need Of Computerization
SOFTWARE SPECIFICATION: -
Operating System:Windows 7
Platform:Python IDLE 3.7
Database: MySQL
Language: Python
HARDWARE SPECIFICATION: -
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.
Source codescreening
DBMS: MySQL
Host: local host
User: root
Pass: root
Database: parking
SOURCE CODE:
#create vehicle
import os
import platform
import mysql.connector
mydb=mysql.connector.connect(host="localhost",user="root",password="
root",database='parking')
mycursor=mydb.cursor()
def Add_Record():
L=[]
L.append(id1)
L.append(pname1)
L.append(level1)
L.append(freespace1)
L.append(vehicleno1)
nod1=int(input("Enter total number of days for parking: "))
L.append(nod1)
if nod1==1:
Payment1=20
elif nod1==2:
Payment1=40
elif nod1==3:
Payment1=60
elif nod1==4:
Payment1=80
elif nod1==5:
Payment1=100
elif nod1==6:
Payment1=6969
L.append(Payment1)
stud=(L)
sql='insert into
parkmaster12(pid,pname,level,freespace,vehicleno,nod,payment)
values(%s,%s,%s,%s,%s,%s,%s)'
mycursor.execute(sql,stud)
mydb.commit()
def Rec_View():
print("4. All")
if ch==1:
rl=(s,)
mycursor.execute(sql,rl)
res=mycursor.fetchall()
elif ch==2:
rl=(s,)
mycursor.execute(sql,rl)
res=mycursor.fetchall()
elif ch==3:
rl=(s,)
mycursor.execute(sql,rl)
res=mycursor.fetchall()
elif ch==4:
res=mycursor.fetchall()
for x in res:
print(x)
def Vehicle_Detail():
L=[]
L.append(vid1)
L.append(vnm1)
L.append(dateofpur1)
vdt=(L)
mycursor.execute(sql,vdt)
mydb.commit()
def Vehicle_View():
sql='select
parkmaster12.pid,parkmaster12.pname,parkmaster12.vehicleno,
vehicle.vid,vehicle.vname from parkmaster12 INNER JOIN vehicle ON
parkmaster12.pid=vehicle.vid and vehicle.vid=%s'
rl=(vid1,)
mycursor.execute(sql,rl)
res=mycursor.fetchall()
for x in res:
print(x)
print('Task compelted')
def remove():
rl=(vid1,)
mycursor.execute(sql,rl)
mydb.commit()
def Menu():
if(input_dt== 1):
Add_Record()
elif (input_dt==2):
Rec_View()
elif (input_dt==3):
Vehicle_Detail()
elif (input_dt==4):
remove()
elif (input_dt==5):
Vehicle_View()
else:
Menu()
def runAgain():
while(runAgn.lower()=='y'):
if(platform.system()=='Windows'):
print(os.system('cls'))
else:
print(os.system('clear'))
Menu()
runAgain()
OUTPUT SCREEN
Future Enhancement Of Project
1. http://www.google.com/
2. http://en.wikipedia.org
by Sumita Arora