0% found this document useful (0 votes)
28 views

Group

Uploaded by

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

Group

Uploaded by

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

PARK SMART: SIMPLIFYING PARKING WITH AN

ANDROID APP

Submitted in partial fulfillment of the requirements for the degree of

BACHELOR OF TECHNOLOGY
in
Computer Science and Engineering

By

Chinthala Harshitha 20K91A0543


Bandapally Sai Teja 21K95A0503
Gollapudi Shivananda Sai 20K91A0553
Ashanolla Sridhar Reddy 20K91A0510

Under the guidance of


Mrs. V.PRAGATHI
ASSISTANT PROFESSOR

DEPARTMENT OF COMPUTER SCIENCE AND


ENGINEERING TKR COLLEGE OF ENGINEERING
AND TECHNOLOGY (AUTONOMOUS)
(Accredited By NBA and NAAC with ’A+’ Grade)
Medbowli, Meerpet, Balapur (M), Hyderabad-500097
DECLARATION BY THE CANDIDATE

I , Ms. Chinthala Harshitha, bearing Hall Ticket Number:


20K91A0543, Mr. Bandapally Sai Teja, bearing Hall Ticket
Number: 21K95A0503, Mr. Gollapudi Shivananda Sai, bearing
Hall Ticket Number: 20K91A0553 and Mr. Ashanolla Sridhar
Reddy, bearing Hall Ticket Number: 20K91A0510 hereby declare
that the main project report titled PARK SMART: SIMPLIFYING
PARKING WITH AN ANDROID APP under the guidance of Mrs.
V.PRAGATHI, Assistant Professor in Department of Computer
Science and Engineering is submitted in partial fulfillment of the
requirements for the award of the degree of Bachelor of Technology
in Computer Science and Engineering.

Chinthala Harshitha 20K91A0543


Bandapally Sai Teja 21K95A0503
Gollapudi Shivananda Sai 20K91A0553
Ashanolla Sridhar Reddy 20K91A0510

Place: Meerpet
Date: /04/2024
CERTIFICATE

This is to certify that the main project report entitled PARK SMART:
SIMPLIFYING PARKING WITH AN ANDROID APP, being submitted by
Ms. Chinthala Harshitha, bearing Roll.No:.20K91A0543, Mr. Bandapally Sai
Teja, bearing Roll.No:.21K95A0503, Mr. Gollapudi Shivananda Sai, bearing
Roll.No:.20K91A0553 and Mr. Ashanolla Sridhar Reddy, bearing
Roll.No:.20K91A0510 in partial fulfillment of requirements for the award of
degree of Bachelor of Technology in Computer Science and Engineering, to the
TKR College of Engineering and Technology is a record of bonafide work carried
out by him/her under my guidance and supervision.

Guide HoD
(Mrs. V.PRAGATHI) (Dr.A.Suresh Rao)

Place: Meerpet
Date: /04/2024
TABLE OF CONTENTS

ABSTRACT i
ACKNOWLEDGEMENT ii
LIST OF FIGURES iii

1 INTRODUCTION 1
1.1 Motivation 1

1.2 Problem Definition 1


1.3 Limitations of existing system 2
1.4 Proposed system 3

2 LITERATURE REVIEW 4
2.1 Review of Literature 4

3 REQUIREMENTS ANALYSIS 6
3.1 Functional Requirements 6
3.2 Non-Functional Requirements 7

4 DESIGN 9
4.1 Modules Description 9
4.2 Data Flow Diagrams 10
4.3 UML Diagrams 12
4.3.1 Use Case Diagram 12
4.3.2 Class Diagram 13
4.3.3 Sequence Diagram 14
4.3.4 Activity Diagram 15
4.4 Algorithm 16
5 CODING 18
5.1 Pseudo Code 18

6 IMPLEMENTATION and RESULTS 23


6.1 Explanation of Key functions 23
6.2 Method of Implementation 24
6.2.1 Output Screens 24
6.2.2 Result Analysis 27

7 TESTING and VALIDATION 28


7.1 Design of Test Cases and Scenarios 28
7.2 Validation 30

8 CONCLUSION AND FUTURE SCOPE 31


8.1 Conclusion 31
8.2 Future Scope 31

REFERENCES 32
ABSTRACT

