0% found this document useful (0 votes)
25 views4 pages

Design and Implementation of A CBased Hotel Manage

The document describes the design and implementation of a hotel management system using C++. It discusses the system requirements, functions, and modules such as customer service, front desk processing, backend management, and data storage. The system uses a B/S model with MySQL database and is designed to improve efficiency and reduce costs compared to traditional C/S architecture.

Uploaded by

neetikanag243
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views4 pages

Design and Implementation of A CBased Hotel Manage

The document describes the design and implementation of a hotel management system using C++. It discusses the system requirements, functions, and modules such as customer service, front desk processing, backend management, and data storage. The system uses a B/S model with MySQL database and is designed to improve efficiency and reduce costs compared to traditional C/S architecture.

Uploaded by

neetikanag243
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Frontiers in Computing and Intelligent Systems

ISSN: 2832-6024 | Vol. 4, No. 2, 2023

Design and Implementation of a C++Based Hotel


Management System
Wei Chen, Xiangyu Chen
College of Applied Science and Technology of Beijing Union University, Beijing, China

Abstract: In this paper, we use C++ as the development language and QT to design and develop a hotel management system
for the current development of the hotel industry. The system adopts the B/S model to connect the object with the database, so
that it has better flexibility and reusability. Its functional modules mainly include customer service module, front-end processing
module, back-end management module, data storage module and other parts, which mainly realize the hotel customer's
reservation, check-in and check-out and the management of the hotel internal staff and other functions. The development cost of
the system is low and the operation is simple, which reduces the learning cost of the staff, improves the management efficiency
of the hotel and facilitates the maintenance and management at a later stage.
Keywords: Hotel Management System; C++; Functional Modules; Database.

1. Introduction 2.2. System Function Analysis


With the development of the times, the application of The system will be mainly divided into two parts, one for
computers in hotel management has been extended to various customers and one for hotel staff. The customer-oriented part
departments, and the hotel management system has become mainly realizes the functions of hotel information view, room
an important tool for modern hotel management. Through the reservation, information registration, room service, departure
computer system to deal with things in the hotel, it has solved settlement, hotel contact and hotel evaluation, etc.; the hotel
the drawbacks of manual management, reduced labor costs staff-oriented part mainly realizes the functions of staff
and time costs, and improved management efficiency. At information registration, work arrangement, staff application,
present, part of the hotel management system is still C/S etc.
architecture, each terminal needs a client, [1] resulting in low After logging into the system, customers can view and
processing efficiency, equipment maintenance trouble, book the hotel. The hotel information module contains the
increasing the user's difficulty of use. In this paper, we design basic information of the hotel, so that customers can see the
and adopt a hotel management system based on B/S location, appearance, contact phone number, user evaluation
architecture, which can effectively manage the information of and other basic information of the hotel on the cell phone; the
the hotel, reduce the maintenance cost of the hotel, and then room reservation module allows customers to see the specific
improve the profitability of the hotel and increase the overall information of the room, including the room type, size,
competitiveness of the hotel. The system development uses lighting condition, location and other information, and at the
MySQL database for data storage, MySQL++ as API for same time, they can book the room type they want, and
linking, and Microsoft Visual Studio 2019 combined with QT subsequently they can also unsubscribe from the rooms
for windows side development. already booked; the information Registration module is the
basic information that customers need to fill in when booking
2. System Overview a room, including customer name, ID number, contact
information, length of stay, arrival time, number of people
2.1. System Requirements Analysis staying, etc., so that it is convenient to confirm with the front
The design of the C++-based hotel management system is desk when arriving at the hotel; room service module is the
oriented to the hotel's internal staff and the hotel's customers. service that customers can choose after staying at the hotel,
In order to facilitate the use of users, the system should be this module contains the relevant services in the room, such
designed to be relatively simple, easy to understand operation, as TV screen casting, breakfast delivery, take-away, etc.
and reduce the learning cost of staff and customers in order to Services, through the choice can be made to the hotel service
achieve high efficiency. The system needs to realize the personnel for service; departure settlement module allows
internal management of the hotel and the customer-oriented customers to leave the hotel at anytime, anywhere, without
part respectively, and the hotel's staff information and waiting for the hotel settlement, refund deposits and other
customer information are not interchangeable. In the client operations can be achieved directly under this function,
side, the main functions of the system include room saving time; contact the hotel and evaluation of the hotel
reservation, check-in service, departure settlement, etc. In the module means that users can contact the hotel before and after
staff side, the main functions of the system include work the stay for consultation, to understand the relevant
arrangement, authority management, staff application, etc. information, or after leaving the hotel are to the hotel's service
After the system design is completed, daily maintenance and environment, etc. for evaluation.
personnel need to be retained to ensure the normal operation After the employee’s log in the system, they need to use
of the system. different functions according to different authority. The
information registration module of hotel staff needs to register

