Thursday 8 October 2015

Hotel Management System

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. Thegraphics.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.

2 comments:

  1. I came across your blog while looking for some education in India blogs and liked a lot. How amazing! I will keep an eye on your post.

    ReplyDelete