Hotel Management System
Hotel Management System
SYSTEM
INTRODUCTION
• The prime purpose of C++ programming was to add object orientation to the C programming
language, which is in itself one of the most powerful programming languages.
• The core of the pure object-oriented programming is to create an object, in code, that has certain
properties and methods.
• While designing C++ modules, we try to see whole world in the form of objects.
• Object Oriented programming is a programming style that is associated with the concept of
Class, Objects and various other concepts revolving around these two, like Inheritance,
Polymorphism, Abstraction, Encapsulation etc.
THERE ARE A FEW PRINCIPLE CONCEPTS THAT FORM THE FOUNDATION OF OBJECT
ORIENTED PROGRAMMING −
• Object: This is the basic unit of object oriented programming. That is both data and function that
operate on data are bundled as a unit called as object.
• Class: When you define a class, you define a blueprint for an object. This doesn't actually define
any data, but it does define what the class name means, that is, what an object of the class
will consist of and what operations can be performed on such an object.
• Abstraction: Data abstraction refers to, providing only essential information to the outside world
and hiding their background details
• Encapsulation: Encapsulation is placing the data and the functions that work on that data in the
same place.
• Inheritance: One of the most useful aspects of object-oriented programming is code reusability. As
the name suggests Inheritance is the process of forming a new class from an existing class that is
from the existing class called as base class, new class is formed called as derived class.
• Polymorphism: The ability to use an operator or function in different ways in other words giving
different meaning or functions to the operators or functions is called polymorphism. Poly refers to
many. That is a single function or an operator functioning in many ways different upon the usage is
called polymorphism.
• Overloading: The concept of overloading is also a branch of polymorphism. When the exiting
operator or function is made to operate on new data type, it is said to be overloaded
SOURCE CODE
• #include<iostream.h> • {
• #include<conio.h>
• cout<<"\n Enter your Name:";
• #include<string.h>
• cin>>name;
• #include<stdio.h>
• cout<<"\n Enter Your Mobile Number:";
• #include<process.h>
• cin>>ds;
• void display() • void accept1()
• { • {
• • cout<<"\n******************************";
• public:
• cout<<"\n Starting from Rooms 20000rs"; • void main()
• cout<<"\n******************************"; • {
• cout<<"\n******************************"; • do
• cin>>ch; • s.rno=1;
• • for(i=0;i<n;i++)
• switch(ch) • s.accept();
• { • s.display();
• break; • s.rno++;
• {
• p=s.rno; • if(s.rno==c)
• if(s.mobile<=10||s.mobile>=60) • {
• } • }
• break; • else
• case 3: • {
• cin>>c; • }
• s.rno--; • }
• for(i=0;i<n;i++) • if(flag==1)
• { • {
• s.accept(); • cout<<"\n Enter Your Room Number";
• s.display(); • p--;
• } • for(i=0;i<n;i++)
• else • {
• { • if(p==b)
• s.rno--; • flag=1;
• } • }
• break; • else
• case 4: • {
• } • p--;
• } • }
• if(flag==1) • break;
• { • case 5:
• In this project, we have covered how to build Hotel Management System Project and manage
information of rooms, guests etc.. using C++ programming language.
• This hotel management has been developed to meet all the processing requirements which are
needed within the hotel industry. This system will allow the hotel reception department to manage
all the records of their customers and their payment in easy manner.