CS Project 12A
CS Project 12A
CERTIFICATE EXAMINATION
AISSCE
SESSION 2021-22
BIRLA SCHOOL, PILANI
Computer Project On
PARKING MANAGEMENT
SYSTEM
I of Class XII A
feel immense pleasure for
presenting my Project for the
session 2021-22.
First of all I am thankful to my
Principal Mr. Dhirendra Singh who
gave me this golden opportunity to
present this project in the form of
Python Program. I am also thankful
to my Computer Science teacher
Mr. Dushyant Kumar who guided
me while preparing it. I want to
express my deep gratitude to my
family and friends who helped me in
accomplishing this task.
CERTIFICATE
Teacher’s Signature
Mr. Dushyant Kumar
Department of Computer Sc.
Birla School, Pilani
INDEX
S Content Page
no. no.
1. Introduction to the topic 1,2
2. System Development 3-5
Life Cycle
3. Advantages of Project 5-6
4. Limitations of Project 6
5. Source Code 7-11
6. Output Screening 12-
13
7. Software testing 14-
15
8 Hardware and 15
Software Requirement
9. Bibliography 16
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.
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
SYSTEM DEVELOPMENT LIFE CYCLE (SDLC)
PLANNING PHASE
This phase formally defines the detailed functional user requirements using
high-level requirements identified in the Initiation, System Concept, and
Planning phases. It also delineates the requirements in terms of data, system
performance, security, and maintainability requirements for the system. The
requirements are defined in this phase to alevel of detail sufficient for systems
design to proceed. They need to be measurable, testable, and relate to the
business need or opportunity identified in the Initiation Phase. The
requirements that will be used to determine acceptance of the system are
captured in the Test and Evaluation MasterPlan.
Advantages Of Project
Limitations Of Project
import platform
import mysql.connector
mydb=mysql.connector.connect(host="localhost",user="root",password="root",datab
ase='parking')
mycursor=mydb.cursor()
defAdd_Record():
L=[]
L.append(id1)
L.append(pname1)
L.append(level1)
L.append(freespace1)
L.append(vehicleno1)
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=120
L.append(Payment1)
stud=(L)
mycursor.execute(sql,stud)
mydb.commit()
defRec_View():
print("4. All")
if ch==1:
rl=(s,)
mycursor.execute(sql,rl)
res=mycursor.fetchall()
elifch==2:
s=input("Enter Parking Name : ")
rl=(s,)
mycursor.execute(sql,rl)
res=mycursor.fetchall()
elifch==3:
rl=(s,)
mycursor.execute(sql,rl)
res=mycursor.fetchall()
elifch==4:
mycursor.execute(sql)
res=mycursor.fetchall()
for x in res:
print(x)
defVehicle_Detail():
L=[]
L.append(vid1)
L.append(vnm1)
dateofpur1=input("Enter Year-Month-date of purchase : ")
L.append(dateofpur1)
vdt=(L)
mycursor.execute(sql,vdt)
mydb.commit()
defVehicle_View():
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,)
mycursor.execute(sql,rl)
res=mycursor.fetchall()
for x in res:
print(x)
print('Task compelted')
defremove():
rl=(vid1,)
mycursor.execute(sql,rl)
mydb.commit()
defMenu():
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()
defrunAgain():
while(runAgn.lower()=='y'):
if(platform.system()=='Windows'):
print(os.system('cls'))
else:
print(os.system('clear'))
Menu()
TESTING METHODS
Software testing methods are traditionally divided into black box testing and
white box testing. These two approaches are used to describe the point of
view that a test engineer takes when designing test cases.
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.
SPECIFICATION-BASED TESTING
White box testing, by contrast to black box testing, is when the tester has
access to the internal data structures and algorithms (and the code that
implement these) Types of white box testing:- The following types of white box
testing exist: api testing - Testing of the application using Public and Private
APIs. Code coverage - creating tests to satisfy some criteria of code coverage.
For example, the test designer can create tests to cause all statements in the
program to be executed at least once. fault injection methods. mutation
testing methods. static testing - White box testing includes all static testing.
White box testing methods can also be used to evaluate the completeness of a
test suite that was created with black box testing methods. This allows the
software team to examine parts of a system that are rarely tested and ensures
that the most important function points have been tested.
www.google.com
python.org
https://pythontrends.wordpress.com