SlideShare ist ein Scribd-Unternehmen logo
1 von 12
2012
Name :- Farooq Mian
ID No :- 113323
B.S.C.S (3rd Semester)
Teacher :- Sir Usman Sattar
12/25/2012
Database Management System
PROJECT
Table of Contents
1. Introduction
2. Scope
3. Objective
4. Vehicle Parking system
5. Data Flow Diagrams (DFD)
6. Entity Relationship Diagrams (E-RD)
7. Relational Database model
8. Queries
9. Select Statement (Views)
10. Interfacing in Visual Studio
ACKNOWLEDGEMENT
In the beginning, I would like to thank ALMIGHTY ALLAH, the most merciful and
beneficent, for giving me the strength to complete my project with full
determination.
I would like to thank my teacher Sir Usman Sattar who gave me this opportunity and
encouraged me by assigning this project; Without their help and guidance I would
have not completed this assignment. I believe in future these efforts will pay off.
INTRODUCTION
This project is about “Vehicle Parking system” of any plaza or
mall, its a automatic recepit generated software with every essential details.
SCOPE
As we all know that the world is advancing day by day new technologies
come and go, many new methods are been introduced almost daily, therefore, the
demand of the new systems have been increased in every organization old systems
have been replaced by new systems, the question is why? Its because every
organization demands excellent quality work more profit to be earned in short span
of time, to gain as much market trust as they can, and not to forget as quick they
can so they can compete with other organizations. New systems should be
i. User friendly
ii. More efficient
iii. They should provide security
iv. Fast
As these four are mentioned, my idea will be based upon these.
OBJECTIVE + PROBLEM
As the world is facing many thread’s daily, robbries are done easily
with no track to trace, bomb blasts occur with the use of car, so if a proper system is
adopted each and every record can be saved and anyone can be track easily
therefore mainly is to make a better and fast software, most important user-friendly.
Vehicle Parking System
Flow:-
A vehicle is entering the typist type vehicle_type, registration_no,
date, time_in (time of vehicle entered). And an auto generated slip_no is given to
the specific car; now vehicle is exiting after some sum of amount for which we have
different rates, the customer returns us the slip from there we only type the slip_no
on the system and all the previous information will pop up with some more which
are following time_out (time of vehicle exiting), total_time (calculated from time_in
and time_out), total_amount (which is based upon total_time), this is the whole
process which is converted into computer language.
Data Flow Diagram (DFD):-
Following is the DFD of the system.
Vehicle_type Rates
Vehicle_info
Parking System
Processing
Vehicle Type
1- Car
2- Bike
Hourly rates
Finallyafterthe processing
the record issavedin
Vehicle_info
Entity Relationship Diagram (E-RD):-
Following is the E-RD diagram of the system
One vehicle will is either a car or bike, and its calculated amount can be only one amount
therefore, Its 1 to 1 relationship between tables.
Vehicle_type
T_id
V_type
Rates
R_id
R_per_hour
R_s
Vehicle_info
Slip_no
V_type
Registration_no
Date
Time_in
Time_out
Amount
Relational Datamodel:-
Look-up Tables:-
 Vehicle_type
 Rates
R_id R_per_hour R_s
1 0.00 - 1.10 10
2 0.00 - 2.00 20
3 0.00 - 3.00 30
4 0.00 - 4.00 40
5 0.00 - 5.00 50
Main Table:-
 Vehicle_info
Slip_no T_id Registration_no Date Time_in Time_out
1 1 LEX – 1313 From sys From sys From sys
2 1 LZY – 1790 From sys From sys From sys
I prefer the Denormalization concept for my project as i don’t think an normalization
is needed for such a project.
T_id V_type
1 Car
2 Bike
* and so on records will be saved a IF statement
will be required to calculate total amount from
time_in & time_out
Queries:-
Following are the queries from which these tables are created and random data is
inserted into it.
 Query to create Database
CREATE DATABASE vehicle_parking_project
 Query to create table (vehicle_type)
