The Amrita Deluxe Hotel Management System is a Java-based application that simulates the management of hotel guests, including checking in, checking out, placing food orders, and tracking room occupancy. It uses data structures like stacks, queues, and linked lists to manage hotel operations efficiently.
Features Check-In: Allows guests to check in and assigns them an available room. Check-Out: Processes guest check-out, calculates the total bill, and marks the room as available again. Display Available Rooms: Shows a list of all rooms that are currently available. Display Occupied Rooms: Shows a list of all rooms that are currently occupied and their respective guests. Search for a Guest: Allows searching for a guest by name to find their room number. Display All Guests: Lists all guests currently staying in the hotel. Display Total Number of Guests: Shows the total number of guests currently checked in. Place Food Order: Allows guests to order food items and adds the cost to their total bill. Implementation Details Guest Class: Represents a guest in the hotel with attributes like name, room number, food order, and total bill.
Methods include adding food items to the order and calculating the total bill. Data Structures:
Stack: Used to manage available rooms. Queue: Used to manage the order of occupied rooms. LinkedList: Used to keep track of all guests. Workflow Initialization:
Initialize available rooms using a stack. Main Menu:
Provides options for check-in, check-out, displaying room statuses, searching for guests, and placing food orders. Check-In:
Prompts for guest name and assigns the next available room from the stack. Adds the guest to the queue of occupied rooms and the list of all guests. Check-Out:
Prompts for guest name, removes them from the queue and the list of all guests. Marks the room as available again by pushing it back to the stack. Displays the total bill for the guest. Display Available and Occupied Rooms:
Prints the list of available rooms (from the stack) and occupied rooms (from the queue). Search for a Guest:
Searches the list of all guests by name and displays their room number if found. Display All Guests and Total Number of Guests:
Lists all guests along with their room numbers and displays the total count of guests. Place Food Order:
Allows guests to select food items from a predefined menu and adds the cost to their total bill.