Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

CTOOD Project Document

Download as pdf or txt
Download as pdf or txt
You are on page 1of 20

K L UNIVERSITY

FRESHMAN ENGINEERING DEPARTMENT


A Project Based Lab Report

On

Cab Booking System

SUBMITTED BY:

I.D NUMBER NAME

2300032277 POLI SAI SREYASH REDDY

2300032280 LAKSHMI PRIYA GUDIPUDI

2300032384 LEO STEPHEN MADURI

2300032427 SHAIK GOKAR SAHEB

UNDER THE ESTEEMED GUIDANCE OF

Dr. T. GANESAN
Assistant Professor

KL UNIVERSITY
Green fields, Vaddeswaram – 522 502
Guntur Dt., AP, India.

1
DEPARTMENT OF BASIC ENGINEERING SCIENCES

CERTIFICATE

This is to certify that the project based laboratory report entitled


Cab Booking System submitted by Mr./Ms. POLI SAI SREYASH REDDY,
LAKSHMI PRIYA GUDIPUDI, LEO STEPHEN MADURI, SHAIK GOKAR SAHEB
bearing Regd. No. 2300032277, 2300032280, 2300032384, 2300032427 to the
Department of Basic Engineering Sciences, KL University in partial fulfillment of
the requirements for the completion of a project in “Computational Thinking for Object
Oriented Design - 23SC1203” course in I B Tech II Semester, is a bonafide record of
the work carried out by him/her under my supervision during the academic year 2023-
24.

PROJECT SUPERVISOR HEAD OF THE DEPARTMENT

Dr. T. GANESAN Dr. D. HARITHA

2
ACKNOWLEDGEMENTS
It is great pleasure for me to express my gratitude to our honorable President
Sri. Koneru Satyanarayana, for giving the opportunity and platform with facilities in
accomplishing the project-based laboratory report.

I/We express the sincere gratitude to my/our director Dr. A Jagadeesh for his
administration towards my/our academic growth.

I/We express sincere gratitude to my/our Coordinator Dr. M. Siva Ganga


Prasad and HOD-BES1 Dr. D. Haritha for her leadership and constant motivation
provided in successful completion of my/our academic semester. I/We record it as
my/our privilege to deeply thank for providing me/us the efficient faculty and facilities
to make our ideas into reality.

I/We express my/our sincere thanks to my/our project supervisor Dr. T.


GANESAN for his novel association of ideas, encouragement, appreciation, and
intellectual zeal which motivated me/us to venture this project successfully.

Finally, it is pleased to acknowledge the indebtedness to all those who devoted


themselves directly or indirectly to make this project report success.

Name:
POLI SAI SREYASH REDDY
LAKSHMI PRIYA GUDIPUDI
LEO STEPHEN MADURI
SHAIK GOKAR SAHEB

Regd . No:
2300032277
2300032280
2300032384
2300032427

3
ABSTRACT

The Cab Booking System (CBS) is a graphical user interface (GUI) based
program designed to facilitate seamless booking of transportation services.
The system comprises two frames: the login frame and the booking frame.
In the login frame, passengers input their personal details including name,
email, phone number, and address. Upon successful login, users are directed
to the booking frame. Within the booking frame, passengers specify the
number of passengers and select their desired car from a dropdown menu
populated with available options. Upon confirmation, the booking is
processed, and the details are saved to a file for future reference. CBS aims
to provide users with a convenient and efficient means of booking
transportation services while ensuring data integrity and reliability.

4
INDEX
S.NO TITLE PAGE NO

1 Introduction 6

2 Aim of the Project 7

2.1 Advantages & Disadvantages 7

2.2 Future Implementation 8

3 Software & Hardware Details 9

4 Class Diagram 10

5 Implementation 11-17

6 Outputs/ScreenShots 18-19

7 Conclusion 20x

5
INTRODUCTION

In today's fast-paced world, convenience and efficiency are paramount, especially


when it comes to transportation. Introducing our innovative Cab Booking System,
designed to revolutionize the way passengers access and reserve transportation
services. With a user-friendly graphical interface, seamless login process, and
real-time car availability updates, our platform ensures a hassle-free experience
from start to finish.