CREATE TABLE vehicle_type
(
t_id INT IDENTITY NOT NULL PRIMARY KEY,
v_type char(5)
)
 Query to insert data into table (vehicle_type)
INSERT INTO vehicle_type
VALUES ('Car')
INSERT INTO vehicle_type
VALUES ('Bike')
 Query to create table (rates)
CREATE TABLE rates
(
r_id INT IDENTITY NOT NULL PRIMARY KEY,
r_per_hour char(10),
r_s INT
)
 Query to insert data into table (rates)
INSERT INTO rates
VALUES ('0.00-1.10',10)
INSERT INTO rates
VALUES ('0.00-2.00',20)
INSERT INTO rates
VALUES ('0.00-3.00',30)
INSERT INTO rates
VALUES ('0.00-4.00',40)
INSERT INTO rates
VALUES ('0.00-5.00',50)
 Query to create main table (Vehicle_info)
CREATE TABLE vehicle_info
(
slip_no INT IDENTITY NOT NULL PRIMARY KEY,
v_type INT NOT NULL FOREIGN KEY REFERENCES
vehicle_type (t_id),
register_no CHAR(10),
date DATETIME NOT NULL DEFAULT GETDATE(),
time_in DATETIME NOT NULL DEFAULT GETDATE(),
time_out DATETIME DEFAULT GETDATE(),
total_amount INT FOREIGN KEY REFERENCES rates (r_id)
)
 Query to insert values into table (Vehicle_info)
INSERT INTO vehicle_info
VALUES (1,'LEX 1313',GETDATE(),GETDATE(),NULL,1)
INSERT INTO vehicle_info
VALUES (2,'LEZ 1234',GETDATE(),GETDATE(),NULL,3)
INSERT INTO vehicle_info
VALUES (1,'FDL 4444',GETDATE(),GETDATE(),NULL,1)
INSERT INTO vehicle_info
VALUES (1,'LZ 2323',GETDATE(),GETDATE(),NULL,2)
INSERT INTO vehicle_info
VALUES (2,'LZY 7777',GETDATE(),GETDATE(),NULL,2)
INSERT INTO vehicle_info
VALUES (2,'LXL 1790',GETDATE(),GETDATE(),NULL,1)
INSERT INTO vehicle_info
VALUES (1,'LHM 6993',GETDATE(),GETDATE(),NULL,1)
SELECT:-
Following are the select statement queries which includes joins etc, to show
the info in desired format.
1. Standard view of table vehicle_type
SELECT *
FROM vehicle_type
2. Standard view of table rates
SELECT *
FROM rates
3. Standard view of table vehicle_type
SELECT *
FROM vehicle_info
4. Vehicle type car
SELECT *
FROM vehicle_info
WHERE v_type = 1
5. Vehicle type bike
SELECT *
FROM vehicle_info
WHERE v_type = 2
6. Rates of all vehicle
SELECT vehicle_info.register_no,rates.r_s
FROM vehicle_info
JOIN rates
ON vehicle_info.total_amount = rates.r_id
7. Rate of car LEX 1313
SELECT vehicle_info.register_no,r_s
FROM rates
JOIN
(vehicle_type JOIN vehicle_info
ON vehicle_info.v_type = vehicle_type.t_id)
ON rates.r_id = vehicle_info.total_amount
WHERE vehicle_info.register_no = 'LEX 1313'
8. Total amount calculated
SELECT SUM(r_s)AS Whole_total
FROM rates
JOIN vehicle_info
ON vehicle_info.total_amount = rates.r_id
INTERFACING:
Following are the images which of interfacing the project.
*This is optional as interfacing is not of this course.
First image shows the home page of the software which through which our
software will be operated, like if we want to enter the vehicle we click on
vehicle enter and another form will be open.
Second form opens and vehicle entering form is filled with some mannual
and some automatic enteries i.e date and time_in
This third form is for when vehicle is exiting we just enter the slip no and all
information is shown to us after receiving the money we only press save.

Weitere ähnliche Inhalte

