Vivek TMS
Vivek TMS
System A
Report
On
‘Tourism Management System’
1
Bachelors of Computer Application
Tourism Management
System
Certificate
This is to certify that Vivek Kumar Shyarolia has carried out the project work presented in
this report entitled “Tourism Management System” for the award of Bachelor of
Computer Applications from Institute of Technology & Science, Mohan Nagar,
Ghaziabad, under my supervision. The report embodies result of original work and
studies carried out by Student himself and the contxents of the report do not form
the basis for the award of any other degree to the candidate or to anybody else.
Assistant Professor-IT
Institute of Technology & Science
Mohan Nagar, Ghaziabad
2
Bachelors of Computer Application
Tourism Management
System
ACKNOWLEDGEMENT
We extend our sincere appreciation to all those whose contributions have been
instrumental in the success of our group project. Without the support, guidance, and
collaboration of these individuals, our project would not have been possible.
First and foremost, we express our gratitude to our Director, Dr. Sunil Kumar
Pandey, Chairperson, Dr. Vidhusi Singh (BCA), Coordinator, Prof. Barkha Kakkar
(BCA), and Project Supervisor/Mentor, Prof. Saroj Kumari. Their valuable insights,
guidance, and encouragement were pivotal throughout the project, and we are
thankful for their dedication and expertise that enabled us to achieve our goals.
Once again, we sincerely thank everyone who played a role in the success of our
group project.
Signature:
3
Bachelors of Computer Application
Tourism Management
System
Abstract
This project delves into the development of a Tourism Management System (TMS)
designed to enhance the efficiency and user experience of booking and managing
tourism-related services. Utilizing a combination of Java, NetBeans IDE, MS
Access for the database, and GlassFish/Tomcat server for deployment, the system
offers a robust platform for users to book hotel stays and travel packages
seamlessly.
The core functionality of the TMS encompasses a user-friendly interface for both
customers and administrators. Customers can register, log in, search for available
hotels and packages, and make bookings with ease. Administrators, on the other
hand, can manage user accounts, handle bookings, and update available services.
The project commenced with a detailed system study, examining existing manual
processes and identifying key areas for automation and improvement. Following
this, the design and implementation phases focused on creating a scalable and
secure application, incorporating features such as real-time availability checks,
booking management, and feedback mechanisms.
4
Bachelors of Computer Application
Tourism Management
System
Table of Content
Acknowledgment...................................................................................................i
Abstract.................................................................................................................ii
List of Figures......................................................................................................iii
List of Abbreviations...........................................................................................iv
List of Tables........................................................................................................v
1. Introduction.......................................................................................................1-16
1.1. DBMS, Sql, Java, JDBC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 -12
1.2. Project Aim and Obejectives...................................................................13
1.3. System Study.....................................................................................13-14
1.4. Purpose....................................................................................................14
1.5. Scope.......................................................................................................14
1.6. Need for Purposed System......................................................................15
1.7. Features and Benefits..............................................................................15
1.8. Feasiblity Study . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....15-16
1.9. Operating Environment...........................................................................16
2. Software Specification Document...................................................................17-20
2.1. Introduction.............................................................................................17
2.2. Abbrevations...........................................................................................17
2.3. Overall Description.................................................................................18
2.4. User Classes and Characterstics..............................................................18
2.5. User Interface..........................................................................................19
5
Bachelors of Computer Application
Tourism Management
System
2.6. Operating Environment...........................................................................19
2.7. Technologies to be Used.........................................................................19
2.8. Hardware Interface..................................................................................19
2.9. Design and Implementation Constraints.................................................19
2.10. Minimum Hardware Requirements.........................................................20
3. System Design................................................................................................21-23
3.1. ER Diagram............................................................................................21
3.2. Schema diagram......................................................................................22
3.3. Data Flow Diagram.................................................................................23
4. Implementation..............................................................................................24-102
4.1. Database Description.........................................................................24-26
4.2. Snapshots...........................................................................................27-31
4.3. Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ......................31-51
5. Testing..................................................................................................................52
6. Conclusion.......................................................................................................53-54
7. Future Scope...................................................................................................55-56
8. Bibliography.........................................................................................................57
6
Bachelors of Computer Application
Tourism Management
System
List of Figures
7
Bachelors of Computer Application
Tourism Management
System
List of Abbreviations
8
Bachelors of Computer Application
Tourism Management
System
List of Tables
9
Bachelors of Computer Application
Tourism Management
System Chapter: 1
Introduction
1. Introduction
Fig 1
10
Bachelors of Computer Application
Tourism Management
System
Data Sharing: Multiple users can share Cost: High initial investment for hardware,
the same database simultaneously. software, and training.
Data Security: Provides high levels of Performance: Can be slower than file-based
security to protect data from systems for simple operations due to the
unauthorized access. overhead of managing the database.
Data Consistency: Ensures that data Maintenance: Regular updates and maintenance
remains consistent and accurate across are required to ensure efficient performance and
the database. security.
1.2. SQL
SQL (Structured Query Language) is a language used to operate databases,
including creating and deleting databases, fetching and modifying rows, etc.
SQL is the standard language for relational database systems like MySQL, MS
Access, Oracle, Sybase, Informix, Postgres, and SQL Server.
11
Bachelors of Computer Application
Tourism Management
System
1.3. Java
Java is a programming language created by James Gosling from Sun
Microsystems in 1991. Java is designed to be platform-independent, allowing
programs written in Java to run on any operating system. Over the years, new
and enhanced versions of Java have been released, with Java 1.8 (Java 8) being a
significant version.
1.4. JDBC
Java Database Connectivity (JDBC) is an API for connecting and executing
queries on a database. It provides methods to query and update data in a
12
Bachelors of Computer Application
Tourism Management
System
relational database and is an essential part of Java Standard Edition
13
Bachelors of Computer Application
Tourism Management
System
3. System Study
Information systems projects originate from many reasons: to achieve greater
speed in processing data, better accuracy and improved consistency, faster
information retrieval, integration of business areas, reduced cost, and better
security. Project proposals often originate from department managers, senior
executives, and system analysts, sometimes driven by external requirements
such as government regulations. When a request is made, the first system
activity, the preliminary investigation, begins. This includes request
clarification, feasibility study, and request approval.
14
Bachelors of Computer Application
Tourism Management
System
▪ Limited Feedback Mechanism: There is no efficient way for users to
provide feedback online.
4. Purpose
The Tourism Management System aims to enhance access to tourism
services, improve service continuity and efficiency, and provide a robust
platform for managing online bookings. It aims to link clients to services
effectively and handle intensive booking requirements.
5. Scope
This product has a broad future scope. The Tourism Management System will
be internet-based software developed for Windows and Linux environments.
It will provide secure login functionality to prevent unauthorized access,
ensuring that only authorized users can access the system.
15
Bachelors of Computer Application
Tourism Management
System
8. Feasibility Study
A feasibility study is a focused analysis to answer the following questions:
16
Bachelors of Computer Application
Tourism Management
System
▪ Development and Operational Costs: What are the costs involved in
developing and operating the system?
9. Operating Environment
▪ Processor
Required: Intel Core Processor or better
▪ Performance
Operating System: Windows 7, Windows 8, Windows 10, or Linux
Memory: 1GB RAM or more
Hard Disk Space: Minimum 3GB of free space
17
Bachelors of Computer Application
Tourism Management
System
Chapter: 2
Software Requirement Specification
1. Introduction
1.1. Purpose
The purpose of this document is to describe the requirements and
specifications for the development of a Tourism Management System. It
outlines the functional, behavioral, and nonfunctional requirements of the
system and provides guidelines for system engineers and designers to start
working on the project.
2. Abbreviations
TMS: Tourism Management System
GUI: Graphical User Interface
API: Application Programming Interface
HTML: HyperText Markup Language
CSS: Cascading Style Sheets
ER Diagram: Entity-Relationship Diagram
RAM: Random Access Memory
18
Bachelors of Computer Application
Tourism Management
System
3. Overall Description
o Functional Requirements
▪ User registration and authentication
▪ Search and display tour packages
▪ Booking and cancellation of tours
▪ Payment processing
▪ User profile management
o Nonfunctional Requirements
▪ Usability: The system should be easy to navigate and use.
▪ Performance: Response times should be optimized for user interactions.
▪ Security: User data should be encrypted and protected.
▪ Reliability: The system should be available 24/7 with minimal
downtime.
19
Bachelors of Computer Application
Tourism Management
System
5. User Interfaces
The user interface will include screens for login, tour search, booking,
payment, and user profile management. It will feature a modern and intuitive
design to enhance user experience.
6. Operating Environment
The Tourism Management System will operate in a web-based environment,
accessible through standard web browsers such as Chrome, Firefox, and
Safari. It will be hosted on a secure server with access to databases for storing
tour and user information.
7. Technologies to be Used:
8. Hardware Interface
The system will require standard hardware components including servers for
hosting the application, storage for databases, and network infrastructure for
communication.
11
Bachelors of Computer Application 0
Tourism Management
System
20
Bachelors of Computer Application
Tourism Management
System Chapter – 3
System Design
ER Diagram :
Fig 3
21
Bachelors of Computer Application
Tourism Management
System
Schema Diagram:
A database schema is the skeleton structure that represents the logical view of the
entire database. It defines how the data is organized and how the relations among
them are associated. It formulates all the constraints that are to be applied on the
data.
The database schema for the Tourism Management System is designed to manage
various aspects of user accounts, customer information, and booking details for both
packages and hotels.
Account:
username name password security answer
Customer:
username id id_number name gender country address phone email
Book package:
username package persons id id_number phone price
Book Hotel:
username hotel persons days ac food id id_number phone price
Hotel:
hotel cost_per_day food_charges ac_charges
22
Bachelors of Computer Application
Tourism Management
System
Data Flow Diagram:
Fig 4
23
Bachelors of Computer Application
Tourism Management
System Chapter - 4
Implementation
1. Database Description
24
Bachelors of Computer Application
Tourism Management
System
25
Bachelors of Computer Application
Tourism Management
System
1.4. Book Hotels Table
Table 5
26
Bachelors of Computer Application
Tourism Management
System
2. Snapshots:
27
Bachelors of Computer Application
Tourism Management
System
28
Bachelors of Computer Application
Tourism Management
System
29
Bachelors of Computer Application
Tourism Management
System
30
Bachelors of Computer Application
Tourism Management
System
31
Bachelors of Computer Application
Tourism Management
System
3. Code:
3.1. Home Page
package travel.management.system;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
mi1.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
new AddCustomer(username).setVisible(true);
}catch(Exception e ){}
}
});
mi2.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
new UpdateCustomer(username).setVisible(true);
}catch(Exception e ){}
}
});
mi3.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
new ViewCustomers().setVisible(true);
}catch(Exception e ){}
}
});
mi4.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
new DeleteCustomer().setVisible(true);
}catch(Exception e ){}
}
});
33
Bachelors of Computer Application
Tourism Management
System
JMenu m2 = new JMenu("PACKAGES");
m2.setForeground(Color.RED);
34
Bachelors of Computer Application
Tourism Management
System menuBar.add(m2);
mi6.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
new CheckPackage().setVisible(true);
}catch(Exception e ){}
}
});
mi7.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
new BookPackage(username).setVisible(true);
}catch(Exception e ){}
}
});
mi5.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
new ViewPackage(username).setVisible(true);
}catch(Exception e ){}
}
});
36
Bachelors of Computer Application
Tourism Management
System
m3.add(mi9);
JMenuItem mi10 = new JMenuItem("VIEW BOOKED HOTEL");
m3.add(mi10);
mi8.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
new BookHotel(username).setVisible(true);
}
});
mi9.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
new CheckHotels().setVisible(true);
}catch(Exception e ){}
}
});
mi10.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
new ViewBookedHotel(username).setVisible(true);
}catch(Exception e ){}
}
});
mi11.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
new Destination().setVisible(true);
}
});
38
Bachelors of Computer Application
Tourism Management
System m5.add(mi12);
mi12.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
new Payment().setVisible(true);
}
});
mi13.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
Runtime.getRuntime().exec("notepad.exe");
}catch(Exception e){ }
}
});
mi14.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
Runtime.getRuntime().exec("calc.exe");
}catch(Exception e){ }
}
});
mi15.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
new About().setVisible(true);
39
Bachelors of Computer Application
Tourism Management
System }
});
31
Bachelors of Computer Application 0
Tourism Management
System
setExtendedState(JFrame.MAXIMIZED_BOTH);
setVisible(true);
getContentPane().setBackground(Color.WHITE);
}
}
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.sql.*;
public Login() {
setBackground(new Color(255, 255, 204));
31
Bachelors of Computer Application 1
Tourism Management
System
textField = new JTextField();
textField.setBounds(210, 93, 157, 20);
panel.add(textField);
b1 = new JButton("Login");
b1.addActionListener(this);
b2 = new JButton("SignUp");
b2.addActionListener(this);
31
Bachelors of Computer Application 2
Tourism Management
System panel.add(b3);
st.setString(1, textField.getText());
st.setString(2, passwordField.getText());
ResultSet rs = st.executeQuery();
if (rs.next()) {
this.setVisible(false);
new Loading(textField.getText()).setVisible(true);
} else {
JOptionPane.showMessageDialog(null, "Invalid Login or Password!");
}
} catch (Exception e2) {
e2.printStackTrace();
}
}
if(ae.getSource() == b2){
setVisible(false);
Signup su = new Signup();
su.setVisible(true);
}
if(ae.getSource() == b3){
setVisible(false);
ForgotPassword forgot = new ForgotPassword();
forgot.setVisible(true);
}
}
31
Bachelors of Computer Application 3
Tourism Management
System public static void main(String[] args)
{ new Login().setVisible(true);
}
}
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
/**
* Launch the application.
*/
public static void main(String[] args)
{ EventQueue.invokeLater(new Runnable() {
public void run()
{ try {
AddCustomer frame = new AddCustomer("");
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
40
Bachelors of Computer Application
Tourism Management
System ImageIcon i2 = new ImageIcon(i3);
JLabel l1 = new JLabel(i2);
l1.setBounds(450, 40, 450, 420);
add(l1);
t7 = new JTextField();
t7.setBounds(271, 70, 150, 20);
contentPane.add(t7);
t7.setColumns(10);
t1 = new JTextField();
t1.setBounds(271, 150, 150, 20);
contentPane.add(t1);
t1.setColumns(10);
t2 = new JTextField();
t2.setBounds(271, 190, 150, 20);
contentPane.add(t2);
t2.setColumns(10);
41
Bachelors of Computer Application
Tourism Management
System contentPane.add(lblGender);
r1 = new JRadioButton("Male");
r1.setFont(new Font("Raleway", Font.BOLD, 14));
r1.setBackground(Color.WHITE);
r1.setBounds(271, 230, 80, 12);
add(r1);
r2 = new JRadioButton("Female");
r2.setFont(new Font("Raleway", Font.BOLD, 14));
r2.setBackground(Color.WHITE);
r2.setBounds(350, 230, 100, 12);
add(r2);
t3 = new JTextField();
t3.setBounds(271, 270, 150, 20);
contentPane.add(t3);
t3.setColumns(10);
t5 = new JTextField();
t5.setBounds(271, 310, 150, 20);
contentPane.add(t5);
t5.setColumns(10);
t6 = new JTextField();
t6.setBounds(271, 350, 150, 20);
contentPane.add(t6);
t6.setColumns(10);
42
Bachelors of Computer Application
Tourism Management
System
t8 = new JTextField();
t8.setBounds(271, 390, 150, 20);
contentPane.add(t8);
t8.setColumns(10);
try {
Conn c = new Conn();
ResultSet rs = c.s.executeQuery("select * from account where username = '" + username + "'");
while (rs.next()) {
t7.setText(rs.getString("username"));
t2.setText(rs.getString("name"));
}
} catch (Exception e) {
e.printStackTrace();
}
if (r1.isSelected())
{ radio = "Male";
} else if (r2.isSelected())
{ radio = "Female";
}
try {
String s9 = t7.getText(); //username
String s1 = (String) comboBox.getSelectedItem();
String s2 = t1.getText();
String s3 = t2.getText();
String s4 = radio;
String s5 = t3.getText();
String s7 = t5.getText(); //address
String s8 = t6.getText();
String s10 = t8.getText(); //email
43
Bachelors of Computer Application
Tourism Management
System } catch (NumberFormatException s)
{ JOptionPane.showMessageDialog(null, "Please enter a valid
Number");
}
}
});
btnNewButton.setBounds(100, 430, 120, 30);
btnNewButton.setBackground(Color.BLACK);
btnNewButton.setForeground(Color.WHITE);
contentPane.add(btnNewButton);
getContentPane().setBackground(Color.WHITE);
JLabel l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19;
JLabel caption;
Thread th;
l4.setVisible(true);
caption.setText("Four Seasons Hotel");
l4.add(caption);
Thread.sleep(2800);
l4.setVisible(false);
l5.setVisible(true);
caption.setText("Radisson Hotel");
l5.add(caption);
Thread.sleep(2800);
l5.setVisible(false);
l6.setVisible(true);
caption.setText("Classio Hotel");
l6.add(caption);
Thread.sleep(2800);
l6.setVisible(false);
l7.setVisible(true);
caption.setText("The Bay Club
Hotel"); l7.add(caption);
Thread.sleep(2800);
l7.setVisible(false);
l8.setVisible(true);
caption.setText("Breeze Blows Hotel");
l8.add(caption);
Thread.sleep(2800);
l8.setVisible(false);
l9.setVisible(true);
caption.setText("Quick Stop Hotel");
l9.add(caption);
Thread.sleep(2800);
l9.setVisible(false);
l10.setVisible(true);
caption.setText("Happy Mornings
Motel"); l10.add(caption);
Thread.sleep(2800);
l10.setVisible(false);
45
Bachelors of Computer Application
Tourism Management
System
l11.setVisible(true);
caption.setText("Moss View
Hotel"); l11.add(caption);
Thread.sleep(2800);
l11.setVisible(false);
this.setVisible(false);
} catch (Exception e) {
System.out.println(e);
}
}
public CheckHotels()
{ setBounds(580, 220, 900, 700);
getContentPane().setBackground(new Color(220, 250, 250));
th = new Thread(this);
setLayout(null);
ImageIcon i4 = new
ImageIcon(ClassLoader.getSystemResource("travel/management/system/icons/hotel2.jpg"));
Image i5 = i4.getImage().getScaledInstance(900, 700, Image.SCALE_DEFAULT);
ImageIcon i6 = new ImageIcon(i5);
l3 = new JLabel(i6);
l3.setBounds(0, 0, 900, 700);
add(l3);
l3.setVisible(false);
46
Bachelors of Computer Application
Tourism Management
System l4 = new JLabel(i9);
l4.setBounds(0, 0, 900, 700);
add(l4);
l4.setVisible(false);
47
Bachelors of Computer Application
Tourism Management
System l9.setVisible(false);
th.start();
}
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
CheckPackage()
{ setBounds(550, 220, 900,
600);
setLocationRelativeTo(null); // Center the window
setVisible(true);
48
Bachelors of Computer Application
Tourism Management
System String[] package1 = new String[]{"package1.jpg", "GOLD PACKAGE", "6 days and 7 Nights",
"Airport Assistance at Aiport", "Half Day City Tour", "Welcome drinks on Arrival", "Daily Buffet",
"Full Day 3 Island Cruise", "English Speaking Guide", "BOOK NOW", "Summer Special", "Rs 12000
only"};
String[] package2 = new String[]{"package2.jpg", "SILVER PACKAGE", "4 days and 3 Nights",
"Toll Free and Entrance Free Tickets", "Meet and Greet at Aiport", "Welcome drinks on Arrival",
"Night Safari", "Full Day 3 Island Cruise", "Cruise with Dinner", "BOOK NOW", "Winter Special",
"Rs 25000 only"};
String[] package3 = new String[]{"package3.jpg", "BRONZE PACKAGE", "6 days and 5
Nights", "Return Airfare", "Free Clubbing, Horse Riding & other Games", "Welcome drinks on
Arrival", "Daily Buffet", "Stay in 5 Star Hotel", "BBQ Dinner", "BOOK NOW", "Winter Special", "Rs
32000 only"};
JPanel p2 = createPackage(package2);
tabbedPane.addTab("Package 2", null, p2);
JPanel p3 = createPackage(package3);
tabbedPane.addTab("Package 3", null, p3);
add(tabbedPane, BorderLayout.CENTER);
}
49
Bachelors of Computer Application
Tourism Management
System JLabel lblId = new JLabel(pack[3]);
lblId.setForeground(Color.BLUE);
lblId.setBounds(35, 110, 200, 14);
p1.add(lblId);
return p1;
50
Bachelors of Computer Application
Tourism Management
System }
}
import java.awt.Color;
import java.awt.Container;
import java.awt.Font;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class Payment extends
setLayout(null);
setBounds(600, 220, 800,
600);
setLocationRelativeTo(null);
Test Steps to
cases Input Actual
Test case execute the Expected Result Pass/Fail
Data Result
No. test case
A message
After entering A proper message
the data click indicating the error was
Wrong displayed
Login should appear and
1 username on the login saying Pass
Screen the user should be
or password button Invalid
redirected to login
screen. username or
password
A message
A proper message
After entering indicating the error was
If any field the data click displayed
should appear and
2 Insertion was not saying Enter Pass
on the create the user should be
entered. all the
button redirected to
customer screen. details
properly
A message
A proper message
After entering indicating the error was
If any field the data click displayed
should appear and
3 Deletion was not saying Enter Pass
on the delete the user should be
entered. all the
button redirected to
customer screen. details
properly
A message
A proper message
After entering indicating the error was
If any field the data click displayed
should appear and
4 Update was not saying Enter Pass
on the update the user should be
entered. all the
button redirected to update
customer screen. details
properly
52
Bachelors of Computer Application
Tourism Management
System Chapter – 7
Conclusion
53
Bachelors of Computer Application
Tourism Management
System
1. Feature Enhancement:
▪ Real-Time Data Analytics: Integrating advanced data analytics tools to
provide real-time insights into user preferences, booking trends, and
service performance.
▪ Mobile Application Development: Expanding the system to include
mobile application support, allowing users to access services on-the-go.
55
Bachelors of Computer Application
Tourism Management
System
56
Bachelors of Computer Application
Tourism Management
System
Chapter: 9
Bibliography
YouTube :
[https://youtu.be/5vzCjvUwMXg]
[https://youtu.be/dwVj_g3TpZ4]
[https://youtu.be/L5RpqspNAuc]
57
Bachelors of Computer Application