e23: hotel management system · e23: hotel management system author: 1302509 zhao ruimin 1301478...
TRANSCRIPT
E23: Hotel Management System
Author: 1302509 Zhao Ruimin
1301478 Wen Yunlu
1302575 Hu Xing
1301911 Chen Ke
1302599 Tang Haoyuan
Module: EEE 101
Lecturer: Dr.Lin
Date: December/22/2014
Contents
Contents i
1 Functionality 1
2 Usage Method 2
2.1 Obtain the permission to use this system . . . . . . . . . . . . . . . . . . . 2
2.2 Establish the database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.3 Booking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.4 Check in and out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.5 Other Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.5.1 Set discount for early booking . . . . . . . . . . . . . . . . . . . . . . 8
2.5.2 Modify the element of certain room . . . . . . . . . . . . . . . . . . 9
2.5.3 Apply for VIP credit . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3 Limitation 10
i
Section 1
Functionality
This system works as a Hotel Management System which is able to conduct operations in
primarily five user type. The basic functions include:
• manager
– add new room with information including price, discount, class etc.
– search out certain room and mend the information that has been already stored
– search out rooms that are booked more than one month in advance and set
discount for them
• booking operator
– check whether the customer is VIP or not
– apply VIP for customer whose information has not been stored in VIP customer
database
• search facility
– search out available rooms base on the dates information stored in it
– book more than one rooms with one set of customer information
• check in operator
– record the actual arrival date
– mend the room information or customer information
• check out operator
– calculate the expense based on the days the customer has stayed and the room
price and discount
– set discount for the room
1
Section 2
Usage Method
2.1 Obtain the permission to use this system
• Open the system
– As shown in Figure 2.1(a), when this system was opened, a basic introduction
of how to use this system is displayed on the screen.
• Enter password
– As shown in Figure 2.1(b), the correct password is required to be entered in
order to obtain the permission of using this system.
– The originally set password is “a”. If the owner of this system wants to change
the password, he/she can directly change the code by modifying the place as
shown in Figure 2.2 in its “.c” file.
• Enter the system successfully
– As shown in Figure 2.1(c), the main choice menu is displayed after the correct
password is entered by the user. The user is now allowed to conduct any
available operations in this system starting from this choice.
2
(a) (b)
(c)
Figure 2.1: Obtain the permission to use this system
Figure 2.2: The place to change the code
3
2.2 Establish the database
It is assumed that this is the first time to use this system, therefore no database file exist
at the beginning. Consequently, after obtaining the permission of using this system, the
first step is to establish the database of the room information.
(a) (b)
Figure 2.3: First time to use this system
(a) (b)
Figure 2.4: The place to change the code
4
• Choose selection “7” to “see all the room information”
– As shown in Figure 2.3(a), matching the announcement illustrated above, the
database file does not exist when it is the first time to use this system.
– Then, press “Enter” to continue, the program will lead to the initialization
section to establish the database file
• Establish the database by adding new rooms
– As shown in Figure 2.3(b), two ways of establishing database file are available:
– Choice “1” leads to the user type of manager, and then user can add room
one by one and set different corresponding information for different room; The
user can add any number of room as long as the total number of rooms is no
more than 100.
– Sample of adding room as user type of manager can be seen in Figure 2.4(a)
– Choice “2” leads to the function of initialization(), and then the 100 rooms
will all be initialized with 4 different types of rooms
– The initialization type of choice “2” can be also modified by changing the code
place as shown in Figure 2.4(b)
• Return to the main choice menu
– After the operation of establishing the database, the program will return back
to the main choice menu as shown in Figure 2.3(b) (for the manager way,
choice “5” in the manager manu as shown in Figure 2,4(b)to return to the
main choice menu).
5
2.3 Booking
After establishing the database file, the next step is probably to book rooms:
(a) (b)
Figure 2.5: Search available rooms
(a) (b)
Figure 2.6: Complete the Booking
• Choose “2” to book rooms
– As shown in Figure 2.5(a), when booking the room, the user is firstly asked to
apply for VIP credit(in this case, not applying because this section of illustration
focuses on booking), then the the planned arrival date and leaving date should
be entered as well.
– Attention: The date form should be “20140101”. The first four digits represent
year, the next two represent month and the last two represent day. This form
is applied because there are other operations using calculation based on the
6
conversion of this form of date(when calculating the interval of arrival date and
leaving date for example).
• Display the available rooms
– The rooms that are empty during the planned staying interval are printed out
on the screen.
• Enter the booked date as shown in Figure 2.6.
2.4 Check in and out
(a) (b)
Figure 2.7: Check in and Check out
• Check in
– As shown in Figure 2.7(a), enter telephone number, search out the correspond-
ing room and display the room information.
– if wanting to book more room, the user can make choice as shown in the bottom
section of Figure 2.7(a)
• Check out
– As shown in Figure 2.7(b), enter telephone number, search out the correspond-
ing room and display the room information.
– if the customer is dissatisfied, the user can set discount by making choice as
shown in the bottom section of Figure 2.7(b)
7
2.5 Other Operation
2.5.1 Set discount for early booking
Figure 2.8: Discount and expense
• Search early booked rooms
– Choose “4” in manager function menu to search out rooms that are booked
more than one month in advance(the interval days of booking date and arrival
date is bigger than 30)
• Display the searched room information
– As shown in Figure 2.8, the displayed room is indeed early booked in advance
for more than 30 days
– Enter room number of the room that is going to be set discount(in this case,
the entered room number should be “2”)
8
2.5.2 Modify the element of certain room
Take modifying the price for example:
(a) (b)
Figure 2.9: Modify price
• In manager function menu choose “mend rooms”
• Choose “3” to modify price as shown in Figure 2.9
2.5.3 Apply for VIP credit
Figure 2.10: Modify price
• In booking function choice as shown in Figure 2.10
• Enter the VIP customer information into database file “VIP.txt”, then, this customer
can book “VIP” room
• The VIP number is automatically save as the same as the telephone number
9
Section 3
Limitation
• Input type testing
– limitation: In the program, not all inputs have type testing. Only those fre-
quently used choice menu, input that has fairly strict form requirement such as
“class” element, have type testing.
– Reason why not solved: First, there are so many inputs in this program, if
type testing is added every input, the length of this program will be very long
and might be excessively lengthy and unreadable; Second, those inputs that
are frequently used and easily entered wrongly have testing section, the rest of
the inputs have very low chance to be entered wrongly as long as the user have
basic attention when entering inputs.
• The number of rooms that can be seen in one screen
– limitation: During the testing of this program, it was found that the screen can
only display 20 rooms information
– Reason why not solved: If this problem is going to be solved, the displayed form
should be changed. However, the current displaying form is clear, if we reduce
the number of lines of displaying each room information, the information might
be difficult to read.
• The operation interface
– limitation: The user interface has black background and the output messages
are in one color: white.
– Reason why not solved: We considered to establish graphic operating interface.
However, it was found from the internet that “quincy” cannot have graphic
operating interface. However, we are required to use quincy and the time con-
sumed in learning establishing graphic interface might be fairly long. Therefore,
this idea of applying graphic interface was given up.
10