Hotel Management System C++ Project

6
12233

Hotel management system is a large project developed using graphics in the C++ language. Here, users can perform general hotel management operations related to food menu, hotel bill, customer information, and more. In hotel management system project in C++, file handling used to perform various features and functions like adding items in food menu, deleting food menu & creating, editing, listing and deleting customer details.

Understanding this project will help you effective use of file handling and graphics in a C++ project. The source code of this project is a bit long – over 1000 lines. You can directly download the C++ code of this project from the link provided below. Also, the description of provided here can be used as project synopsis for hotel management system.

Download Hotel Management System C++ Project with Source Code

[sociallocker]

Download Hotel Management System C++ Project with Source Code

[/sociallocker]

Hotel Management System Project Abstract:

Hotel Management System Project in C++In the source code, I have listed the functions under different classes to help you understand the project better. Also, in this post I have briefly explained the features and functions of this hotel management project. The project may seem complex to you as it is long and utilizes graphics, so first go through the explanation provided here and try understanding and analyzing the project on your own.

1. Food menu: This function serially lists the different food items available in the hotel food menu along with their price. Here, this function also allows user to add food items or delete all food items to or from the food menu by calling the respective functions.

Add items in food menu: Users can get to this “append in food menu” function from the displaying food menu function. Here, the information to be provided are the item name to be added and the price of the food item. Then, the hotel management system project in C++ stores all the added food items in file.

Delete food menu: One room for improvement in this hotel management system program is regarding this function. After displaying the food menu from the first function, with this function user can delete all the items from the food menu, i.e, delete the food menu itself. I’d recommend you to work on this function, and modify it so that only certain items as chosen by the user can be deleted form the menu.

2. Customer bill: The customer bill consists of the room bill and the food bill functions. So, it is more like an overall hotel bill.

Food bill: This function is used to issue a bill to the customer on the basis of the item and quantity of food they ate or purchased. It asks for the name of the customer, the name of the food item and the quantity. Then, the function lists these info in a bill in tabular form. If a food item asked by the customer is not found in the file, the hotel management system project in C++ displays the message – “Item is not present.”

Room bill: Here the user needs to provided the number of the departing customer, along with the date and month of departure. Then, the room bill is displayed in a tabular form – Name, Arrival, Departure, Days in and Bill. If incorrect info regarding the customer number is provided it displays the message – “Customer is not present.”

3. Customer details: This is a very large function that consists of other sub-functions as adding, modifying and deleting customer details from the file of hotel management system project in C++. All the added, modified and deleted information regarding customer details are stored in file. Here, I will briefly describe each of these functions.

Add customer detail: The information asked for by this function are name and address of the customer, and date, month and year of the customer’s arrival.

Display customer details: This function displays the details of all the customers in the hotel. The info like customer number, name, address, room number and date are listed in a tabular form.

Modify customer detail: To modify customer detail in hotel management system project in C++, customer number is sought from the user. Then, the name, address, date, month and year of arrival of a particular customer can be modified, and all the edited data are stored in file.

Delete a customer record: For this, the user needs to provide the customer number of a particular customer whose record is to be deleted from the hotel management system file.

Delete all customer records: If the user wants to delete the records of all the customers added in the hotel management file, this function can be used.

Header Files Used:

This project utilizes 9 header files, all of which are included in Turbo C++ library file. The graphics.h header file has been used to make the project better, and its use is simple to understand and analyze from the source code.

If you want to run the source code in Code::Blocks make sure the header files listed below are there in your library file. The graphics.h header file is not usually present in Code::Blocks, so check this link to learn how to add graphics.h in Code::Blocks.

  • #include<iostream .h>
  • #include<conio .h>
  • #include<string .h>
  • #include<graphics .h>
  • #include<dos .h>
  • #include<stdio .h>
  • #include<fstream .h>
  • #include<iomanip .h>
  • #include<stdlib .h>

I hope this hotel management system project will serve you as a reference project to help you understand how to add, edit, modify, list and delete records from a file. Also, this project will teach you the effective use of graphics in projects. From this project, you can also learn how to add sub-functions within functions in a project to make it large and complex.

Also see,
Telephone Directory System
Sales Management System
More Projects in C/C++

Submitting hotel management system project in C++ as your college C++ project with little or no modifications at all is completely discouraged. So, try making modifications to the project to make it a even better project; there are many rooms for improvement as you can add new features to the project or edit existing features. If you have any queries, suggestions or feedback relevant to this project, bring them up to me from the comments section below.

6 COMMENTS

    • Open the source code with CodeBlocks or Notepad++. Hit “Ctrl+F”, type “password”, and hit “Enter”. There’s the password you’re looking for.

      I posted this project here about a year ago, so I don’t exactly remember the password.

LEAVE A REPLY

Please enter your comment!
Please enter your name here