You are on page 1of 32

Synopsis

On

HOTEL MANAGEMENT SYSTEM


Submitted in partial fulfillment of the requirements for the diploma

Of

Diploma In Computer Technology


More Siddharth.
Utekar Pooja.
Suryavanshi Vinayak.
Sable Deepali.
Dalvi Parth.
Jadhav Srushti.

Under the guidance of


Mrs. Mamta Khatri

Department of COMPUTER TECHNOLOGY,

Shivajirao S. Jondhale Polytechnic,

Ambernath (Maharashtra)

Maharashtra State Board of Technical Education

(2019-20)

1
MAHARASHTRA STATE
BOARD OF TECHNICAL EDUCATION
Certificate
This is to certify that Mr/Ms.
Sr.No Name of group Roll Enrollment Seat No
members No No

1 More Siddharth
2 Utekar Pooja
3 Suryavanshi Vinayak
4 Sable Deepali
5 Dalvi Parth
6 Jadhav Srushti
of 3rd Semester of Diploma in COMPUTER TECHNOLOGY of Institute,
SAMARTH.SHIVAJIRAO JONDHALE POLYTECHNIC (Code:0147) has
completed the Micro Project satisfactorily in Subject: Object-Oriented
Programming Using C++ (22316) for the academic year (2019- 2020) as
prescribed in the curriculum.
Place: AMBERNATH. Date:
Subject Teacher Head of the Department Principal

2
Group Details:

Sr.No Name of group Roll Enrollment No Seat No


members No

1) More Siddharth
2) Utekar Pooja
3) Suryavanshi
Vinayak
4) Sable Deepali
5) Dalvi Parth
6) Jadhav Srushti

Name of Guide: Mrs. Mamta Kharti.

3
INDEX

SR.NO. CONTENT PAGE NO.

1 ABSTRACT 6

2 INTRODUCTION 7

3 LITERATURE SURVEY 8

4 PROBLEM DEFINITION 9

5 PROPOSED SYSTEM 10

6 TECHNIQUE 11

7 Source Code 12

8 SYSTEM IMPLEMENTATION 25

9 APPLICATIONS 28

10 REFERENCES 29

11 CONCLUSION 30

12 Teacher Evaluation Sheet 31

4
WEEKLY PROGRESS REPORT

SR.NO. WEEK ACTIVITY SIGN OF


PERFORMED GUIDE
1 1st Discussion and finalization
of topic

2 2nd Preparation and submission


of Abstract
3 3rd Literature Review

4 4th Collection of Data

5 5th Collection of Data

6 6th Discussion and outline


of Content

7 7th Formulation of Content

8 8th Editing and Proof


Reading of
Content
9 9th Compilation of Report And
Presentation
10 10th Seminar

11 11th Viva voce

12 12th Final submission of


Micro Project

Sign of the student Sign of the faculty

5
1. ABSTRACT

In our project “HOTEL MANAGEMENT SYSTEM” we created a program for


a hotel management system. Here we developed a C++ hotel management
project. This system provides various options like booking a room, checking
customer details, editing or deleting any customer, checking all allotted rooms.
We developed this project using two important C++ concepts that are classes
and file handling. The main objective of the entire activity is to automate the
process of day-to-day activities of the Hotel. Using this system you can manage
room activities and keep track of the admission of a New Customer. Using this
system you can check rooms according to customer’s need and can assign easily
room to customer. Checkout of a customer and updating the releasing room
information in the system is very easy. When the user does checkout system will
generate the final bill after calculating all the bills. Users can also check online,
all the packages were available. He can also book rooms online. He can also
cancel the booked room online. Hotel management can also check the list of
Regular customers and feedback of the hotel’s customers.

6
2. INTRODUCTION
.

Object-oriented programming (OOP) is a programming paradigm based on the concept


