You are on page 1of 47

A

Project Report
On
ONLINE HOTEL BOOKING SYSTEM
Submitted by
Ms. Laxmi Maroti Badkhal
Roll No.: 21202
Class: MCA- I
Guided by
Dr. Milind Godase
For the Academic Year 2021-22

Sinhgad Technical Education Society’s

SINHGAD INSTITUTE OF
MANAGEMENT,

Vadgaon Bk, Pune

(Affiliated to Savitribai Phule Pune University,


Approved by AICTE & Accredited by National Board
of Accreditation, New Delhi)

Online Hotel Booking


CERTIFICATE

This is to certify that Ms. Laxmi Maroti Badkhal, has successfully completed her project
work entitled “Online Hotel Booking System” in partial fulfillment of MCA-I SEM-I Mini
Project for the year 2021-2022. She has worked under our guidance and direction.

Dr. Milind Godase Dr. Chandrani Singh

Project Guide Director, SIOM-MCA

Examiner 1 Examiner 2

Date:

Place:

Online Hotel Booking


DECLARATION

I certify that the work contained in this report is original and has been done by us under the
guidance of my supervisor(s).

 The work has not been submitted to any other Institute for any degree or diploma.

 I have followed the guidelines provided by the Institute in preparing the report.

 I have conformed to the norms and guidelines given in the Ethical Code of Conduct of
the Institute.

 Whenever I have used materials (data, theoretical analysis, figures, and text) from
other sources, I have given due credit to them by citing them in the text of the report
and giving their details in the references.

Name and Signature of Project Team Members:

Sr. No. Seat No. Name of students Signature of students

1 20128 Laxmi Maroti Badkhal

Online Hotel Booking


ACKNOWLEDGEMENT

It is my pleasure in expressing our sincerest and deepest sense of gratitude towards our guide
Dr. Milind Godase for the assistance, valuable guidance and co- operation in carrying out this
Project successfully. I have developed this project with the help of Faculty members of our
institute and we are extremely grateful to all of them. I also take this opportunity to thank Dr.
Chandrani Singh, Director SIOM(MCA), for providing the required facilities in completing
this project. I am greatly thankful to my parents, friends and faculty members for their
motivation, guidance and help whenever needed.

Thank You,

Laxmi Maroti Badkhal

Online Hotel Booking


INDEX

Chapter Page number

Chapter 1 : INTRODUCTION 1-4

1.1 Existing System and Need for System 2

1.2 Scope of Work 3

1.3 Operating Environment - Hardware and Software 4

Chapter 2 : PROPOSED SYSTEM 5-7

2.1 Proposed System (Introduction of system) 5

2.2 Module specifications (Scope) 6

2.3 Objectives of System 7

Chapter 3 :ANALYSIS & DESIGN 8-24

3.1 Class Diagram 8


3.2Object Diagram 9
3.3 Component Diagram 10
3.4 Deployment Diagram (In case of Web Deployment) 11
3.5 Use Case Diagrams 12-14
3.6 Activity Diagram 15-17
3.7 Sequence Diagram 18-20
3.8 Collaboration Diagram 21
3.9 State Chart Diagram 22
3.10 Table Specifications (Database Design) 23-24
3.11 Data Dictionary 25
Chapter 4 : USER MANUAL 26-41
4.1 User Interface Screens with data (Input/ Output) 26-38

4.2 Sample program code 39-40

4.3 Limitations and Bibliography 41-42

Online Hotel Booking


INTRODUCTION

• Hotel management in is one of the leading businesses.


• They operate their business in Malaysia, Singapore and other South East Asia. Any
customers need to book hotel, ins or apartment they need to visit their office which is
Near Mulik Niwas, Shinde Chowk, Goldfinch Peth for checking the availability as
well as negotiation. Recently they have decided to change their booking pattern from
manual to web based system. It will help them to manage the customers booking
easily and also to keep the customers data more safe. It will also help staffs to keep in
track their customer’s online booking request as well as easily to reply feedback to the
customers.
• Travellers can book rooms on a computer by using online security to protect their
privacy and financial information and by using several online travel agents to compare
prices and facilities at different hotels.
• Prior to the Internet, travellers could write, telephone the hotel directly, or use a travel
agent to make a reservation. Nowadays, online travel agents have pictures of hotels
and rooms, information on prices and deals, and even information on local resort.
• Online hotel reservation are also helpful for making last minute travel arrangements.
Hotels may drop the price of a room if some rooms are still available.

Online Hotel Booking


Existing System