36
the staff's name, age, work number, ID number, origin, can access different information. The staff class is the base
position and system authority, etc. All hotel staff need to be class, the administrator class inherits all its permissions, while
registered. Ordinary employees can check their current controlling other permission classes, has the right to manage
schedule, sign in and clock out, and make applications to the and control them, modify other staff permissions, can read
management, etc. The employee application function is and modify all the information in the information class of the
mainly used for employees' leave and shift transfer information, which, the system administrator generally uses
applications. Front desk staff can register and confirm its own permissions, which is mainly responsible for the daily
customers' information at check-in, give feedback to maintenance of the system. The front desk staff class contains
customers' room reservation, help call service staff or the general staff class, which can notify the users when they
maintenance staff, check and update hotel room information, need it, so that the staff of corresponding functions can meet
respond to customers' service requests after check-in, and the needs of customers, such as daily cleaning and
help settle accounts after customers leave the hotel, record maintenance work, while the front desk can view the
customers' opinions and comments, etc. according to the corresponding customer information, room information, and
rights assigned by the administrator. Managers such as the can modify this information. The general staff class mainly
hotel manager can check the basic information of employees, completes the work arrangement from the manager, and can
review the application of employees, check the operation of also make application to the manager.
the hotel, make work arrangement for other employees,
review the financial situation, check the customer information, 3.2. Database Design
modify the room information, check the evaluation of the
Clients
hotel by the customers who have stayed in the hotel, etc. after
logging into the system. If an employee takes a leave of 1
1
absence, other employees can be drawn to fill the missing Submit 1 Reservation
position in time, and at the same time, some relevant N
N
information about special offers can be released. The system Orders
Check in
1
administrator has all the rights of the system, but can only use Room

it after getting the authorization from the hotel management, M


and is only responsible for maintaining the normal operation Audit
M
Management Management
of the system on a daily basis.
N N
Hotel Management
M
System
Employees

M
Hotel Management
Clients Management
Staff
N N

Front Desk Administra System


Administrators
Employees
B RI
Staff tors Administrator
o en E
o gf C v
k io h a
sr e l
Figure 2. Hotel Management ER Chart
a tm c u
ra k a
h at o t
o ti u i
t io t o D
e on n R a M O C U
l n o i M e I r i o M p
C V C o l ae a n go n n a d
i iq ls f Mf Sf Si a

The database is the data support for the system and the data
h e h m y nu e Ao af
e w e ti dr ur n oo yi yn t
c c S c ep ev dm iw dr sg st e
k R k e l nm li ia z im tu te
- o o r e ae ic tt ao fa er en S
tr t a a y

that comes into the system is put into the database for storage.
i o u v a nn ve i yi mt mn
n m t i n ct e o ik o i c
s
t
c i e r n o n o e e
e n y n n m
g

Figure 1. System Structure and Function Diagram