In response to the escalating urban traffic congestion, this paper introduces a


proactive solution: a smart Android-based parking control application. The
application empowers drivers to swiftly locate nearby parking spaces, reducing
circling time in congested areas. Additionally, it simplifies parking payment through
secure digital transactions within the app, eliminating the need for physical currency.
A sophisticated timer mechanism accurately tracks parking duration upon initiation,
ensuring precise billing and transparency in management. When the vehicle leaves the
parking slot, the timer stops automatically, enhancing user convenience and
minimizing errors. This solution aims to alleviate urban traffic congestion by
revolutionizing the parking experience and prioritizing efficiency, accessibility, and
sustainability. Through intuitive design and advanced technology, the application
represents a tangible step towards addressing the pressing concern of traffic
congestion in contemporary urban environments.

Keywords: Smart parking control application, android based.

i
ACKNOWLEDGEMENT

The satisfaction and euphoria that accompanies the successful completion


of any task would be incomplete without the mention of the people who made it
possible and whose
encouragement and guidance have crowned my efforts with success.

I am indebted to the Internal Guide, Mrs. V.PRAGATHI, Assistant


Professor, Dept. of Computer Science and Engineering, TKR College of
Engineering and Technology, for his/her support and guidance throughout my
Thesis/Dissertation.

I am also indebted to the Head of the Department, Dr. A. Suresh Rao,


Professor, Computer Science and Engineering, TKR College of Engineering and
Technology, for his support and guidance throughout my Thesis/Dissertation.

I extend my deep sense of gratitude to the Principal, Dr. D. V. Ravi


Shankar, TKR College of Engineering and Technology, for permitting me to
undertake this Thesis/Dissertation.

Finally, I express my thanks to one and all that have helped me in


successfully completing this Thesis/Dissertation. Furthermore, I would like to
thank my family and friends for their moral support and encouragement.

Chinthala Harshitha 20K91A0543


Bandapally Sai Teja 21K95A0503
Gollapudi Shivananda Sai 20K91A0553
Ashanolla Sridhar Reddy 20K91A0510

Place: Meerpet
Date: /04/2024

ii
LIST OF FIGURES

Figure Number Figure Name Page Number

4.1 Data Flow Diagram 11

4.2 Use Case Diagram 12

4.3 Class Diagram 13

4.4 Sequence Diagram 14

4.5 Activity Diagram 15

6.1 Splash Screen 24

6.2 Login Activity Page 24

6.3 Register Activity 24


6.4 Slot Activity 24

6.5 Slot Booking Activity 25


6.6 Slot View Activity 25
6.7 Bank Login Activity 25
6.8 Bank Account Adding Activity 25
6.9 QR Code Scanner Button 26
6.10 QR Code Scanner Activity 26
6.11 Payment Activity 26
6.12 Confirmation 26
7.1 Testcases 28 - 29

iii
Chapter 1

INTRODUCTION

1.1 Motivation
The motivation behind developing a smart parking application
that allows users to book parking slots through messages is to address the ever-
growing challenges of urban parking. Urbanization has led to an increase in the
number of vehicles on the road, exacerbating parking congestion in cities
worldwide. This results in wasted time, increased traffic congestion, environmental
pollution, and frustration among drivers. By introducing a smart parking solution
with messaging capabilities, we aim to streamline the parking process, make it more
convenient for users, and contribute to reducing traffic congestion and
environmental impact.

The idea behind an Android time-based parking slot booking system is to let
customers book parking spots ahead of time for a predetermined amount of time.
This creative method reduces uncertainty and stress by allowing users to arrange
their parking according to their schedule, in contrast to sensor-based systems that
detect availability in real time. By giving users the option to reserve times for quick
trips or extended stays, it maximizes the use of parking resources. Integrating
seamlessly with existing infrastructure, it collects data to provide insights for better
management and enhances the whole parking experience with efficiency and ease.

1.2 Problem definition


In metropolitan cities, parking management is now characterized by
inefficiency, uncertainty, and irritation for parking lot operators as well as drivers.
While they have their uses, traditional sensor-based systems have drawbacks such as
expensive installation costs, high maintenance needs, and inaccurate real-time
availability detection. Therefore, a more approachable, effective, and user-centered
solution is desperately needed. By creating an Android application that allows users to
schedule parking slots based on time, this project seeks to alleviate these issues. The
main objective is to lessen the stress that comes with having to find parking at the
moment by giving consumers an easy-to-use and adaptable platform to reserve

