Professional Documents
Culture Documents
TEACHER’S SIGNATURE -
INTRODUCTION
ACKNOWLEDGEMENT
PLATFORM USED
PROJECT SHEDULE
CODING
OUTPUT
This project is designed for hotel’s booking in C++. The title of the
project is Hotel management System. This program is very useful
in real life situation for providing instant booking for hotel rooms.
It also stores the information about booker’s Name, Address and
phone number.
In this C++ program we can easily modify, add, delete, recall and
list the records.
We would like to thanks our computer sir Mr. Anupam Tiwari, who provided us
this opportunity to make a project on “Hotel Management System” which really
helped us to understand the concepts of C++ computer programming.
To make this project we have taken a concept view from a book “Computer
science With C++” written by Sumita Arora and a website
“www.thecrazyprogrammer.com”.
Lastly we would like to thank our family members whose support were very
worthy for us to make our project.
PLATFORM USED
TURBO C++, M.S PAINT, MS
OFFICE, NOTEPAD++.
ISP: RELIANCE JIO
WEB BROWSER: GOOGLE
CHROME
PROJECT SHEDULE
SOURCE CODE
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<process.h>
#include<dos.h>
struct hotel
char phone[20];
char name[20];
char address[50];
} h;
hotel room_no[100];
void main_menu()
cout<<"\n\t\t\t ********************************";
cout<<"\n\t\t\t ********************************";
cout<<"\n 5.Exit";
cout<<"\n\n Enter your choice: ";
cin>>choice;
switch(choice)
case 5:
cin>>ch;
if ((ch=='y')||(ch=='Y')) exit(0);
else
default:
{ cout<<"\n\n\t\tWrong choice!!!";
void addroom()
do
cout<<"\n~~~~~~~~~~~~~~~~~~~~~~";
input(); ++i;
cin>>ch;
if ((ch=='n')||(ch=='N')) goto y;
clrscr();
} while(i<100);
y: main_menu();
}
void input()
{ int i;
cin>>room_no[i].r;
gets(room_no[i].name);
gets(room_no[i].address);
cin>>room_no[i].phone;
void display(int a)
return ;
void crec()
do {
cout<<"\n~~~~~~~~~~~~~~~~~~~";
cin>>ro;
for(i=0;i<100;++i)
{ if(room_no[i].r==ro)
{ display(i); break; }
if(room_no[i].r!=ro)
cin>>ch;
} while((ch=='y')||(ch=='Y')); main_menu();
void rooms()
cout<<"\n\t\t\t *********************";
while(i<100)
{ if(room_no[i].r==0) goto x;
cout<<"\n\n "<<room_no[i].r<<"\t\t";
printf(room_no[i].name);
cout<<"\t\t"; printf(room_no[i].address);
cout<<"\t\t"<<room_no[i].phone;
++i;
getch(); main_menu();
void edit()
cout<<"\n *********";
cin>>ro;
for(i=0;i<100;++i)
{ if(room_no[i].r==ro)
cout<<"\n *********";
cin>>choice;
switch(choice)
case 3: main_menu();
flag=1; break; }
if(!flag)
getch(); main_menu();
void modify()
{ int i;
cout<<"\n *****************";
gets(room_no[i].name);
gets(room_no[i].address);
cin>>room_no[i].phone;
void del()
if((ch=='n')||(ch=='N'))
main_menu();
else if((ch=='y')||(ch=='Y'))
{ room_no[i].r=0;
void main()
cout<<"\n\t\t\t*******************************";
cout<<"\n\t\t\t*******************************"; sleep(2);
getch(); main_menu();