The login process begins with passengers providing essential details such as their
name, address, phone number, and email, ensuring personalized service and
effective communication channels. Once logged in, users are prompted to specify
the number of passengers, tailoring the booking experience to their exact needs.

With our Cab Booking System, convenience, reliability, and efficiency converge
to deliver an unparalleled passenger experience. Say goodbye to long waiting
times and uncertainty – embrace the future of transportation booking with us.

6
AIM
To develop a GUI-based cab booking program that streamlines the booking
process for passengers, providing a user-friendly interface for inputting passenger
details, selecting preferred car options, and storing booking information into a
file.

ADVANTAGES: -

• User-Friendly Interface: The GUI-based program provides a visually intuitive


platform for users to interact and enhancing user experience .
• Personalized Service: By requiring passenger details for login, the system can
offer personalized services and communication, fostering a sense of trust and
loyalty among users.
• Customized Booking: Prompting users to specify the number of passengers
allows for tailored booking experiences, ensuring that the chosen vehicle
accommodates the group size effectively.
• Real-Time Availability: Providing users with a list of available cars in real-time
enables them to make informed decisions quickly, minimizing wait times and
increasing customer satisfaction.

DISADVANTAGES: -

• Data Privacy Concerns: Collecting and storing passenger details raises


privacy concerns, necessitating robust security measures to protect
sensitive information from unauthorized access or breaches.
• Dependency on Real-Time Updates: The system's effectiveness relies on
timely updates of car availability, posing challenges if there are delays or
discrepancies in the data synchronization process.
• File Storage Overhead: Storing booking details in a file consumes storage
space and requires management for scalability, posing challenges as the
volume of data increases over time.

7
Future Implementation

Payment Integration: Integrate secure payment options within the booking


process to allow passengers to pay for their rides online, enhancing convenience
and efficiency.

Real-Time Tracking: Implement real-time tracking functionality to enable


passengers to track the location of their booked vehicle, providing them with an
estimated time of arrival (ETA) and improving transparency.

Rating and Feedback System: Introduce a rating and feedback system for
passengers to rate their riding experience and provide feedback on the driver and
vehicle, helping maintain service quality and address any issues promptly.

Mobile App Development: Develop a mobile application for CBS on both iOS
and Android platforms, offering users greater accessibility and convenience for
booking rides on the go.

Analytics and Reporting: Implement analytics tools to track key metrics such
as booking volume, popular routes, and customer satisfaction, enabling data-
driven decision-making and continuous improvement of service quality.

8
SYSTEM REQUIREMENTS
➢ SOFTWARE REQUIREMENTS:
The major software requirements of the project are as follows:
Language : JAVA
Operating system : Windows XP
Tools : Eclipse IDE (2023-12)

➢ HARDWARE REQUIREMENTS:

The hardware requirements that map towards the software are as follows:

RAM : 128 MB (Minimum)

Processor : intel i3 core (Minimum)

9
CLASS DIAGRAM

10
IMPLEMENTATION
package ctood;

import javax.swing.*;

import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

import java.io.BufferedWriter;

import java.io.FileWriter;

import java.io.IOException;