1
parking places for predetermined amounts of time in advance. The system's objectives
are to maximize the use of parking resources, improve user experience, and provide
parking operators with insightful data for improved management by utilizing time-
based booking.

Key Objectives:

 Provide a user-friendly Android app that allows users to reserve parking spaces
depending on time.

 Enable users to reserve parking slots for specified durations in advance.

 Provide a user-friendly interface so that parking bookings can be made and


managed with ease.

 Include a safe payment channel so that reservations for parking can be made
online.

 Integrate with the current parking infrastructure to promote scalability and easy
adoption.

 Increasing accessibility, effectiveness, and convenience will improve the


parking experience as a whole.

1.3 Limitations of existing system


1.3.1 Existing System:
In the existing system, real-time occupancy status monitoring is facilitated by
the deployment of sensors in individual parking spaces. Parking management may
increase overall efficiency and optimize space utilization by utilizing sensors. But
problems like installation expenses and dependability problems could appear, thus the
system's deployment has to be carefully thought out.
Some of the techniques used in the existing system are as follows:
 Radio-frequency identification (RFID) Reader Technique.
 GSM-Based Parking System.
 Cloud-based parking technology.
 Intelligent parking technology.

1.3.2 Limitations:
 Requires hardware and the entire process is complex.
 Is not a user friendly.

2
 Expensive.

1.4 Proposed system

In the proposed system users will reserve parking spaces based on a time-
based parking system, which makes it possible for them to arrange their parking needs
effectively. By using this technique, users can reduce the chance of arriving at full lots
by ensuring that they have secured parking places allocated for them. In addition to
providing clarity and predictability, time-based reservations, as opposed to sensor-
based ones, provide smoother traffic flow and less congestion because users are aware
of the precise start and finish times of their parking reservations. Time-based system
allows user to park their vehicle for a limited time after reserving the slot and then
they will get notified about the timing of the allotted slot for their vehicle. One of the
main components of the approach we propose is user authentication.

1.4.1 Advantages of Proposed System:

 Advance Booking

 Notifications

 Payment Integration

 Revenue Generation

 Usage is Less Complex

 Time-based Booking system

3
Chapter 2

LITERATURE REVIEW

2.1 Review of Literature

1. Title: Automated car parking system commanded by Android application


Authors: D.J. Bonde, Rohit Sunil Shende, Akshay Sambhaji Kedari, Ketan
Suresh Gaikwad, Amol Uday Bhokre
This study aims to automate both the car and the parking structure. It talks
about a project that shows off a scale model of an automated vehicle parking
system that can control and manage how many automobiles can be parked in a
certain area at any given moment depending on parking spot availability.
Using sensing sensors, automated parking is a technique for parking and
getting out of autos. An Android-based application controls who can enter and
exit the parking lot.

2. Title: A new “Smart Parking” System Infrastructure and Implementation


Authors: Yanfeng Geng, Christos G. Cassandras
In this work, a novel approach to "smart parking" in urban environments is
proposed. Based on the user's criteria, which include proximity to the
destination and parking fee, the system assigns and reserves the best parking
space for the driver while also making sure that the total parking capacity is
used effectively. In a time-driven sequence, their method resolves a Mixed
Integer Linear Program (MILP) issue at every decision point. Every MILP has
an optimal allocation that is determined by the information available at the
moment and is contingent upon random events like new user requests and
parking spaces being available. To prevent conflicts with resource reservations
and to guarantee that no user is ever assigned a resource that is more than the
current cost function value, the allocation is changed at the following decision
point. The document resolves implementation challenges related to
infrastructure-to-vehicle (I2V) or vehicle-to-infrastructure (V2I)
communication, parking detection, and reservation guarantee.

4
3. Title: Smart Parking System with Image Processing Facility
Authors: M.O. Reza, M.F. Ismail, A.A. Rokoni, M.A.R. Sarkar
After gathering and processing data regarding available parking spots, smart
parking systems position the vehicle in a predetermined location. Here is
where a parking assistance system prototype built on the suggested
architecture was built. This article describes the implementation solutions,
software, and hardware used in the creation of the prototype. Here, an efficient
circular design with a unique rack-pinion mechanism that raises and positions
the vehicle is introduced.