Was ist angesagt?

Bus Fleet Management and Tracking System
Bus Fleet Management and Tracking SystemBus Fleet Management and Tracking System
Bus Fleet Management and Tracking System
Avinash Muralidaran
 
Vehicle management system
Vehicle management systemVehicle management system
Vehicle management system
Mohd Saddam
 
Smart car parking system final
Smart car parking system finalSmart car parking system final
Smart car parking system final
silveroak engineering collage
 
VEHICLE MANAGEMENT SYSTEM
VEHICLE MANAGEMENT SYSTEMVEHICLE MANAGEMENT SYSTEM
VEHICLE MANAGEMENT SYSTEM
Akash Koul
 

Was ist angesagt? (20)

Bus Fleet Management and Tracking System
Bus Fleet Management and Tracking SystemBus Fleet Management and Tracking System
Bus Fleet Management and Tracking System
 
VEHICLE MANAGEMENT SYSTEM
VEHICLE MANAGEMENT SYSTEMVEHICLE MANAGEMENT SYSTEM
VEHICLE MANAGEMENT SYSTEM
 
vehicle management system project
vehicle management system projectvehicle management system project
vehicle management system project
 
Online parking
Online parkingOnline parking
Online parking
 
Final year project working documentation 2020
Final year project working documentation 2020Final year project working documentation 2020
Final year project working documentation 2020
 
ER diagrams for Railway reservation system
ER diagrams for Railway reservation systemER diagrams for Railway reservation system
ER diagrams for Railway reservation system
 
Project report vehicle management system
Project report vehicle management systemProject report vehicle management system
Project report vehicle management system
 
DE - Smart Parking System.pptx
DE - Smart Parking System.pptxDE - Smart Parking System.pptx
DE - Smart Parking System.pptx
 
Vehicles Parking Management System project presentation 2020
Vehicles Parking Management System project presentation 2020Vehicles Parking Management System project presentation 2020
Vehicles Parking Management System project presentation 2020
 
Vehicle management system
Vehicle management systemVehicle management system
Vehicle management system
 
Smart car parking system final
Smart car parking system finalSmart car parking system final
Smart car parking system final
 
Parking management system ppt
Parking management system pptParking management system ppt
Parking management system ppt
 
vehicle management system project report
vehicle management system project reportvehicle management system project report
vehicle management system project report
 
Smart parking
Smart parkingSmart parking
Smart parking
 
Synopsis for Online Railway Railway Reservation System
Synopsis for Online Railway Railway Reservation SystemSynopsis for Online Railway Railway Reservation System
Synopsis for Online Railway Railway Reservation System
 
Online bus ticket booking
Online bus ticket bookingOnline bus ticket booking
Online bus ticket booking
 
Cab booking system india
Cab booking system indiaCab booking system india
Cab booking system india
 
Project Proposal Presentation-C.O.D.E-7 Solutions
Project Proposal Presentation-C.O.D.E-7 SolutionsProject Proposal Presentation-C.O.D.E-7 Solutions
Project Proposal Presentation-C.O.D.E-7 Solutions
 
VEHICLE MANAGEMENT SYSTEM
VEHICLE MANAGEMENT SYSTEMVEHICLE MANAGEMENT SYSTEM
VEHICLE MANAGEMENT SYSTEM
 
RESERVATION BASED PARKING SYSTEM USING SMS
RESERVATION BASED PARKING SYSTEM USING SMS RESERVATION BASED PARKING SYSTEM USING SMS
RESERVATION BASED PARKING SYSTEM USING SMS
 

Ähnlich wie Vehicle Parking System Project

IFESFinal58
IFESFinal58IFESFinal58
IFESFinal58
anish h
 
Etaxi Documentation
Etaxi DocumentationEtaxi Documentation
Etaxi Documentation
M.Saber
 
E Governance Design & Implementation
E Governance Design & ImplementationE Governance Design & Implementation
E Governance Design & Implementation
ncct
 

Ähnlich wie Vehicle Parking System Project (20)