public class CabBookingSystem implements ActionListener {

JFrame loginFrame, bookingFrame;

JLabel nameLabel, addressLabel, phoneLabel, emailLabel, passengersLabel,


carLabel, confirmationLabel;

JTextField nameField, addressField, phoneField, emailField,


passengersField;

JComboBox<String> carComboBox;

JButton loginButton, bookButton;

String currentUser;

CabBookingSystem() {

// Login Frame

loginFrame = new JFrame("Login");

loginFrame.setSize(400, 300);

11
loginFrame.setLayout(null);

nameLabel = new JLabel("Name:");

nameLabel.setBounds(50, 30, 100, 30);

loginFrame.add(nameLabel);

nameField = new JTextField();

nameField.setBounds(150, 30, 200, 30);

loginFrame.add(nameField);

emailLabel = new JLabel("Email:");

emailLabel.setBounds(50, 80, 100, 30);

loginFrame.add(emailLabel);

emailField = new JTextField();

emailField.setBounds(150, 80, 200, 30);

loginFrame.add(emailField);

phoneLabel = new JLabel("Phone:");

phoneLabel.setBounds(50, 130, 100, 30);

loginFrame.add(phoneLabel);

phoneField = new JTextField();

phoneField.setBounds(150, 130, 200, 30);

12
loginFrame.add(phoneField);

addressLabel = new JLabel("Address:");

addressLabel.setBounds(50, 180, 100, 30);

loginFrame.add(addressLabel);

addressField = new JTextField();

addressField.setBounds(150, 180, 200, 30);

loginFrame.add(addressField);

loginButton = new JButton("Login");

loginButton.setBounds(150, 230, 100, 30);

loginButton.addActionListener(this);

loginFrame.add(loginButton);

// Booking Frame

bookingFrame = new JFrame("Book a Cab");

bookingFrame.setSize(500, 400);

bookingFrame.setLayout(null);

bookingFrame.setVisible(false);

passengersLabel = new JLabel("Number of Passengers:");

passengersLabel.setBounds(50, 50, 150, 30);

bookingFrame.add(passengersLabel);

13
passengersField = new JTextField();

passengersField.setBounds(200, 50, 100, 30);

bookingFrame.add(passengersField);

carLabel = new JLabel("Select Car:");

carLabel.setBounds(50, 100, 100, 30);

bookingFrame.add(carLabel);

String[] cars = {"Range Rover", "Lamborghini", "Ferrari","Volkswagen"};

carComboBox = new JComboBox<>(cars);

carComboBox.setBounds(150, 100, 200, 30);

bookingFrame.add(carComboBox);

bookButton = new JButton("Book");

bookButton.setBounds(200, 150, 100, 30);

bookButton.addActionListener(this);

bookingFrame.add(bookButton);

confirmationLabel = new JLabel();

confirmationLabel.setBounds(50, 200, 400, 30);

bookingFrame.add(confirmationLabel);

loginFrame.setVisible(true);

14
}

public static void main(String[] args) {

new CabBookingSystem();

@Override

public void actionPerformed(ActionEvent e) {

if (e.getSource() == loginButton) {

String name = nameField.getText();

String email = emailField.getText();

String phone = phoneField.getText();

String address = addressField.getText();

if (!name.isEmpty() && !email.isEmpty() && !phone.isEmpty() &&


!address.isEmpty()) {

currentUser = name;

loginFrame.setVisible(false);

bookingFrame.setVisible(true);

} else {

JOptionPane.showMessageDialog(loginFrame, "Please fill in all


fields.");

} else if (e.getSource() == bookButton) {

String passengers = passengersField.getText();

15
String selectedCar = (String) carComboBox.getSelectedItem();

if (!passengers.isEmpty()) {

String[] details = {

"Name: " + currentUser,

"Number of Passengers: " + passengers,

"Selected Car: " + selectedCar

};

writeToFile(details);

confirmationLabel.setText("Booking confirmed. Details saved to


file.");

JOptionPane.showMessageDialog(bookingFrame, "Booking
Successful!");

} else {

JOptionPane.showMessageDialog(bookingFrame, "Please enter


number of passengers.");

private void writeToFile(String[] details) {

try (BufferedWriter writer = new BufferedWriter(new


FileWriter("passenger_details.txt", true))) {

for (String detail : details) {

writer.write(detail);

16
writer.newLine();

writer.newLine();

} catch (IOException e) {

e.printStackTrace();

17
OUTPUTS
Login Frame:

Booking Frame:

18
Combo Box:

Dialogue Box:

19
CONCLUSION
In conclusion, developing a GUI-based cab booking program
presents significant advantages in terms of enhancing user experience,
streamlining the booking process, and providing personalized service to
passengers. By collecting essential passenger details for login and offering real-
time car availability updates, the system aims to improve efficiency and customer
satisfaction in the transportation industry.

However, there are also challenges such as privacy concerns, dependency on real-
time updates, accessibility issues, storage overhead, and potential technical
challenges that need to be addressed to ensure the success and reliability of the
program.

Overall, the development of this GUI-based cab booking program represents a


promising step towards modernizing and optimizing transportation booking
services, offering convenience and reliability to passengers.

20

You might also like