- Reservation
- Called By:
- Calls:
- Add Reservation
- Delete Reservation
- Modify Reservation
- Display Menu
- Get Menu Choice
- Calling Sequence:
- Display Menu
- Get Menu Choice
- One or none of:
- Add Reservation
- Delete Reservation
- Modify Reservation
- Input:
- Output:
- Errors:
- 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.
- Rooms
- Called By:
- Calls:
- Search Rooms
- Display Menu
- Get Menu Choice
- Calling Sequence:
- Display Menu
- Get Menu Choice
- One or none of:
- Input:
- Output:
- Errors:
- 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.
- Add Reservation
- Called By:
- 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:
- Search Guest
- Add Guest
- Get Room Type
- Find Room Availability
- Get Arrival Date
- Get Duration Of Stay
- Get Check Out Date
- Get Number of Occupants
- Input:
- Output:
- In Room Relation
- Booked By Relation
- confirmation number
- Errors:
- 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.
- Delete Reservation
- Called By:
- Calls:
- Get Confirmation Number * confirmation number
- Calling Sequence:
- Get Confirmation Number
- Input:
- 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.
- Modify Reservation
- Called By:
- 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:
- Get Confirmation Number
- Get Arrival Date
- Get Duration of Stay
- Get Check Out Date
- Get Number of Occupants
- Input:
- Output:
- Modified In Room relation
- Errors:
- 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.
- Seach Rooms
- Called By:
- Calls:
- Find Availability Of Rooms
- Find Guest In Room
- Display Menu
- Get Menu Choice
- Calling Sequence:
- Display Menu
- Get Menu Choice
- One or none of:
- Find Availability Of Rooms
- Find Guest In Room
- Input:
- Output:
- Errors:
- 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.
- Find Availability Of Rooms
- Called By:
- Calls:
- Get Room Type * room type
- Get Date * date
- Find Free Room(room type, date)
- Display List
- Calling Sequence:
- Get Room Type
- Find Free Room
- Display List
- Input:
- Output:
- Errors:
- Description:
-
Finds the list of available rooms based on type and date. Uses display list
to show the list once the rooms are found.
- Find Guest In Room
- Called By:
- Calls:
- Get Room Number * room number
- Get Date * date
- Find Guest ID(room number, date)
- Display Guest ID
- Calling Sequence:
- Get Room Number
- Get Date
- Find Guest ID
- Display Guest ID
- Input:
- Output:
- 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.
- Guest
- Calls:
- Add *Guest Information
- Delete *Guest Information
- Modify *Guest Information
- Search *Guest information
- Description:
- Shows the menu functions for handling guest information.
- Add Guest
- Calls:
- Read Guest Data *Guest Information
- Check Guest Information *Guest Information
- Save Guest Information *Guest Information
- Calling Sequence:
- Read Guest Data *Guest Information
- Check Guest Information *Guest Information
- 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
- 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.
- 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?
- Calls:
- Search Guest (guest ID, last name, room number)
- Second time question
- Calling Sequence:
- Search Guest
- Ask twice for confirmation
- Input:
- guest ID
- guest last name
- guest room number
- Output:
- Confirmation of guest erased.
- Errors:
- Guest not found in the Guest Data Base.
- Description:
- The function will allow the user to delete a guest from the guest Data Base. First
calls a function that search the guest by ID and/or last name and/or room
number. When the guest is found, it calls a function for the confirmation of
the erase function, when the confirmation is received the guest is deleted from
the data base. If the guest is not found in the Data Base, it will return an
error message stating it.
- Modify Guest
- Calls:
- Search Guest (guest ID, last name, room number)
- Display Information *Guest Information
- Check new Information *Guest Information
- Save Changes *Guest Information
- Calling Sequence :
- Search Guest (guest ID, last name, room number)
- Display Information *Guest Information
- Check new Information *Guest Information
- Save Changes *Guest Information
- Output:
- Confirmation of changes made.
- Errors:
- Guest not found in the Guest Data Base.
- Description:
- The function will allow the user to change/modify some information of the guest
data base. It calls a function that search the guest information, then it
calls a function to display all the information that matched the search
the user the choose the guest data for making the changes. After
that, it calls a function that checks the new input. If the input is correct
then calls a function that saves the new data into the data base. If the
guest is not found, there is no changes. At the end of the function it displays
the confirmation of the changes made.
- Search Guest
- Calls:
- Search Guest (guest ID, last name, room number)
- Display Information *Guest Information
- Calling Sequence:
- Search Guest (guest ID, last name, room number)
- Display Information
- Input:
- Guest ID and/or last name and/or room number
- Errors:
- Guest not found in Guest Data Base
- Description:
- This function allow the user to view all the relevant guest information of the guest
in the guest data base. It calls a function that sear the guest information.
Then it shows all the matches found with the search by calling the display
function. If there is no guest match, then it show an error message.
- In Room
- Calling Sequence:
- Check In
- Check Out
- Description:
- A menu to select whether you want to check a guest into the
hotel, or check them out.
- Check In
- Calls:
- get reservation
- get guest info
- Calling Sequence:
- get reservation
- get guest info
- Description:
- Checks the guest into the hotel. If they have a reservation,
then it calls get reservation to get the guest info. Get
guest info is called to get all the information if not present
on the system, or if there is no reservation.
- Check Out
- Calls:
- Generate Invoice
- Add available room status
- Add to cleaning schedule
- Check out guest status
- Calling Sequence:
- Generate Invoice
- Add available room status
- Add to cleaning schedule
- Check out guest status
- Description:
- The guest checks out, and the system generates an invoice, by
calling Generate Invoice. Then the room status of the guest's
room(s) are changed to available, and the cleaning schedule
is updated to include the room(s). The guest's status is
also updated to indicate they've checked out.
- Print Invoice
- Calling Sequence:
- get invoice
- Description:
- The guest's invoice is obtained through get invoice, and
the invoice is printed out to the screen and/or the printer
if necessary.