Online vehicle renting website
Online vehicle renting websiteOnline vehicle renting website
Online vehicle renting website
 
Railway reservation(c++ project)
Railway reservation(c++ project)Railway reservation(c++ project)
Railway reservation(c++ project)
 
Project report
Project report Project report
Project report
 
Project synopsis.
Project synopsis.Project synopsis.
Project synopsis.
 
ASE
ASEASE
ASE
 
Railway reservation(c++ project)
Railway reservation(c++ project)Railway reservation(c++ project)
Railway reservation(c++ project)
 
IFESFinal58
IFESFinal58IFESFinal58
IFESFinal58
 
GPS based Bus management system
GPS based Bus management systemGPS based Bus management system
GPS based Bus management system
 
Real Time Connected Vehicle Networking with HDInsight and Apache Storm
Real Time Connected Vehicle Networking with HDInsight and Apache StormReal Time Connected Vehicle Networking with HDInsight and Apache Storm
Real Time Connected Vehicle Networking with HDInsight and Apache Storm
 
Etaxi Documentation
Etaxi DocumentationEtaxi Documentation
Etaxi Documentation
 
Car Parking System
Car Parking SystemCar Parking System
Car Parking System
 
Visual c
Visual cVisual c
Visual c
 
Experiments and Results on Click stream analysis using R
Experiments and Results on Click stream analysis using RExperiments and Results on Click stream analysis using R
Experiments and Results on Click stream analysis using R
 
Bus transportation query report
Bus transportation query reportBus transportation query report
Bus transportation query report
 
E Governance Design & Implementation
E Governance Design & ImplementationE Governance Design & Implementation
E Governance Design & Implementation
 
CAR BLACK BOX SYSTEM
CAR BLACK BOX SYSTEMCAR BLACK BOX SYSTEM
CAR BLACK BOX SYSTEM
 
Information system infrastructure
Information system infrastructureInformation system infrastructure
Information system infrastructure
 
Determination and visualization of density210409
Determination and visualization of density210409 Determination and visualization of density210409
Determination and visualization of density210409
 
Implementing a data_science_project (Python Version)_part1
Implementing a data_science_project (Python Version)_part1Implementing a data_science_project (Python Version)_part1
Implementing a data_science_project (Python Version)_part1
 
CAR PARKING SYSTEM USING VISUAL STUDIO C++ (OPERATING SYSTEM MINI PROJECT )
CAR PARKING SYSTEM USING VISUAL STUDIO C++ (OPERATING SYSTEM MINI PROJECT ) CAR PARKING SYSTEM USING VISUAL STUDIO C++ (OPERATING SYSTEM MINI PROJECT )
CAR PARKING SYSTEM USING VISUAL STUDIO C++ (OPERATING SYSTEM MINI PROJECT )
 

Mehr von Farooq Mian (9)

DFD
DFDDFD
DFD
 
Scrum Model
Scrum ModelScrum Model
Scrum Model
 
Theory of Automata
Theory of AutomataTheory of Automata
Theory of Automata
 
Basic Web Page, Twitter, Facebook introduction
Basic Web Page, Twitter, Facebook introduction Basic Web Page, Twitter, Facebook introduction
Basic Web Page, Twitter, Facebook introduction
 
Business Report Writing
Business Report WritingBusiness Report Writing
Business Report Writing
 
Database Join
Database JoinDatabase Join
Database Join
 
SDLC of Shareef Oxygen Company
SDLC of Shareef Oxygen CompanySDLC of Shareef Oxygen Company
SDLC of Shareef Oxygen Company
 
Basic C concepts.
Basic C concepts.Basic C concepts.
Basic C concepts.
 
Traffic Problems in Cities.
Traffic Problems in Cities. Traffic Problems in Cities.
Traffic Problems in Cities.
 

Kürzlich hochgeladen

Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
amitlee9823
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
amitlee9823
 

Kürzlich hochgeladen (20)

BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
 