of C. In 198, Goldberg edited the August 1981 issue of Byte
Magazine, introducing Smalltalk and object-oriented programming to a wider audience.
Object-oriented programming (OOP) is a programming paradigm based on the concept
of "objects", which can contain data and code: data in the form of fields (often known
as attributes or properties), and code, in the form of procedures (often known
as methods).
A feature of objects is that an object's procedures can access and often modify the data
fields of itself (objects have a notion of this or self ). In OOP, computer programs are
designed by making them out of objects that interact with one another.[1][2] OOP
languages are diverse, but the most popular ones are class-based, meaning that objects
are instances of classes, which also determine their types.
Many of the most widely used programming languages (such as C++, Java, Python, etc.)
are multi-paradigm and they support object-oriented programming to a greater or lesser
degree, typically in combination with imperative, procedural programming. Significant
object-oriented languages include (list order based on TIOBE
index) Java, C++, C#, Python, R, PHP, Visual Basic.NET, JavaScript, Ruby, Perl, Object
Pascal, Objective-C, Dart, Swift, Scala, Kotlin, Common Lisp, MATLAB, and Smalltalk.
A typical luxury Hotel requires a management system to control its various operations
such as maintaining an account of all the people in its domain of services, attending to
various needs of customers, and also achieving increased efficiency in the overall
working of the Hotel itself.

7
3. LITERATURE SURVEY

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 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 the whole
world in the form of objects. For example, a car is an object which has certain properties
such as color, number of doors, and the like. It also has certain methods such as
accelerate, brake, and so on.

Object-oriented programming uses objects, but not all of the associated techniques and
structures are supported directly in languages that claim to support OOP. The features
listed below are common among languages considered to be strongly class- and object-
oriented (or multi-paradigm with OOP support), with notable exceptions mentioned.

8
4. PROBLEM DEFINITION

A hotel management system is a large project developed using graphics in the


C++ language. Here, users can perform general hotel management operations
related to the food menu, hotel bill, customer information, and more. In a hotel
management system project in C++, file handling used to perform various
features and functions, like adding items in the food menu, deleting food menu
& creating, editing, listing, and deleting customer details This hotel
management system, is developed for hotels that are using a manual system to
handle hotel processes. There are three main users in a hotel management
system, administrator, Manager, and Receptionist. The administrator can
maintain daily updates in the hotel records. This system will automate the major
operations of the hotel. The administrators can access all system functionalities
without any restrictions. An administrator is must be an authorized user. He can
further change the password. There is a facility for password recovery, logout,
etc. Managers can access all system functionalities with limited restrictions. A
receptionist can only access the Reservation Management section. The main aim
of the entire activity is to automate the process of day-to-day activities of the
Hotel.

9
5. PROPOSED SYSTEM

PURPOSE OF THE SYSTEM The Hotel Management System aims to make


simpler a staff’s interaction with the various modules of the Hotel and ease the
process of acquiring information and providing services. The system can be
accessed by the admin and customers but the highest priority is given to the admin
that is allocated a login id and password. It will also allow cutting the operational
costs of the hotel. In this system, we will make extensive use of the files system in
C++. We will have a login id system initially. In this system, we will be having
separate functions for Getting the information Getting customer information who
are lodged in Allocating a room to the customer Checking the availability
Displaying the features of the rooms. Preparing a billing function for the customer
according to his room no. In the software developed separate functions will be
there for each of the above points so that there is ample scope for adding more
features shortly.

10
6. TECHNIQUE:

 Encapsulation
 Data Hiding
 Overloading
 Polymorphism
 Grand-daddy of them all – Inheritance

11
7. Source Code

#include<iostream.h>

#include<conio.h>

#include<fstream.h>

#include<stdio.h>

#include<dos.h>

class hotel

int room_no;

char name[30];

char address[50];

char phone[10];

public:

void main_menu();

void add();

void display();

void rooms();

void edit();

int check(int);

void modify(int);
12
void delete_rec(int);

};

void hotel::main_menu()

int choice;

while(choice!=5)

clrscr(); cout<<"\n\t\t\t\

t*************"; cout<<"\n\t\t\t\t*

MAIN MENU *"; cout<<"\n\t\t\t\

t*************"; cout<<"\n\n\n\t\t\

t1.Book A Room"; cout<<"\n\t\t\

t2.Customer Record"; cout<<"\n\t\t\

