CTOOD Project Document
CTOOD Project Document
CTOOD Project Document
On
SUBMITTED BY:
Dr. T. GANESAN
Assistant Professor
KL UNIVERSITY
Green fields, Vaddeswaram – 522 502
Guntur Dt., AP, India.
1
DEPARTMENT OF BASIC ENGINEERING SCIENCES
CERTIFICATE
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.
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
4 Class Diagram 10
5 Implementation 11-17
6 Outputs/ScreenShots 18-19
7 Conclusion 20x
5
INTRODUCTION
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: -
DISADVANTAGES: -
7
Future Implementation
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:
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;
JComboBox<String> carComboBox;
String currentUser;
CabBookingSystem() {
// Login Frame
loginFrame.setSize(400, 300);
11
loginFrame.setLayout(null);
loginFrame.add(nameLabel);
loginFrame.add(nameField);
loginFrame.add(emailLabel);
loginFrame.add(emailField);
loginFrame.add(phoneLabel);
12
loginFrame.add(phoneField);
loginFrame.add(addressLabel);
loginFrame.add(addressField);
loginButton.addActionListener(this);
loginFrame.add(loginButton);
// Booking Frame
bookingFrame.setSize(500, 400);
bookingFrame.setLayout(null);
bookingFrame.setVisible(false);
bookingFrame.add(passengersLabel);
13
passengersField = new JTextField();
bookingFrame.add(passengersField);
bookingFrame.add(carLabel);
bookingFrame.add(carComboBox);
bookButton.addActionListener(this);
bookingFrame.add(bookButton);
bookingFrame.add(confirmationLabel);
loginFrame.setVisible(true);
14
}
new CabBookingSystem();
@Override
if (e.getSource() == loginButton) {
currentUser = name;
loginFrame.setVisible(false);
bookingFrame.setVisible(true);
} else {
15
String selectedCar = (String) carComboBox.getSelectedItem();
if (!passengers.isEmpty()) {
String[] details = {
};
writeToFile(details);
JOptionPane.showMessageDialog(bookingFrame, "Booking
Successful!");
} else {
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.
20