ELKO dropshipping via API with DroFx.pptx
ELKO dropshipping via API with DroFx.pptxELKO dropshipping via API with DroFx.pptx
ELKO dropshipping via API with DroFx.pptx
 
ALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptxALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptx
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Anomaly detection and data imputation within time series
Anomaly detection and data imputation within time seriesAnomaly detection and data imputation within time series
Anomaly detection and data imputation within time series
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 

Vehicle Parking System Project

  • 1. 2012 Name :- Farooq Mian ID No :- 113323 B.S.C.S (3rd Semester) Teacher :- Sir Usman Sattar 12/25/2012 Database Management System PROJECT
  • 2. Table of Contents 1. Introduction 2. Scope 3. Objective 4. Vehicle Parking system 5. Data Flow Diagrams (DFD) 6. Entity Relationship Diagrams (E-RD) 7. Relational Database model 8. Queries 9. Select Statement (Views) 10. Interfacing in Visual Studio
  • 3. ACKNOWLEDGEMENT In the beginning, I would like to thank ALMIGHTY ALLAH, the most merciful and beneficent, for giving me the strength to complete my project with full determination. I would like to thank my teacher Sir Usman Sattar who gave me this opportunity and encouraged me by assigning this project; Without their help and guidance I would have not completed this assignment. I believe in future these efforts will pay off.
  • 4. INTRODUCTION This project is about “Vehicle Parking system” of any plaza or mall, its a automatic recepit generated software with every essential details. SCOPE As we all know that the world is advancing day by day new technologies come and go, many new methods are been introduced almost daily, therefore, the demand of the new systems have been increased in every organization old systems have been replaced by new systems, the question is why? Its because every organization demands excellent quality work more profit to be earned in short span of time, to gain as much market trust as they can, and not to forget as quick they can so they can compete with other organizations. New systems should be i. User friendly ii. More efficient iii. They should provide security iv. Fast As these four are mentioned, my idea will be based upon these. OBJECTIVE + PROBLEM As the world is facing many thread’s daily, robbries are done easily with no track to trace, bomb blasts occur with the use of car, so if a proper system is adopted each and every record can be saved and anyone can be track easily therefore mainly is to make a better and fast software, most important user-friendly.
  • 5. Vehicle Parking System Flow:- A vehicle is entering the typist type vehicle_type, registration_no, date, time_in (time of vehicle entered). And an auto generated slip_no is given to the specific car; now vehicle is exiting after some sum of amount for which we have different rates, the customer returns us the slip from there we only type the slip_no on the system and all the previous information will pop up with some more which are following time_out (time of vehicle exiting), total_time (calculated from time_in and time_out), total_amount (which is based upon total_time), this is the whole process which is converted into computer language. Data Flow Diagram (DFD):- Following is the DFD of the system. Vehicle_type Rates Vehicle_info Parking System Processing Vehicle Type 1- Car 2- Bike Hourly rates Finallyafterthe processing the record issavedin Vehicle_info
  • 6. Entity Relationship Diagram (E-RD):- Following is the E-RD diagram of the system One vehicle will is either a car or bike, and its calculated amount can be only one amount therefore, Its 1 to 1 relationship between tables. Vehicle_type T_id V_type Rates R_id R_per_hour R_s Vehicle_info Slip_no V_type Registration_no Date Time_in Time_out Amount
  • 7. Relational Datamodel:- Look-up Tables:-  Vehicle_type  Rates R_id R_per_hour R_s 1 0.00 - 1.10 10 2 0.00 - 2.00 20 3 0.00 - 3.00 30 4 0.00 - 4.00 40 5 0.00 - 5.00 50 Main Table:-  Vehicle_info Slip_no T_id Registration_no Date Time_in Time_out 1 1 LEX – 1313 From sys From sys From sys 2 1 LZY – 1790 From sys From sys From sys I prefer the Denormalization concept for my project as i don’t think an normalization is needed for such a project. T_id V_type 1 Car 2 Bike * and so on records will be saved a IF statement will be required to calculate total amount from time_in & time_out
  • 8. Queries:- Following are the queries from which these tables are created and random data is inserted into it.  Query to create Database CREATE DATABASE vehicle_parking_project  Query to create table (vehicle_type) CREATE TABLE vehicle_type ( t_id INT IDENTITY NOT NULL PRIMARY KEY, v_type char(5) )  Query to insert data into table (vehicle_type) INSERT INTO vehicle_type VALUES ('Car') INSERT INTO vehicle_type VALUES ('Bike')  Query to create table (rates) CREATE TABLE rates ( r_id INT IDENTITY NOT NULL PRIMARY KEY, r_per_hour char(10), r_s INT )
  • 9.  Query to insert data into table (rates) INSERT INTO rates VALUES ('0.00-1.10',10) INSERT INTO rates VALUES ('0.00-2.00',20) INSERT INTO rates VALUES ('0.00-3.00',30) INSERT INTO rates VALUES ('0.00-4.00',40) INSERT INTO rates VALUES ('0.00-5.00',50)  Query to create main table (Vehicle_info) CREATE TABLE vehicle_info ( slip_no INT IDENTITY NOT NULL PRIMARY KEY, v_type INT NOT NULL FOREIGN KEY REFERENCES vehicle_type (t_id), register_no CHAR(10), date DATETIME NOT NULL DEFAULT GETDATE(), time_in DATETIME NOT NULL DEFAULT GETDATE(), time_out DATETIME DEFAULT GETDATE(), total_amount INT FOREIGN KEY REFERENCES rates (r_id) )
  • 10.  Query to insert values into table (Vehicle_info) INSERT INTO vehicle_info VALUES (1,'LEX 1313',GETDATE(),GETDATE(),NULL,1) INSERT INTO vehicle_info VALUES (2,'LEZ 1234',GETDATE(),GETDATE(),NULL,3) INSERT INTO vehicle_info VALUES (1,'FDL 4444',GETDATE(),GETDATE(),NULL,1) INSERT INTO vehicle_info VALUES (1,'LZ 2323',GETDATE(),GETDATE(),NULL,2) INSERT INTO vehicle_info VALUES (2,'LZY 7777',GETDATE(),GETDATE(),NULL,2) INSERT INTO vehicle_info VALUES (2,'LXL 1790',GETDATE(),GETDATE(),NULL,1) INSERT INTO vehicle_info VALUES (1,'LHM 6993',GETDATE(),GETDATE(),NULL,1) SELECT:- Following are the select statement queries which includes joins etc, to show the info in desired format. 1. Standard view of table vehicle_type SELECT * FROM vehicle_type 2. Standard view of table rates SELECT * FROM rates 3. Standard view of table vehicle_type SELECT * FROM vehicle_info 4. Vehicle type car SELECT * FROM vehicle_info WHERE v_type = 1
  • 11. 5. Vehicle type bike SELECT * FROM vehicle_info WHERE v_type = 2 6. Rates of all vehicle SELECT vehicle_info.register_no,rates.r_s FROM vehicle_info JOIN rates ON vehicle_info.total_amount = rates.r_id 7. Rate of car LEX 1313 SELECT vehicle_info.register_no,r_s FROM rates JOIN (vehicle_type JOIN vehicle_info ON vehicle_info.v_type = vehicle_type.t_id) ON rates.r_id = vehicle_info.total_amount WHERE vehicle_info.register_no = 'LEX 1313' 8. Total amount calculated SELECT SUM(r_s)AS Whole_total FROM rates JOIN vehicle_info ON vehicle_info.total_amount = rates.r_id INTERFACING: Following are the images which of interfacing the project. *This is optional as interfacing is not of this course.
  • 12. First image shows the home page of the software which through which our software will be operated, like if we want to enter the vehicle we click on vehicle enter and another form will be open. Second form opens and vehicle entering form is filled with some mannual and some automatic enteries i.e date and time_in This third form is for when vehicle is exiting we just enter the slip no and all information is shown to us after receiving the money we only press save.