top of page

Java Assignment Project: Hotel Management Project

Updated: Mar 19, 2021

This Hotel Management Project in Java is designed which can be used to manage activities

  • Storing customer details,

  • Booking rooms of four different types:

Room type :

1. Luxury Double Room

2.Deluxe Double Room

3. Luxury Single Room

4.Deluxe Single Room

  • Ordering food for particular rooms

==========

Menu:

==========

1. Sandwich Rs.50

2. Pasta Rs.60

3. Noodles Rs.70

4. Coke Rs.30

  • UnBooking rooms and showing the bill.

  • It can also be used to see different room features and room availibility.

  • It is a menu driven program and it runs until the user exits.

  • File handling has been used to store the current status of the hotel(customer details, booked rooms, food ordered) in a file once the program exits so that when we restart the program, the old details are not lost.

  • The program reads the file when it restarts to know the previous status of the hotel. Writing of file has been done in a separate thread as it can be done parallely.

  • User defined exception is thrown if the user tries to book an already allotted room. Exception handling is properly done to deal with any kind of unexpected exception.


Topics Covered-

  • Classes and Objects

  • Inheritance

  • File Handling with Objects

  • ArrayList

  • implementing Interface

  • User defined exception and Exception handling.



Project at a glance:


Enter your choice :

1.Display room details

2.Display room availability

3. Book

4.Order food

5.Checkout

6.Exit



Choose room type :

1. Luxury Double Room

2.Deluxe Double Room

3. Luxury Single Room

4.Deluxe Single Room



Number of double beds : 1

AC : Yes

Free breakfast : Yes

Charge per day:4000

Continue : (y/n)

y


Enter your choice :

1.Display room details

2.Display room availability

3.Book

4.Order food

5.Checkout

6.Exit

2


Choose room type :

1. Luxury Double Room

2.Deluxe Double Room

3. Luxury Single Room

4. Deluxe Single Room

4

Number of rooms available : 20

Continue : (y/n)

y

Enter your choice :

1.Display room details

2.Display room availability

3. Book

4.Order food

5.Checkout

6.Exit

3

Choose room type :

1. Luxury Double Room

2.Deluxe Double Room

3. Luxury Single Room

4.Deluxe Single Room

1

Choose room number from :

1,2,3,4,5,6,7,8,9,10,

Enter room number: 9

Enter customer name: Codersarts

Enter contact number: 120 411 8730


You can download this project source code at Github link

please let us know if you need such java related projects

Comments


bottom of page