By analyzing the above E-R diagram, the system
requirements for the database can be derived, and the logical
3. System Design structure of the database can be further determined, and the
logical structure model of the database can be further
3.1. Design of Classes determined from the above E-R diagram, [3] to derive the
C++ is an object-oriented programming language, and database information tables required by the system, mainly
classes are a very important concept in C++, which is the basis including customer information table, staff information table,
for implementing object-oriented programming. A C++ room information table, hotel information table, etc. The
program of a certain size is made up of many classes. In the database tables and their field contents need to be established,
process of writing class definition, functions and variables specifically including: (1) hotel room information table:
should be named according to their meanings and functions, generally including room number, room type, check-in price,
not just any names. According to the top-down programming related preferential activities, supporting facilities, number of
principles, the class definitions are written according to the occupants, check-in time, check-out time, current status of
plan. The following is the design of the specific relevant rooms, etc.; (2) room reservation order table: record the
classes in the program. [2] customer's reservation information for the hotel room, such as
The hotel management system as a whole needs the the reserved room number, expected check-in date (2) room
following classes, permission class includes customer class, reservation order form: record the customer's reservation
administrator class, front desk staff class and general staff information for the hotel room, such as the reservation room
class, permission class is mainly through different number, expected check-in date, reservation time, length of
permissions to distinguish between staff and customers, as stay, number of occupants, number of rooms reserved, contact
well as the functions between various employees; information information, name and ID number, etc.; (3) occupant
class includes room information, customer information, staff information form: generally include the name, contact
information, hotel information, etc., which is mainly used to information, ID number, etc., used to store the actual occupant
store relevant information, combined with the previous information; (4) order form: include order number,
permission class, so that people with different permissions accommodation consumption amount, accommodation

37
deposit, consumption of room items during the stay, number system, such as the expected time of stay, the number of days
of occupants, occupancy (5) order statistics table: including of stay, the number of people staying, the reservation
order number, room usage, room type, etc.; (6) consumption information, contact information, room information, etc. The
details table: including order number, settlement time, system will generate the order after the customer fills in the
consumption details, consumption total, check-out personnel, relevant information, and if there is key information not filled
etc.; (7) system user information table: user ID, account in, then the system will prompt the customer and help him/her
number, name, contact information, ID, etc., account number, to improve the information. After the user confirms that the
name, contact information, ID number, user points, user information is correct and clicks to submit the order, the
check-in history, historical orders, etc.; (8) hotel personnel reservation of the hotel room will be completed, and then the
information table: employee ID, work number, name, login system will send the relevant order information and customer
account, gender, age, contact information, position, system information to the relevant personnel of the hotel for review
rights, department, etc.; (9) hotel employee application form: and confirmation. After the hotel completes the confirmation
employee name, work number, application content, etc.; (10) and ensures that the room is successfully reserved, feedback
system rights assignment table: user type, user rights. information will be sent back to the customer through the
Customer information table includes: name, contact system for secondary confirmation, thus completing the entire
information, document type, document number, room number, booking process. After the reservation is completed, the
length of stay, stay time, comments and other parts. Customer customer can check the relevant order information in the
name is generally 2-4 Chinese characters, using varchar type, personal center, make changes to the relevant information, or
a Chinese character needs three bytes, so set its length to 12; cancel the outstanding order.
contact information is generally 11 digits cell phone number,
so set it to the length of 11 varchar type; document type is 4.3. Implementation of Front-end Functional
Chinese characters, there are a variety of types, so set it to the Modules
length of 128 varchar type; document number is generally The The front desk function module can realize the functions of
ID number is usually 18 Arabic digits, so set it as a varchar of customer information registration, verification, room
length 18; the length of stay is from a certain day to a certain reservation, remote reception and self-service departure
day, so its data type is datetime; the check-in time refers to a settlement through the Internet, in addition to updating the
certain day and a certain time when the customer checks in, status of hotel rooms, reporting maintenance, and
so its type is datetime; the note refers to the note information summarizing related reports. After a customer has made a
left by the customer when booking the room, so set it as a reservation, the front desk of the hotel needs to respond by
varchar of length 128; The user priority is decided according confirming the current status of the reserved room, reserving
to the customer's consumption in the hotel, and its data type the room, generating a report, and providing feedback to the
is set to int with a length of 5, which is used to identify customer. [5] After helping the customer to complete the
whether the customer can enjoy priority service and reservation, the relevant information is stored in the system
personalized service. Other information tables are designed in so that the management can view it. When a customer books
the same way. [4] After analyzing the ER relationship diagram, a room, the front desk staff can see the customer's priority
the basic structure of the database tables can be constructed, level and provide priority service or better personalized
and three main tables are selected in this section for structural service according to the customer's level to improve the
design demonstration. customer's stay experience.

