Professional Documents
Culture Documents
HOTEL MANAGEMENT
Submitted by
Student Name:
Team Member 1: Mohamed Moyiz Khan
USN:
Team Member 1: 1BM20AI069
Student Signature:
Team Member 1:
Team Member 2:
Faculty Signature:
Comments:
with date
ABSTRACT
Hotel Management System is a crucial part of the hospitality industry and plays a significant
role in maintaining the day-to-day operations of a hotel. This system aims to automate
various processes such as room booking, billing, and inventory management. In this project,
we propose the development of a Hotel Management System using the Java programming
language. Java was chosen for its robustness, versatility, and platform-independent nature.
The system will have a user-friendly interface, making it accessible to hotel staff with
varying levels of technical expertise. The system will also have security features to ensure the
protection of sensitive information such as guest details and financial transactions.
The system will automate the booking process by allowing guests to check availability and
book rooms online. It will also provide real-time updates on room status, allowing hotel staff
to quickly respond to guest requests and allocate rooms efficiently. The billing process will
be streamlined, reducing the time and effort required to process payments and generate
invoices. The inventory management module will keep track of hotel supplies, reducing the
risk of stock shortages and ensuring that guests have access to the amenities they need.
In conclusion, the Hotel Management System developed using Java will provide a
comprehensive solution to the various challenges faced by hotels in managing their
operations. It will increase efficiency, improve guest satisfaction, and provide valuable
insights into hotel performance, helping hotel managers make informed business decisions.
1
TABLE OF CONTENTS
CHAPTER
TITLE PAGE NO.
NO.
ABSTRACT 1
TABLE OF CONTENTS 2
LIST OF FIGURES 3
INTRODUCTION 4
3 Missing Requirements 10
2
LIST OF FIGURES
CHAPTER
TITLE PAGE NO.
NO.
3 Output 13
3
INTRODUCTION
Java is a popular programming language known for its robustness, versatility, and platform-
independent nature. This makes it an ideal choice for developing a Hotel Management
System that can run on multiple platforms, including desktop and mobile devices. The system
will have a user-friendly interface and will provide various modules to automate various hotel
processes such as room booking, billing, and inventory management.
The Hotel Management System will make it easier for guests to check room availability,
book rooms online, and receive real-time updates on their reservation. The billing process
will be streamlined, reducing the time and effort required to process payments and generate
invoices. The inventory management module will ensure that the hotel is adequately stocked,
reducing the risk of stock shortages and ensuring that guests have access to the amenities they
need.
4
1.1. Use Case Diagram
Use case diagrams are a type of visual representation used in the field of software
engineering and systems analysis. They are used to capture and depict the functional
requirements of a system and show how the various actors within the system interact with
each other to achieve specific goals. A use case diagram typically consists of several
elements, including actors, use cases, and relationships. Actors represent the individuals or
systems that interact with the system being analyzed. Use cases represent the specific goals or
functions that the actors can perform within the system. Relationships between actors and use
cases, such as includes and extends, are depicted using lines or arrows.
5
1.2. Class Diagram
A class diagram in UML (Unified Modeling Language) is a type of diagram that represents
the classes and objects in a system, and the relationships between them. A class is a blueprint
or template that defines the attributes and behaviors of objects in a system. Objects are
instances of classes, and they represent the real-world entities in a system.
6
2.1. Activity Diagram
In an activity diagram, activities are represented as rounded rectangles, and the flow between
activities is depicted using arrows. The arrows show the order in which activities are
performed, and the relationships between different activities. Activity diagrams can also
include decision points, represented as diamonds, which are used to model conditional flows
in the system.
7
Fig. 2.1. Activity Diagram
Activity diagrams can be used to model a wide range of processes, including business
processes, software processes, and system processes. They are useful for representing
complex processes and for visualizing the flow of activities in a system. By using activity
diagrams, it is possible to identify potential issues and bottlenecks in a process, and to make
improvements to the flow of activities.
In a sequence diagram, objects are represented as horizontal lines, and the interactions
between objects are depicted as vertical arrows. The arrows show the flow of messages
between objects, and the order in which they are sent and received. The sequence diagram
can also include lifelines, which represent the objects' existence over time, and activation
bars, which represent the amount of time an object is performing an action.
Sequence diagrams are particularly useful for representing complex interactions between
objects, and for visualizing the flow of messages between objects. They can be used to model
9
the interactions between objects in a system, to identify potential issues, and to make
improvements to the design of a system.
The code :
import java.util.Scanner;
11
Room room = rooms[roomNumber - 1];
if (!room.isAvailable()) {
System.out.println("Room not available. Try another room.");
return;
}
room.setAvailable(false);
System.out.println("Room reserved successfully!");
}
private static void cancelReservation() {
System.out.print("Enter room number: ");
int roomNumber = sc.nextInt();
if (roomNumber < 1 || roomNumber > 10) {
System.out.println("Invalid room number. Try again.");
return;
}
Room room = rooms[roomNumber - 1];
if (room.isAvailable()) {
System.out.println("Room is already available.");
return;
}
room.setAvailable(true);
System.out.println("Reservation cancelled successfully!");
}
}
class Room {
private int roomNumber;
private boolean available;
public Room(int roomNumber) {
this.roomNumber = roomNumber;
this.available = true;
}
public int getRoomNumber() {
return roomNumber;
}
public boolean
The Output:
12
Fig. 3. Output
13