1.The existing system is manual system. This system requires more time for the getting
customers.
2.In the existing system all the tracking of booking is done manually.
3.The inventory management in this system is done physically were manager have to check
the availability.
4.When the order is placed by the customer the manager have to prepare the inventory chart
so its takes more time and requires paper work.
5.In this system there might be a chance of mistake done by manager while making bill for
customer.
6.Without digital system implementation they have to face old models products loss.

Need for System

• To Reduce management costs 


• To Developing Digital Business Relation
• To Increasing the number of customer
• To Boosting the efficiency of services
• To Increasing sales 
• To provide all records & inventory updates. 
• To provide easy orders management 
• To provide easy product management
• To provide easy bill generation.
• To avoid manual errors

Online Hotel Booking


Scope of Work

 In this particular proposed system the customers can directly view hotel rooms
from their comfortable homes and book the rooms without any hassle.
 Customer can also see first of all if the room are available or not. They can
check and then select whichever room they prefer.
 Customers can pay using any mode and then they can see their particular
booking details on the site and then they can collect the generated receipt.
 They can also delete their booking and get a refund under the hotel policies as
per the hotel guidelines which they can find online.

Online Hotel Booking


System Requirement

• Software Requirement:
• Operating System : Windows 8 or above Database
• Database : MySQL Database
• Software : MySQL-Connector, eclipse
 
• Hardware Requirement:
• Processor : 2nd generation Intel Core CPU with support Windows
• RAM : 4 GB RAM

Online Hotel Booking


PROPOSED SYSTEM

• System needs store information about new entry of Hotel.


• System needs to help the internal staff to keep information of Rooms and find them as
per various queries.
• System need to maintain quantity record.
• System need to keep the record of Services.
• System need to update and delete the record.
• System also needs a search area.
• It also needs a security system to prevent data .

Online Hotel Booking


Modules

 Admin Module
 Customer’s Module
 Room Module
 Reservation Module

Online Hotel Booking


Objectives of System:-

Hotel Booking System is to manage the details of Hotel, Payments, Room, Services,
Customers. It manages all the information about Hotel, Booking, Customers, Hotel. The
project is totally built at administrative end and thus only the administrator is guaranteed the
access. The purpose of the project is to build an application program to reduce the manual
work for managing the Hotel, Payments, Booking, Rooms, It tracks all the details about the
Rooms, Services, Customers.

Online Hotel Booking


ANALYSIS & DESIGN

Class Diagram

Online Hotel Booking


Object Diagram:-

Online Hotel Booking


Component Diagram :-

10

Online Hotel Booking


Deployment Diagram:-

11

Online Hotel Booking


Use Case Diagrams :-
1. Admin Module:

12

Online Hotel Booking


2. Customer Module:

13

Online Hotel Booking


3.Room Booking :

14

Online Hotel Booking


Activity Diagram :-

1.Admin Module

15

Online Hotel Booking


2.Customer Module:

16

Online Hotel Booking


3.Room Module:

17

Online Hotel Booking


Sequence Diagram :-

1. Admin Module:

18

Online Hotel Booking


2. Customer Module:

19

Online Hotel Booking


3. Room Module

20

Online Hotel Booking


Collaboration Diagram:-

21

Online Hotel Booking


State Chart Diagram :-

22

Online Hotel Booking


Table Specifications (Data Design)
TABLE : admin
FIELD NAME DATA TYPE SIZE CONSTRAINT
admin_id Int 11 PRIMARY KEY
name Varchar 30 NOT NULL
username Varchar 30 NOT NULL
password Varchar 30 NOT NULL

TABLE : guest
FIELD DATA TYPE SIZE CONSTRAINT
guest_id Int 11 PRIMARY KEY
firstname Varchar 50 NOT NULL
middlename Varchar 30 NOT NULL
lastname Varchar 40 NOT NULL
address Varchar 50 NOT NULL
contactno Varchar 13 NOT NULL

23

Online Hotel Booking


TABLE : room
FIELD DATA TYPE SIZE CONSTRAINT
room_id Int 11 PRIMARY KEY
room_type Varchar 50 NOT NULL
price Varchar 11 NOT NULL
photo Varchar 100 NOT NULL
photo_path Varchar 500 NULL

TABLE : travel
FIELD DATA TYPE SIZE CONSTRAINT
id Int 11 PRIMARY KEY
apply_date Date NULL
day Int 11 NULL
departure_date Date NULL
status Varchar 45 NULL
room_id Int 11 NULL
room_no Int 11 NULL
extra_bed Int 11 NULL
bill Double NULL