4. Function Implementation 4.4. Implementation of Backend Functional


Modules
4.1. Account Function Design Implementation
The back-end part of the system is mainly provided for the
After entering the system interface, the system will provide hotel staff to use, which is divided into general staff, front
a login entrance, the system adopts a unified login interface, desk administrator, system administrator and hotel
the user can choose to login or register after entering the login management, distinguished according to the different
interface, follow the corresponding button prompts to positions and permissions. In order to simplify the design of
complete the login operation, after entering the account the system, all employees use a unified operation interface,
password, the system will verify, if correct, then enter the but since each employee has different permissions, different
operation interface, if wrong, there will be a "username or navigation bars are set up according to different permissions,
password error " prompt. Both employees and hotel so that employees with different permissions can complete
customers have to log in from the same interface, but you can their corresponding work. The part of ordinary employees
choose whether to log in as a customer or an employee mainly realizes the operations of viewing and modifying their
through different options, and you will enter different own information, viewing the current work arrangement,
operation interfaces after logging in with different identities. making applications to their superiors, submitting customer
The customer interface allows you to choose to view feedback, etc. The administrator can use all the functions in
information about the hotel and to make room reservations, the system, to process, check and approve the financial related
while the employee login allows you to choose to view the information, manage the users of the system, view and reply
current work schedule, make requests and other operations. to the customer's comments, approve the applications
4.2. Implementation of Scheduled Functions submitted by the employees, and complete the management
of the rooms, including modifying the information of the
After logging into the system, customers can use the room rooms and setting the corresponding special offers. The
reservation function through the navigation bar of the system. system administrator has the highest authority of the system
After selecting the corresponding room in the interface, input and can change the authority of other accounts, which is
the corresponding information according to the prompt of the mainly responsible for the daily maintenance of the system,

38
so the administrator authority is generally not used. storage module and several other parts were designed and
implemented, the specific development practice of the main
5. System Functionality Testing functional modules was carried out, and the testing work of
the relevant functional modules was completed, the results
After completing the design of the hotel management
showed that the functions in the system run stably, the
system, it is necessary to conduct corresponding functional
operation is relatively simple, the efficiency of the hotel
and performance tests on the system. These include system
management system was improved, and it has a strong
interaction test, stability test, corresponding ability test and
practical role.
security test, etc. The relevant tests all need to simulate the
operation of front desk staff, administrators, customers and References
other personnel. During the test, it was found that there were
some conflicts in the authority of some classes and the [1] Dong Huajun.Design and implementation of hotel management
authority was not clear enough, after which the problem was system [J].Industrial Control Computer,2022,35(01):140-141.
solved by redefining the classes and solving the conflicts [2] Dai Lujun,Liu Zhanfeng.Design and implementation of
between some statements. From the overall test results, the elevator simulation program based on C++[J].Computer
system's functionality and related performance could meet the Development and Applications,2014,27(03):40-42+45.
expected requirements and no further problems occurred. [3] Qian Chunxia.Research on the design of hotel chain
management system[J]. Electronic Technology and Software
6. Conclusion Engineering, 2022,No.229(11):216-219.
The article completed the development of the chain hotel [4] Xu Xiaoya,Li Junfang.Database design for SQL Server
management system based on C++ in windows environment, database performance optimization analysis[J].Information
combined with the practical work, the design and and Computer(Theory Edition),2017(02):177-179+185.
development of the hotel management system was explored, [5] Liu Cong.Design and research of hotel management system[J].
the basic functional requirements of the hotel management Electronic Technology and Software Engineering, 2021(01):
system was explored, the customer service module, front-end 165-166.
processing module, back-end management module, data

39

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy