0% found this document useful (0 votes)
20 views23 pages

Project 10 - Parking Management System

The document describes a parking management system project implemented using Python and MySQL. It includes functions for adding, viewing and removing parking and vehicle records from the database tables. The source code contains the functions and queries to perform CRUD operations on the database tables.

Uploaded by

rakeshkr24742836
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views23 pages

Project 10 - Parking Management System

The document describes a parking management system project implemented using Python and MySQL. It includes functions for adding, viewing and removing parking and vehicle records from the database tables. The source code contains the functions and queries to perform CRUD operations on the database tables.

Uploaded by

rakeshkr24742836
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

Submitted By: MANISH SINGH

VANSH TYAGI
PRINCE
ATUL

Parking system
PYTHON PROJECT

Class teacher:- SP Sharma Sir


session 2021-22(Term-2) CLASS 12

GBSSS_KHAJURI_KHAS
DELHI-90

PYTHON PROJECT

PARKING MANAGEMENT SYSTEM

SUBMITTED BY: Manish Singh


Vansh Tyagi
Atul
Prince
CS Practical File session 2021-22(Term-2) CLASS 12

Acknowledgement

I ,…………………………… of class XIIth, A roll no………………

would like to express my sincere gratitude to my computer

science teacher Mr.SP Sharma Sir for her vital support, guidance

and encouragement – without which this project would not have

come forth.

I would also like to express my gratitude to my school GBSSS

Khajuri Khas for letting me use the school laboratory.

Atul Page 2
session 2021-22(Term-2) CLASS 12

CERTIFICATE
CLASS: XII-A YEAR:2021-22

This is to certify that Investigatory Project is successfully


completed by ǥǤǤǥǥǥǥǥǥǥǤǤǤǤǤǤǤ of Class:XII ,Section: A .
Roll no ......................... for the academic year 2021-2022 in the
School Computer lab.
session 2021-22(Term-2) CLASS 12

INDEX

S. No Particular Page No.

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

MANISH SINGH SP SHARMA SIR GBSSS KHAJURI KHAS


session 2021-22(Term-2) CLASS 12

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

MANISH SINGH SP SHARMA SIR GBSSS KHAJURI KHAS


session 2021-22(Term-2) CLASS 12

RELATIONAL MODEL ,W¶V 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

MANISH SINGH SP SHARMA SIR GBSSS KHAJURI KHAS


session 2021-22(Term-2) CLASS 12

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.

MANISH SINGH SP SHARMA SIR GBSSS KHAJURI KHAS


session 2021-22(Term-2) CLASS 12

Source Code Of Project


import os
import platform
import mysql.connector
mydb=mysql.connector.connect(host="localhost",user="root",password="1234",databas
e='parking',auth_plugin="mysql_native_password")
mycursor=mydb.cursor()
def Add_Record():
L=[]
id1=int(input("Enter the parking number : "))
L.append(id1)
pname1=input("Enter the Parking Name: ")
L.append(pname1)
level1=input("Enter level of parking : ")
L.append(level1)
freespace1=input("Is there any freespace or not :YES/NO ")
L.append(freespace1)
vehicleno1=input("Enter the Vehicle Number : ")
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,pnm,level,freespace,vehicleno,nod,payment)
values(%s,%s,%s,%s,%s,%s,%s)')
mycursor.execute(sql,stud)
mydb.commit()
def Rec_View():
print("Select the search criteria : ")
print("1. Parking Number")

MANISH SINGH SP SHARMA SIR GBSSS KHAJURI KHAS


session 2021-22(Term-2) CLASS 12

print("2. Parking Name")


print("3. Level No")
print("4. All")
ch=int(input("Enter the choice : "))
if ch==1:
s=int(input("Enter Parking no : "))
rl=(s,)
sql="select * from parkmaster12 where pid=%s"
mycursor.execute(sql,rl)
res=mycursor.fetchall()
elif ch==2:
s=input("Enter Parking Name : ")
rl=(s,)
sql="select * from parkmaster12 where pnm=%s"
mycursor.execute(sql,rl)
res=mycursor.fetchall()
elif ch==3:
s=int(input("Enter Level of Parking : "))
rl=(s,)
sql="select * from parkmaster12 where level=%s"
mycursor.execute(sql,rl)
res=mycursor.fetchall()
elif ch==4:
sql="select * from parkmaster12"
mycursor.execute(sql)
res=mycursor.fetchall()
print("Details about Parking are as follows : ")
print("(Parking Id,Parking Name,Level,FreeSpace(Y/N),Vehicle No,No of days
for parking,Payment)")
for x in res:
print(x)
print('Task comple ted')
def Vehicle_Detail():
L=[]
vid1=int(input("Enter Vehicle No : "))
L.append(vid1)
vnm1=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(sql,vdt)
mydb.commit()
def Vehicle_View():

MANISH SINGH SP SHARMA SIR GBSSS KHAJURI KHAS


session 2021-22(Term-2) CLASS 12

vid1=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(sql,rl)
res=mycursor.fetchall()
for x in res:
print(x)
print('Task compelted')
def remove():
vid1=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')
def Menu():
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: "))
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:
print("Enter correct choice ... ")
Menu()
def runAgain():
runAgn=input('\nwant to run Again Y/n:')
while(runAgn.lower()=='y'):
if(platform.system()=='Windows'):
print(os.system('cls'))
else:

MANISH SINGH SP SHARMA SIR GBSSS KHAJURI KHAS


CS Practical File session 2021-22(Term-2) CLASS 12

print(os.system('clear'))
Menu()
runAgn=input('\nwant to run Again Y/n:')
runAgain()

Output Screening

MANISH SINGH SP SHARMA SIR GBSSS KHAJURI KHAS


CS Practical File session 2021-22(Term-2) CLASS 12

============== RESTART: C:\Users\user\Downloads\Parking System.py ==============

Enter 1 : 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 details of Vehicle

Please Select An Above Option: 1

Enter the parking number : 03

Enter the Parking Name: cs

Enter level of parking : 3

Is there any freespace or not :YES/NO YES

Enter the Vehicle Number : 4567

Enter total number of days for parking: 4

want to run Again Y/n:Y

want to run Again Y/n:y

Enter 1 : 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 details of Vehicle

Please Select An Above Option: 2

Select the search criteria :

MANISH SINGH SP SHARMA SIR GBSSS KHAJURI KHAS


CS Practical File session 2021-22(Term-2) CLASS 12

1. Parking Number

2. Parking Name

3. Level No

4. All

Enter the choice : 1

Enter Parking no : 03

(3, 'cs', '3', 'YES', '4567', '4', 80)

Task completed

Enter 1 : 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 details of Vehicle

Please Select An Above Option: 2

Select the search criteria :

1. Parking Number

2. Parking Name

3. Level No

4. All

Enter the choice : 2

Enter Parking Name : CS

(1, 'CS', '2', 'YES', '1234', '1', 20)

(2, 'CS', '3', 'YES', '2345', '4', 80)

(3, 'cs', '3', 'YES', '4567', '4', 80)

MANISH SINGH SP SHARMA SIR GBSSS KHAJURI KHAS


CS Practical File session 2021-22(Term-2) CLASS 12

(101, 'CS', '2', 'YES', '3404', '4', 80)

(102, 'CS', '3', 'YES', '5445', '1', 20)

(123, 'CS', '2', 'YES', '9090', '3', 60)

Task completed

Enter 1 : 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 details of Vehicle

Please Select An Above Option: 2

Select the search criteria :

1. Parking Number

2. Parking Name

3. Level No

4. All

Enter the choice : 3

Enter Level of Parking : 2

(1, 'CS', '2', 'YES', '1234', '1', 20)

(101, 'CS', '2', 'YES', '3404', '4', 80)

(123, 'CS', '2', 'YES', '9090', '3', 60)

Task completed

Enter 1 : To Add Parking Detail

Enter 2 : To View Parking Detail

MANISH SINGH SP SHARMA SIR GBSSS KHAJURI KHAS


CS Practical File session 2021-22(Term-2) CLASS 12

Enter 3 : To Add Vehicle Detail

Enter 4 : To Remove Vehicle Record

Enter 5 : To see the details of Vehicle

Please Select An Above Option: 2

Select the search criteria :

1. Parking Number

2. Parking Name

3. Level No

4. All

Enter the choice : 4

Details about Parking are as follows :

(Parking Id,Parking Name,Level,FreeSpace(Y/N),Vehicle No,No of days for parking,Payment)

(1, 'CS', '2', 'YES', '1234', '1', 20)

(2, 'CS', '3', 'YES', '2345', '4', 80)

(3, 'cs', '3', 'YES', '4567', '4', 80)

(101, 'CS', '2', 'YES', '3404', '4', 80)

(102, 'CS', '3', 'YES', '5445', '1', 20)

(123, 'CS', '2', 'YES', '9090', '3', 60)

Task completed

MANISH SINGH SP SHARMA SIR GBSSS KHAJURI KHAS


session 2021-22(Term-2) CLASS 12

Software & Hardware Requirement

SOFTWARE SPECIFICATION: -
Operating System: Windows 7/8/10
Platform: Python IDLE 3.9/3.10
Database: MySQL
Language: Python

HARDWARE SPECIFICATION: -

Processor: Dual Core & Above


Hard Disk: 128GB
RAM: Atleast 1GB

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


used:- Host- localhost, user- root, password- 1234, database- parking

MANISH SINGH SP SHARMA SIR GBSSS KHAJURI KHAS


session 2021-22(Term-2) CLASS 12

Advantages Of Project

x There is a greater sense of security due to the fact that


patrons do not actually walk to and from their own space.
x It is highly feasible for extremely small sites that are unable
to accommodate a conventional ramped parking structure.
x There is high parking efficiency (i.e. sf/space and cf/space).
x There is no need for driving while looking for an available
space.
x Emissions are greatly brought down and reduced.
x The patrons wait for their car in a highly controlled
environment.
x There are less chances for vehicle vandalism.
x There is a minimal staff requirement if it is used by known
parkers.
x 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.

MANISH SINGH SP SHARMA SIR GBSSS KHAJURI KHAS


session 2021-22(Term-2) CLASS 12

Limitations Of Project
x 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).
x Use of redundant systems will result in a greater cost.
x It may be a bit confusing for unfamiliar users.
x It is not recommended for high peak hour volume facilities.
x There may be a fear of breakdown (How do I get my car
out?).
x There is an uncertain building department review and
approval process.
x It requires a maintenance contract with the supplier.

MANISH SINGH SP SHARMA SIR GBSSS KHAJURI KHAS


CS Practical File session 2021-22(Term-2) CLASS 12

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.

MANISH SINGH SP SHARMA SIR GBSSS KHAJURI KHAS


CSPROJECT FILE SESSION 2021-22 TERM-2 CLASS-12

TESTING
Software Testing is an empirical investigation conducted to provide
With Information about the quality of the product or service under
test stakeholders a with respect to the context which it is intended to
operate. Software Testing also provides an objective, independent
view of the software to allow the business to appreciate and
understand the risks at implementation of the software. Test
techniques include, but are not limited to, the process of executing a
program or application with the intent of finding software bugs. It can
also be stated as the process of validating and verifying that a
software program/application/product meets the business and
technical requirements that guided its design and development, so
that it works as expected and can be implemented with the same
characteristics. Software Testing, depending on the testing method
employed, can be implemented at any time in the development
process, however the most test effort is employed after the
requirements have been defined and coding process has been
completed.

TESTING METHODS
Software testing methods are traditionally divided into black box
testing. These one approaches are used to describe the point of view
that a test engineer takes when designing test cases.

BLACK BOX TESTING


Black box testing treats the software as a "black box, without any
knowledge of internal implementation. Black box testing methods
include: equivalence partitioning, boundary value analysis, all-pairs
testing, fuzz testing, model-based testing, traceability matrix,
exploratory testing and specification-based testing.

MANISH SINGH S P SHARMA SIR GBSSS KHAJOORI KHAS


CSPROJECT FILE SESSION 2021-22 TERM-2 CLASS-12

SPECIFICATION-BASED TESTING
Specification-based testing aims to test the functionality of software
according to the applicable requirements. Thus, the tester inputs data
into, and only sees the output from the test object. This level of
testing usually requires through test cases to be provided to the
tester, who they test that for a given input. The output value (or
behaviour), either RUUPE value specified in the test case.
Specification-based testing is necessary, but it is insufficient to guard
against certain risks.

ADVANTAGES AND DISADVANTAGES


The black box tester has no "bonds" with the code, and a tester's
perception is very simple: a code must have bugs using the principle.
"Ask and you shall receive." black box testers find bugs where
programmers don't. But, on the other hand, black box testing has
been said to be like a walk in a dark labyrinth without a flashlight,
because the tester doesn't know how the software being tested was
actually constructed. That's why there are situations when (1) a black
box tester writes many test cases to check something that can be
tested by only one test case, and/or (2) some parts of the back end
are not tested at all. Therefore, black box testing has the advantage of
"an unaffiliated opinion," on the one hand, and the disadvantage of
"blind exploring," on the other.

MANISH SINGH S P SHARMA SIR GBSSS KHAJOORI KHAS


CSPROJECT FILE SESSION 2021-22 TERM-2 CLASS-12

REFRENCE

1. python.org
2. S P SHARMA CLASSES App and Website
3. YouTube
4. Our Subject Teacher S P Sharma Sir
5. Preeti Arora and Sumita Arora python class
12 Book
6. LearnPython.org
7. Google

MANISH SINGH S P SHARMA SIR GBSSS KHAJOORI KHAS

You might also like