4. Title: Smart virtual parking mobile application


Authors: Yasser Aldayan, Abdulkareem Alghamdi, Khalid Alotaiby, Abdul
Khader Jilani Saudagar
Every day, students who drive to the institution have parking space
difficulties. This might be difficult and a time waster for the students. To
address the needs of the students, this project creates a mobile application for
virtual parking. The app allows students to log in and displays which spots are
available and which are busy. Additionally, students have the option to reserve
a parking space, which they can retain for a few minutes until they arrive.
Through the use of a virtual design, this project simulates the functionality of a
genuine parking lot. The mobile application will display the outcome of the
actions that are performed on the virtual design.

5. Title: Automatic Parking Management System and Parking Fee


Collection Based on Number Plate Recognition
Authors: M. M. Rashid, A. Musa, M. Ataur Rahman, and N. Farahana, A.
Farhana
The paper introduces electronic parking systems using car plate recognition
and automated parking. It aims to enhance convenience and security in public
parking by eliminating magnetic cards. The system guides users to spots and
manages parking and billing through image processing for plate recognition.
Minimal human intervention is ensured with preprogrammed controllers,
providing access control in restricted areas.

5
Chapter 3

REQUIREMENTS ANALYSIS

3.1 Functional Requirements

1. Parking Space Management:

 Parking Space Detection and Display: The system must accurately detect
and display available parking spaces in real time. This functionality ensures
that users are provided with up-to-date information on parking availability,
enhancing their overall parking experience.

2. Reservation System:

 Parking Slot Reservation: Users should be able to reserve parking slots in


advance through the system. This capability allows users to plan and secure
parking spaces ahead of time, providing convenience and peace of mind,
especially in high-demand areas or during peak hours.

3. Payment Integration:

 Payment Methods: The system must support multiple payment methods for
parking fees. By offering various payment options such as credit/debit cards,
mobile wallets, or prepaid accounts, the system caters to the diverse
preferences of users, enhancing accessibility and convenience.

4. Administrative Tools:

 Reporting Functionality: It should generate reports on parking usage and


revenue for administrators. This feature provides valuable insights into
parking patterns, revenue generation, and resource allocation, enabling
administrators to make informed decisions for the optimization and
improvement of parking services.

6
3.2 Non-Functional Requirements

1. Performance:

 Fast Loading: The application needs to load quickly, ensuring users have
a smooth experience accessing its features, especially during peak usage.

 Responsive Interactions: User interactions with the app should prompt


quick responses, maintaining fluidity even during high-traffic times.

2. Reliability:

 Stability: The application must exhibit stability and reliability, ensuring


minimal downtime or crashes, which could disrupt user activities.

 Payment Processing: Accuracy and dependability in payment processing


and reservation management are crucial to maintaining trust and
efficiency.

 Minimal Downtime: Ensuring the app remains operational with minimal


downtime is essential for continuous service delivery.

3. Security:

 Data Security: Personal information and payment details of users need to


be securely stored and transmitted to prevent unauthorized access or
breaches.

 Encryption Standards: Integration with payment gateways should adhere


to industry standards for encryption and security protocols to safeguard
sensitive information.

7
4. Scalability:

 User Base Growth: The application should be designed to accommodate a


growing user base and increasing demand for parking reservations without
compromising performance.

 Infrastructure Scalability: Backend infrastructure needs to be scalable to


accommodate additional features and services in the future, ensuring the
app can adapt to evolving user needs and technological advancements.

8
Chapter 4

DESIGN

4.1 Modules Description

1. User Interface (UI):


 This module offers a user interface that allows users to communicate
with the smart parking system.
 Typically, the UI elements of Android—activities, fragments, and
views—are used in its development.
 Viewing available parking spots, reserving spots, setting timers, and
receiving notifications are all available to users.

2. Authentication Module:
 This module manages the procedures for user authorization and
authentication.
 To use the functions of the system, users might have to log in.
 Based on user roles and permissions, it validates user credentials and
allows access to the system's functionalities.

3. Parking Space Management:


 The data on parking spots that are available is managed by this
module.
 As customers reserve or release parking spaces, it keeps track of each
