Building a Reservation System for a New Fancy Hotel

What is needed to build a system that manages guest reservations for a new fancy hotel?

Overview of the Reservation System

A new fancy hotel has requested your help to build a system to manage guests’ reservations. The hotel has 6 categories of rooms with varying capacities. The price for each room depends on the type, capacity, and number of nights. Your program will handle making new reservations and check-outs for guests. The system needs to be equipped with features to ask guests for their reservation details, check room availability, update room availability, and generate a daily summary for management. The program must utilize loops, lists, functions, and files for effective functionality. To begin building the reservation system, you will first be provided with a text file named "room_details.txt". This file contains essential details about the rooms offered by the hotel. Each line in the file represents a room category and is formatted with information such as the category name, number of rooms, capacity, price per night, price per 7 nights, price per 30 nights, and the number of rooms already occupied. The details in each line are separated by commas. LoadDetails Function The initial function you need to create is called LoadDetails. This function is responsible for reading each line from the text file and storing the room details in a multidimensional list. By separating the details in each line, the data can be effectively used by the reservation system. Since the number of guests interacting with the system is not predetermined, a loop will be employed to handle each guest request. The loop will continue until the user indicates that there are no more details to process by entering the letter 'q'. CheckAvailability Function To check the availability of a particular room, you need to create a function called CheckAvailability. This function will accept three input parameters - roomData (details of rooms), category (desired room category), and numberOfGuests (number of guests). The function will utilize the provided data to determine if a room matching the category and capacity is available. If a room is available, the function will return True along with the index location of the available room; otherwise, it will return False. CalculatePrice Function The CalculatePrice function is designed to calculate the price of a guest's reservation. With input parameters of roomData, durationOfStay, and roomIndex, the function will determine the rate based on the room category and size, taking into consideration the duration of the stay. Once calculated, the function will return the final price for the reservation. CreateSummary Function To provide a summary of room availability, you will create the CreateSummary function. This function will accept the roomData as an input parameter and display essential information for each room category, including the category name and the number of rooms occupied. UpdateTextFile Function The final function, UpdateTextFile, will be responsible for saving all updated information back into the "room_details.txt" file. By replacing the old information with the new data, the program ensures that the correct information is loaded when the system runs again. By following these guidelines and incorporating loops, lists, functions, and files as required, you will successfully construct a reservation system for the new fancy hotel. Remember that adherence to the specified system requirements and accurate user input validation are crucial for the program to function effectively.

← Cut off time for the 8 slowest female high school athletes in maine Understanding decreases in net assets in business →