t3.Rooms Allotted"; cout<<"\n\t\t\

t4.Edit Record"; cout<<"\n\t\t\

t5.Exit"; cout<<"\n\n\t\t\tEnter Your

Choice: "; cin>>choice;

switch(choice)

13
case 1: add();

break;

case 2: display();

break;

case 3: rooms();

break;

case 4: edit();

break;

case 5: break;

default:
{

cout<<"\n\n\t\t\tWrong choice!!!";

cout<<"\n\t\t\tPress any key to continue!!";

getch();

void hotel::add()

clrscr();

int r,flag;

14
ofstream fout("Record.dat",ios::app);

cout<<"\n Enter Customer Detalis";

cout<<"\n **********************";

cout<<"\n\n Room no: ";

cin>>r;

flag=check(r);

if(flag)

cout<<"\n Sorry..!!!Room is already booked";

else

room_no=r;

cout<<" Name: ";

gets(name);

cout<<" Address: ";

gets(address);

cout<<" Phone No: ";

gets(phone);

fout.write((char*)this,sizeof(hotel)); cout<<"\

n Room is booked!!!";
}

15
cout<<"\n Press any key to continue!!";

getch();
fout.close();

void hotel::display()

clrscr();

ifstream fin("Record.dat",ios::in);

int r,flag;

cout<<"\n Enter room no: ";

cin>>r;

while(!fin.eof())

fin.read((char*)this,sizeof(hotel));

if(room_no==r)

clrscr();

cout<<"\n Cusromer Details";

cout<<"\n ****************";

cout<<"\n\n Room no: "<<room_no;

cout<<"\n Name: "<<name;

16
cout<<"\n Address: "<<address;

cout<<"\n Phone no: "<<phone;

flag=1;

break;

if(flag==0)

cout<<"\n Sorry Room no. not found or vacant!!";

cout<<"\n\n Press any key to continue!!";

getch();

fin.close();

void hotel::rooms()

clrscr();

ifstream fin("Record.dat",ios::in);

cout<<"\n\t\t\tList Of Rooms Allotted";

cout<<"\n\t\t\t*********************";
cout<<"\n\n Room No.\tName\t\tAddress\t\tPhone No.\n";

17
while(!fin.eof())

fin.read((char*)this,sizeof(hotel));

cout<<"\n\n "<<room_no<<"\t\t"<<name;

cout<<"\t\t"<<address<<"\t\t"<<phone;
}

cout<<"\n\n\n\t\t\tPress any key to continue!!";

getch();

fin.close();

void hotel::edit()

clrscr();

int choice,r;

cout<<"\n EDIT MENU";

cout<<"\n *********";

cout<<"\n\n 1.Modify Customer Record";

cout<<"\n 2.Delete Customer Record";

cout<<"\n Enter your choice: ";

18
cin>>choice;

clrscr();

cout<<"\n Enter room no: ";

cin>>r;

switch(choice)

case 1: modify(r);

break;

case 2: delete_rec(r);

break;

default: cout<<"\n Wrong Choice!!";

cout<<"\n Press any key to continue!!!";

getch();

int hotel::check(int r)

int flag=0;

ifstream fin("Record.dat",ios::in);

19
while(!fin.eof())

fin.read((char*)this,sizeof(hotel));

if(room_no==r)

flag=1;

break;

fin.close();

return(flag);

void hotel::modify(int r)

long pos,flag=0;

fstream file("Record.dat",ios::in|ios::out|ios::binary);

while(!file.eof())

pos=file.tellg();

file.read((char*)this,sizeof(hotel));

20
if(room_no==r)

cout<<"\n Enter New Details";

cout<<"\n *****************";

cout<<"\n Name: ";

gets(name);

cout<<" Address: ";

gets(address);

cout<<" Phone no: ";

gets(phone);

file.seekg(pos);

file.write((char*)this,sizeof(hotel));

cout<<"\n Record is modified!!";

flag=1;
break;

if(flag==0)

cout<<"\n Sorry Room no. not found or vacant!!";

file.close();

21
}