space's status (available, occupied, etc.) and updates this data in real
time.

4. Timer Module:
 This module is essential to the system's operation. Users can use it to
schedule time limits for their parking sessions.
 When a user chooses how long they want to use a parking place, the
system initiates a countdown timer.

9
 The user is notified by the system when the timer expires, signaling
that their parking period is about to end.

5. Reservation Framework:
 With the help of this module, users can reserve parking spots ahead of
time.
 Users can choose a parking spot and indicate how long they would
want to park there.
 The selected parking space is reserved by the system for the allotted
amount of time, keeping other users from using it during that period.

6. Notification Mechanism:
 Users receive notifications from this module at different points during
their parking experience.
 Reminders before the end of the parking period, timer warnings, or
confirmation messages following a successful reservation are some
examples of notifications.

4.2 Data Flow Diagram

 The data flow diagram, or DFD, is a crucial modeling instrument. The


components of the system are modeled using it. These elements consist of the
system's procedure, the data it uses, an outside party that communicates with
it, and the information flows within it.
 DFD illustrates the flow of information across the system and the various
changes that alter it. This method uses graphics to show how information
flows and the changes made to data as it goes from input to output.
 Another name for DFD is a bubble chart. Any level of abstraction can be
utilized to portray a system using a DFD. Levels of DFD can be used to depict
increasing functional details and information flow.
 The procedures used in a system to move data from the input to the file

10
storage and report production are described by DFD.
 The Data Flow Diagram (DFD) for the smart parking reservation system
illustrates the flow of data between external entities, processes, and data
stores. External entities such as Users, Parking Lots, and Payment Gateways
interact with processes such as Reserve Parking Spots and Process Payments.

Fig. 4.1 Data Flow Diagram

11
4.3 UML Diagrams
 Unified Modeling Language (UML) is a standardized visual modeling
language used in software engineering to depict the structure and behavior of
systems.
 It offers a set of graphical notations for creating visual representations of
software systems, making it easier to understand, communicate, and design
complex systems.
 A system's architecture, relationships, behaviour, and structure can all be
represented via UML diagrams.

4.3.1 Use Case Diagram

 The use case diagram illustrates the various actions or use cases that users
can perform with the system, such as reserving a parking spot, making a
payment, etc.

Fig. 4.2 Use case diagram

12
4.3.2 Class Diagram
 The class diagram represents the classes and their relationships within the
system, including entities like User, ParkingSpot, and ParkingLot. It shows
how these classes interact and the attributes and methods they possess.

Fig. 4.3 Class Diagram

13
4.3.3 Sequence Diagram
 The sequence diagram demonstrates the sequence of interactions between
system components or objects for a particular use case, such as the steps
involved in reserving a parking spot, including user input, validation, and
confirmation.

Fig. 4.4 Sequence diagram

14
4.3.4 Activity Diagram
 The activity diagram outlines the workflow or activities within the system,
such as the process flow for reserving a parking spot from start to finish,
including user interactions and system responses.

Fig. 4.5 Activity diagram

15
4.4 Algorithm
Step 1: User Authentication
1. Prompt user to login or register.
2. If user chooses to register:
a. Collect necessary information (e.g., username, password, email).
b. Store the information securely.
3. If user chooses to login:
a. Verify user credentials.
b. If credentials are valid, allow access to the system.

Step 2: Finding Available Parking Spaces


1. Access parking database.
2. Retrieve information about available parking spaces.
3. Display available parking spots to the user on a map interface.

Step 3: Booking a Parking Space


1. User selects a parking spot from the available options.
2. Confirm the booking.
3. Reserve the selected parking spot for the user.
4. Update the database to reflect the booking status of the parking spot.

Step 4: Navigation to the Parking Spot


1. Utilize GPS to determine the user's current location.
2. Calculate the optimal route to the booked parking spot.
3. Provide turn-by-turn navigation instructions to the user.

Step 5: Arrival and Parking


1. Notify the system upon arrival at the parking spot.
2. Confirm the parking.
3. Update the database to reflect the occupancy status of the parking spot.

16
Step 6: Exiting the Parking Spot
1. Detect when the user leaves the parking spot.
2. Mark the parking spot as available again.
3. Update the database accordingly.

Step 7: Payment Processing (Optional)


