Front Desk Module Specs


The documented modules are:
  1. Reservation
    • Called By:
      • Front Desk Menu
    • Calls:
      • Add Reservation
      • Delete Reservation
      • Modify Reservation
      • Display Menu
      • Get Menu Choice
    • Calling Sequence:
      1. Display Menu
      2. Get Menu Choice
      3. One or none of:
        • Add Reservation
        • Delete Reservation
        • Modify Reservation
    • Input:
      • Nothing
    • Output:
      • Nothing
    • Errors:
      • None
    • Description:
      • Allows the user to choose a function related to reservations. It uses the display menu and get menu choice functions to handle user interaction. If the user chooses no function, it returns to the caller.
  2. Rooms
    • Called By:
      • Front Desk Menu
    • Calls:
      • Search Rooms
      • Display Menu
      • Get Menu Choice
    • Calling Sequence:
      1. Display Menu
      2. Get Menu Choice
      3. One or none of:
        • Search Rooms
    • Input:
      • Nothing
    • Output:
      • Nothing
    • Errors:
      • None
    • Description:
      • Allows the user to choose a function related to searching for a room. It uses the display menu and get menu choice functions to handle user interaction. If the user chooses no function, it returns to the caller.
  3. Add Reservation
    • Called By:
      • Reservations
    • Calls:
      • Search Guest * guest ID
      • Add Guest * guest ID
      • Get Room Type * room type
      • Find Room Availability * room type
      • Get Arrival Date * arrival date
      • Get Duration of Stay * duration of stay
      • Get Check Out Date * check out date
      • Get Number of Occupants * number of occupants
    • Calling Sequence:
      1. Search Guest
      2. Add Guest
      3. Get Room Type
      4. Find Room Availability
      5. Get Arrival Date
      6. Get Duration Of Stay
      7. Get Check Out Date
      8. Get Number of Occupants
    • Input:
      • Nothing
    • Output:
      • In Room Relation
      • Booked By Relation
      • confirmation number
    • Errors:
      • No available rooms
    • Description:
      • Adds a reservation for the specified guest. If search guest fails, add guest is called for the new guest. Once all of the guest information is determined, an available room is found, and an in room and book by relation are added to the data stores. The confirmation number for the in room relation is display so that is can be conveyed to the customer.
  4. Delete Reservation
    • Called By:
      • Reservations
    • Calls:
      • Get Confirmation Number * confirmation number
    • Calling Sequence:
      1. Get Confirmation Number
    • Input:
      • Nothing
    • Output:
      • Deletes In Room relation
      • Deletes Booked By relation
    • Errors:
      • No such reservation
      • Guest already checked-in
    • Description:
      • Asks the user for a confirmation number and deletes the associated reservation relations (ie. In Room and Booked By) if the guest has not already checked in.
  5. Modify Reservation
    • Called By:
      • Reservations
    • Calls:
      • Get Confirmation Number * confirmation number
      • Get Arrival Date * arrival date
      • Get Duraction of Stay * duration of stay
      • Get Check Out Date * check out date
      • Get Number of Occupants * number of occupants
    • Calling Sequence:
      1. Get Confirmation Number
      2. Get Arrival Date
      3. Get Duration of Stay
      4. Get Check Out Date
      5. Get Number of Occupants
    • Input:
      • Nothing
    • Output:
      • Modified In Room relation
    • Errors:
      • No such reservation
    • Description:
      • Modify a reservation based on the confirmaiton number. The arrival date, duration of stay, check out date, and number of occupants can be changed.
  6. Seach Rooms
    • Called By:
      • Rooms
    • Calls:
      • Find Availability Of Rooms
      • Find Guest In Room
      • Display Menu
      • Get Menu Choice
    • Calling Sequence:
      1. Display Menu
      2. Get Menu Choice
      3. One or none of:
        • Find Availability Of Rooms
        • Find Guest In Room
    • Input:
      • Nothing
    • Output:
      • Nothing
    • Errors:
      • None
    • Description:
      • Displays a menu so the user can choose which of the room search functions to use. Uses display menu and get menu choice for user interaction.
  7. Find Availability Of Rooms
    • Called By:
      • Search Rooms
    • Calls:
      • Get Room Type * room type
      • Get Date * date
      • Find Free Room(room type, date)
      • Display List
    • Calling Sequence:
      1. Get Room Type
      2. Find Free Room
      3. Display List
    • Input:
      • Nothing
    • Output:
      • Nothing
    • Errors:
      • No rooms available
    • Description:
      • Finds the list of available rooms based on type and date. Uses display list to show the list once the rooms are found.
  8. Find Guest In Room
    • Called By:
      • Search Rooms
    • Calls:
      • Get Room Number * room number
      • Get Date * date
      • Find Guest ID(room number, date)
      • Display Guest ID
    • Calling Sequence:
      1. Get Room Number
      2. Get Date
      3. Find Guest ID
      4. Display Guest ID
    • Input:
      • Nothing
    • Output:
      • Nothing
    • Errors:
      • No guest in specified room on specified date
    • Description:
      • Determines which guest is in the specified room on a specific date. Uses get room number, get date, and display guest to handle user interaction.
  9. Guest
    • Called by:
      • Front Desk Menu
    • Calls:
      • Add *Guest Information
      • Delete *Guest Information
      • Modify *Guest Information
      • Search *Guest information
    • Calling Sequence:
      • Any sequence.
    • Input:
      • Click option
    • Output:
      • None
    • Errors:
      • None
    • Description:
      • Shows the menu functions for handling guest information.
  10. Add Guest
    • Called by:
      • Guest
    • Calls:
      • Read Guest Data *Guest Information
      • Check Guest Information *Guest Information
      • Save Guest Information *Guest Information
    • Calling Sequence:
      1. Read Guest Data *Guest Information
      2. Check Guest Information *Guest Information
      3. Save Guest Information *Guest Information
    • Input:
      • guest first name
      • guest last name
      • address
      • city
      • province/state
      • postal code/zip code
      • country
      • credit card type
      • credit card number
      • credit card name
      • type photo ID
      • discount name
      • discount percentage
    • Output:
      • guest ID
    • Errors:
      • All the data should have the right format, or the input would have to be repeated.
    • Description:
      • This function inputs the new guest information, into the Guest Data Base. It includes all the relevant data to the system. It calls one function to read all the data, then calls other function to verify the data. If all the information is correct then it saves it into the database. It returns the guest ID.
  11. Delete Guest

    The delete guest function should not exist. It would be better for us if you did not delete a guest from the database after their stay. Rather, keep a record up to a specified time as stated by law. (ie. eight years) This function should be used for backup purposes only. For example, all the data may not be kept on one server, in the event of backing up data this function may be used to delete data which has been stored on a backup server and is now duplicate. Was this the original intent of the function?


  • Modify Guest
  • Search Guest
  • In Room
  • Check In
  • Check Out
  • Print Invoice