24

Online Hotel Booking


DATA DICTIONARY
FIELD NAME DATA TYPE SIZE DESCRIPTION TABLE NAME CONSTRAINTS

Admin_Id Int 11 Represent Admin_Id admin PRIMARY KEY

Name Varchar 30 Represent Name admin NOT NULL

Username Varchar 24 Represent Username admin NOY NULL

Password Varchar 24 Represent Password admin NOT NULL

Guest_Id Int 11 Represent Guest_Id guest PRIMARY KEY

Firstname Varchar 50 Represent Firstname guest NOT NULL

Middlename Varchar 50 Represent Middlename guest NOT NULL

Lastname Varchar 40 Represent Lastname guest NOT NULL

Address Varchar 50 Represent Address guest NOT NULL

ContactNo Varchar 13 Represent ContactNo guest NOT NULL

Room_Id Int 11 Represent Room_Id room PRIMARY KEY

travel

Room_Type Varchar 50 Represent Room_Type room NOT NULL

Price Varchar 11 Represent Price room NOT NULL

Photo Varchar 100 Represent Photo room NOT NULL

Photo_Path Varchar 500 Represent Photo_path room NULL

Id Int 11 Represent Id travel PRIMARY KEY

Apply_Date Date Represent Apply_Date travel NULL

Day Int 11 Represent Day travel NULL

Departure_Date Date Represent Departure_Date travel NULL

Status Varchar 45 Represent Status travel NULL

Room_No Int 11 Represent Room_No travel NULL

Extra_Bed Int 11 Represent Extra_Bed travel NULL

Bill double Represent Bill travel NULL

Online Hotel Booking


25

User Interface Screens

Home:

Online Hotel Booking


26

Contact Page:

Online Hotel Booking


27

Admin Login:

Online Hotel Booking


28

Admin Home:

Online Hotel Booking


29

Create Account:

Online Hotel Booking


30

Customer Registration:

Online Hotel Booking


31

Make a Reservation View:

Online Hotel Booking


32

View of Reservation:

Online Hotel Booking


33

Room Reservation View:

Online Hotel Booking


34

After Reservation:

1.Pending Status:

Online Hotel Booking


35

2.Check-In Status:

Online Hotel Booking


36

3.Check-Out Status:

Online Hotel Booking


37

Add Room :

Online Hotel Booking


38

Sample Code

AddAccount

package com.admin;

import java.io.IOException;

import java.sql.Connection;

import java.sql.ResultSet;

import java.sql.Statement;

import com.connection.DatabaseConnection;

import jakarta.servlet.ServletException;

import jakarta.servlet.annotation.WebServlet;

import jakarta.servlet.http.HttpServlet;

import jakarta.servlet.http.HttpServletRequest;

import jakarta.servlet.http.HttpServletResponse;

import jakarta.servlet.http.HttpSession;

@WebServlet("/CustomerLogin")

public class CustomerLogin extends HttpServlet {

private static final long serialVersionUID = 1L;

Online Hotel Booking


39

protected void doPost(HttpServletRequest request, HttpServletResponse response)

throws ServletException, IOException {

String username = request.getParameter("username");

String password = request.getParameter("password");

try {

HttpSession hs = request.getSession();

Connection con = DatabaseConnection.getConnection();

Statement st = con.createStatement();

ResultSet rs = st.executeQuery("select * from admin where username='" +


username + "' and password='" + password + "'");

if (rs.next()) {

hs.setAttribute("uname", username);

response.sendRedirect("home.jsp");

} else {

response.sendRedirect("customerLogin.jsp");

} catch (Exception e) {

e.printStackTrace();

} 40

Online Hotel Booking


LIMITATIONS

 You can not compare price with other sites.


 You can not seen room before booking .
 You can not locality of hotel.
 You don’t know the behavior of staff.

41

Online Hotel Booking


Bibliography

Book Reference:-

 System Analysis and Design(Second Edition) by Elias M. Awad, Galgotia


Publications Pvt. Ltd.
 Software Engineering : A Practitioner’s Approach (Seventh Edition)by James A.
Senn, McGraw Hill International Editions.
 Beginning Database with MYSQL, From Novice to Professional,2nd Edition by
Richard Stones, Neil Matthew.
 Complete Reference Java by-McGraw Hill
 Education Murchas MYSQL
 System Analysis and design – Alias M.Awad

Web Reference:-

 http://www.w3schools.com/java/
 http://www.mysql.com/products/connector/

42

Online Hotel Booking

You might also like