1. Calculate the parking duration.
2. Calculate the parking fee based on predefined rates.
3. Initiate the payment process using preferred payment methods (e.g., credit card,
mobile wallet).
4. Confirm successful payment.

Step 8: User Feedback and Rating (Optional)


1. Prompt the user for feedback on the parking experience.
2. Allow the user to rate the parking spot and overall experience.
3. Store the feedback and rating for future reference and improvement.

Step 9: System Maintenance and Updates


1. Regularly maintain and update the system to ensure functionality and security.
2. Implement improvements based on user feedback and technological advancements.
3. Monitor system performance and address any issues promptly.

17
Chapter 5

CODING
5.1 Pseudo Code

package New;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;

@WebService(serviceName = "Parkingservice")
public class Parkingservice {

@WebMethod(operationName = "Register")
public String Register(@WebParam(name = "username") String username,
@WebParam(name = "password") String password, @WebParam(name = "email")
String mail, @WebParam(name = "mobile") String mobile) {
try
{
Class.forName("com.mysql.jdbc.Driver");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/newpark","root","pa
ssword");
PreparedStatement ps=con.prepareStatement("Insert into
user(username,password,mail,mobile) Values(?,?,?,?)");
ps.setString(1, username);

18
ps.setString(2, password);
ps.setString(3, mail);
ps.setString(4, mobile);
ps.executeUpdate();
}
catch(ClassNotFoundException | SQLException e)
{
System.out.println(e);
}
return "success";
}

@WebMethod(operationName = "Login")
public String Login(@WebParam(name = "user_name") String user_name,
@WebParam(name = "password") String password) {
try{
Class.forName("com.mysql.jdbc.Driver");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/newpark","root","pa
ssword");
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("Select * from user where
username='"+user_name+"' and password='"+password+"' ");
if(rs.next())
{
return "success";
}
else{
return "username and password invalid";
}
}
catch(Exception e){
e.printStackTrace();
}

19
return "internal server error";
}

@WebMethod(operationName = "getDeviceList1")
public String getDeviceList1 (@WebParam(name = "from") String
vegitable,String method) {

StringBuilder sb = new StringBuilder();


try{
Class.forName("com.mysql.jdbc.Driver");
Connection
conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/newpark","root","
password");
Statement st=conn.createStatement();
ResultSet rs=st.executeQuery("select * from slots ");
while(rs.next())
{
String place=rs.getString("place");
String slots=rs.getString("slots");
String price=rs.getString("price");

sb.append("Place: ").append(place);
sb.append("\n");
sb.append("AvailableSlots: ").append(slots);
sb.append("\n");
sb.append("Price: ").append(price);
sb.append("@");
}
}
catch(ClassNotFoundException | SQLException ex){
//Logger.getLogger(Registration.class.getName()).log(Level.SEVERE,null,ex);
return "server temporarily not avilable";
}
System.out.println(sb.toString());

20
return sb.toString();
}

@WebMethod(operationName = "BankDetails")
public String BankDetails(@WebParam(name = "name") String name,
@WebParam(name = "accountno") String accountno, @WebParam(name = "cvv")
String cvv, @WebParam(name = "expirydate") String expirydate,@WebParam(name
= "password") String password) {
try{
Class.forName("com.mysql.jdbc.Driver");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/newpark","root","pa
ssword");
PreparedStatement ps=con.prepareStatement("Insert into
bankdetails(name,accountno,cvv,expirydate,password)
Values('"+name+"','"+accountno+"','"+cvv+"','"+expirydate+"','"+password+"')");
ps.executeUpdate();
}catch(Exception e){
e.printStackTrace();
}
return "success";
}

@WebMethod(operationName = "BLogin")
public String BLogin(@WebParam(name = "user_name") String user_name,
@WebParam(name = "password") String password) {
try{
Class.forName("com.mysql.jdbc.Driver");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/newpark","root","pa
ssword");
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("Select * from bankdetails where
name='"+user_name+"' and password='"+password+"' ");

21
if(rs.next())
{
return "success";
}
else{
return "username and password invalid";
}
}
catch(Exception e){
e.printStackTrace();
System.out.println(e);
}
return "internal server error";
}

@WebMethod(operationName = "Sms")
public String Sms(@WebParam(name = "phone") String phno) {
try{
Class.forName("com.mysql.jdbc.Driver");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/newpark","root","pa
ssword");
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("Select * from user where mobile='"+phno+"'");
if(rs.next())
{
return "success";
}
else
{
return "mobile number is invalid";
}
}
catch(Exception e){

22
e.printStackTrace();
System.out.println(e);
}
return "internal server error";
}
}

23
Chapter 6

IMPLEMENTATION and RESULTS

6.1 Explanation of Key functions

1. Parking Spot Detection: The system detects available parking spots and
displays them on a screen within the app, allowing users to easily find vacant
spots near their location.

2. Reservation and Booking: Users can reserve parking spots in advance


through the app, ensuring availability when they arrive at the parking location.

3. Payment Integration: Users can make parking payments directly through the
app using various payment methods such as credit/debit cards, mobile wallets,
or prepaid accounts.

4. QR Code Scanning: The system generates QR codes for each parking


reservation and payment.

5. Parking Time Tracking: The app tracks the duration of the parked vehicle
and calculates parking fees accordingly, providing transparency and accuracy
in billing.

6. Alerts and Notifications: Users receive alerts and notifications regarding


their parking reservation status, payment reminders, and expiration times to
ensure a smooth parking experience.

7. User Management: The system allows users to create accounts, manage their
parking reservations, and update personal information within the app.

24
6.2 Method of Implementation
6.2.1 Output Screens

Fig. 6.1 Splash Screen Fig. 6.2 Login Activity Page

Fig. 6.3 Register Activity Fig. 6.4 Slot Activity

25
Fig. 6.5 Slot Booking Activity Fig. 6.6 Slot View Activity

Fig. 6.7 Bank Login Activity Fig. 6.8 Bank Account Adding Activity

26
Fig. 6.9 QR Code Scanner Button Fig. 6.10 QR Code Scanner Activity

Fig. 6.11 Payment Activity Fig. 6.12 Confirmation

27
6.2.2 Result Analysis
 In the result analysis, the Android-based smart parking system demonstrated
promising outcomes.
 User feedback highlighted high satisfaction with the app's functionality,
particularly regarding parking spot detection, reservation process, and making
payments.
 System performance was found to be reliable and accurate, with minimal
technical issues reported.
 The implementation of the smart parking system resulted in improved parking
efficiency.
 Overall, the analysis indicates a successful implementation of the Android-
based smart parking system, with positive impacts on user experience and
parking management efficiency.

28
Chapter 7

TESTING and VALIDATION

7.1 Design of Test Cases and Scenarios


 Test cases are constructed based on specifications and requirements, outlining
what the application should do. They are often derived from external
descriptions of the software, such as specifications, requirements, and design
parameters. While the tests are typically functional, non-functional tests may
also be included. The test designer chooses both valid and invalid inputs and
defines the expected output without insight into the test object's internal
structure.

Test Description Test Steps Expected Pass/


Case ID Output Fail
TC00 Verify user 1. Navigate Registration Pass
1 can register for to registration page is displayed
an account page
2. Fill in Fields are
required fields populated with
with valid valid information
information
3. Submit User account is
registration form created
successfully
4. Verify Confirmation
confirmation message is
message displayed
TC00 Verify user 1. Navigate Login page is Pass
2 can log in with to login page displayed
valid credentials
2. Enter valid Username and

29
username and password fields are
password populated
3. Click on User is logged
login button in successfully
4. Verify user Dashboard page
is redirected to is displayed
dashboard
TC003 Verify user 1. Navigate to Login page is Pass
cannot log in with login page displayed
invalid credentials
2. Enter Invalid
invalid username credentials error
and/or password message is displayed
3. Click on User remains on
login button login page
TCOO Verify user 1. Navigate to Vehicle Pass
4 can add a vehicle vehicle management page is
to their account management page displayed
TC005 Verify user 1. Navigate to Parking Pass
can search for parking availability page is
available parking availability page displayed
spots
2. Select desired Available
location and time parking spots are
displayed
3. Click on List of available
'Search' button parking spots is
shown
4. Verify Available
search results parking spots are
displayed correctly
TC006 Verify user 1. Navigate to Parking Pass
can reserve a parking reservation page is
parking spot reservation page displayed
2. Select Parking spot is

30
desired parking selected
spot from
available list
3. Enter required Reservation details
details (time, are entered
vehicle info, etc.)
4. Confirm Reservation is
reservation confirmed

Fig. 7.1 Testcases

7.2 Validation
Validation ensures that a product, system, or service meets specified
requirements and satisfies stakeholder needs. In software development, validation
ensures correct and effective functionality, delivering intended features to users.
Validation involves testing, verification, and evaluation to confirm compliance with
quality standards, regulatory requirements, and user expectations.
1. Functional Testing: Examining key functions such as parking spot
detection, reservation and booking, payment integration, QR code
scanning, and parking time tracking.
2. Usability Testing: Gathering user feedback on ease of use, clarity of
instructions, and overall satisfaction with the application.
3. Accuracy Testing: Validating precision in parking spot detection, and
payment processing.
4. Integration Testing: Ensuring seamless interaction between different
components within the application.
5. Performance Testing: Evaluating responsiveness, loading times, and
resource utilization under various conditions.
6. Security Testing: Assessing data protection measures to safeguard
user data, payment information, and sensitive transactions.
7. End-to-end Testing: Validating smooth process flow from spot
detection to payment processing, ensuring uninterrupted user
experience.

31
Chapter 8

CONCLUSION and FUTURE SCOPE


8.1 Conclusion
Our app-based parking reservation system provides a comprehensive solution to urban
parking congestion by enabling spot reservation, locating nearby spaces, and
employing QR code scanning for seamless entry, enhancing efficiency. Integration of
online payment streamlines the process, reducing human intervention. Moreover, its
simplicity and affordability ensure accessibility across various users and scenarios,
contrasting with costly alternatives. Leveraging available technology ensures
economic viability and easy implementation, encouraging adoption by municipalities,
businesses, and individuals, and aiding in alleviating urban traffic congestion. In
conclusion, our system offers a practical solution to urban parking management,
optimizing availability, and payments, and reducing human involvement, thus
fostering a more efficient, user-friendly, and sustainable urban mobility ecosystem.

8.2 Future Scope


In the future, the proposed parking reservation system can be enhanced by integrating
sensors and CCTV cameras, enabling users to monitor real-time parking availability
and security within the same application, offering more comprehensive insights than
just statistical data. Additionally, the inclusion of a navigation feature can assist users
in efficiently navigating to their desired parking spot with turn-by-turn directions,
minimizing search time and congestion. These advancements would significantly
improve user experience and streamline the parking process, contributing to the
alleviation of urban traffic congestion.

32
REFERENCES
[1] S. Jain, R. Gupta, and P. K. Goyal, "Smart parking management system
using Android application and cloud computing," International Journal of
Scientific Research in Computer Science, Engineering and Information
Technology (IJSRCSEIT), vol. 4, no. 6, pp. 362-366, 2019.

[2] M. A. Rahman, M. S. Islam, and M. R. Chowdhury, "Development of an


Android-based smart parking system using GPS and GSM technologies,"
International Journal of Engineering and Technology (IJET), vol. 9, no. 1,
pp. 86-93, 2017.

[3] S. A. Mahmood, M. A. Rahman, and S. A. Ahsan, "Design and


implementation of an Android-based smart parking system with user
feedback and payment integration," International Journal of Innovative
Science and Research Technology (IJISRT), vol. 3, no. 4, pp. 567-573,
2018.

[4] R. K. Singh, M. Kumar, and R. K. Gupta, "A review on smart parking


system based on android application," International Journal of Computer
Science Trends and Technology (IJCST), vol. 4, no. 2, pp. 8-12, 2016.

[5] A. S. Chowdhury, M. N. Islam, and M. A. Sobhan, "Design and


implementation of a smart parking system based on Android application,"
International Journal of Scientific Research in Network Security and
Communication, vol. 3, no. 2, pp. 30-34, 2015.

[6] H. Li, J. Wang, and Q. Zhang, "Design and implementation of an Android-


based smart parking system using Bluetooth Low Energy technology,"
International Journal of Distributed Sensor Networks, vol. 16, no. 12, 2020.

[7] A. Ghosh, S. Ghosh, and A. Das, "Android-based smart parking reservation


system using IoT," Journal of Information Systems and Telecommunication,
vol. 7, no. 3, pp. 45-52, 2018.

33

You might also like