void hotel::delete_rec(int r)

int flag=0;

char ch;

ifstream fin("Record.dat",ios::in);

ofstream fout("temp.dat",ios::out);

while(!fin.eof())

fin.read((char*)this,sizeof(hotel));

if(room_no==r)
{

cout<<"\n Name: "<<name;

cout<<"\n Address: "<<address;

cout<<"\n Pone No: "<<phone;

cout<<"\n\n Do you want to delete this record(y/n): ";

cin>>ch;

if(ch=='n')

fout.write((char*)this,sizeof(hotel));

22
flag=1;

else

fout.write((char*)this,sizeof(hotel));

fin.close();

fout.close();

if(flag==0)

cout<<"\n Sorry room no. not found or vacant!!";

else

remove("Record.dat");

rename("temp.dat","Record.dat");
}

void main()

hotel h;

textmode(C80);

textbackground(BLACK);
23
textcolor(WHITE);

clrscr();

cout<<"\n\t\t\t****************************";

cout<<"\n\t\t\t* HOTEL MANAGEMENT PROJECT *";

cout<<"\n\t\t\t****************************";

sleep(2);

cout<<"\n\n\n\n\n\t\t\t\tPress any key to continue!!";

getch();

h.main_menu();

24
8. SYSTEM IMPLEMENTATION:

25
26
27
9. APPLICATION:

 User interface design such as windows, menu.

 Real-Time Systems

 Simulation and Modeling

 Object-oriented databases

 AI and Expert System

 Neural Networks and parallel programming

28
10. References

 https://www.thecrazyprogrammer.com/2012/12/c-hotel-management-project.html
 https://en.wikipedia.org/wiki/Object-oriented_programming#Features
 https://www.tutorialspoint.com/cplusplus/cpp_object_oriented.htm
 https://www.codewithc.com/hotel-management-system-project-in-c/
 https://sites.google.com/site/ignoubcafinalyearprojects/project-report/hotel-management-
system-project-report
 https://www.slideshare.net/princejustleavehimalone/hotel-management-system-in-c
 https://www.mycplus.com/tutorials/object-oriented-programming/oop-techniques/
 https://tutorialink.com/cpp/applications-of-object-oriented-programming.cpp

29
11. CONCLUSION:
At the end of this coursework, we can: - Explain object-oriented programming concepts
and apply them to the modeling of real-world systems. - Explain the object-oriented
paradigm and utilization of the offered facilities. - Demonstrate the ability to develop and
derive new class structures and organize them such that they will model real-world
systems within computers.

30
Shivajirao S. Jondhale Polytechnic, Ambernath (E)
Teacher Evaluation Sheet
Academic Year 2019-20

 Program Title: Hotel Management System


 Course Title & Code: Object Oriented Programming (22316)
 Semester: Third Semester.

 Aims/Benefits of the Micro-Project:


1. Modularity Of easier troubleshooting.
2. Reuse Of Code through Inheritance.
3. Flexibility through Polymorphism.
4. Effective problem solving.

 Course Outcomes Achieved:


1. Understand the difference between top-down and bottom-up approach.
2. Describe the object oriented programming approach in connection with c++.
3. Apply the concept of object oriented programming.
4. Illustrate the process of data file manipulations using C++.
5. Apply virtual and pure virtual function & complex programming situations.

 Skill Developed / Learning outcomes of this Micro-Project:


1. Working in a team as team member.
2. Practice under safety environment follow ethical practice.

 Applications of this Micro- Project:


1. User interface design such as windows, menu.
2. Real Time Systems
3. Simulation and Modeling
4. Object oriented databases
5. AI and Expert System
6. Neural Networks and parallel programming
7. Decision support and office automation systems etc.

31
 Marks:

Marks. for Marks Total


group work obtained by Marks
Roll Name of student A (out of 4) the individual (A+B)
no. based on Viva
B
(out of 6)

Siddharth More.
Pooja Utekar.
Vinayak Suryavanshi
Deepali Sable.
Parth Dalvi.
Srushti Jadhav.

 Name and Signature of Faculty:

32

You might also like