Professional Documents
Culture Documents
SENIOR
SECONDARY
PUBLIC SCHOOL
ANNUAL PROJECT
REPORT ON
HOTEL
MANAGEMENT
Under Guidance of:
Compiled By:
Mr S.Tripathi
Sarvagya Mishra
C.sc teacher
Roll no.-33
Class-11 Science
Certificate
This is to certify that
Sarvagya Mishra of class
11 sci. has worked
under my supervision on
'hotel management and
completed to my total
satisfaction.
Dr.
Computer Teacher
Principal
Acknowled
gment
I would like to express my
deep sense of gratitude
from the apex of my heart
to our esteemed guide
Mr.sandeep tripathi for his
constant encouragement
and noble guidance.
I would express my thanks
to my parents for their
valuable guidance support
and for all sorts of
Index
1. Overview of C++
2. Objective
3. Inputs to the project
4. Output to the project
5. Process and logic
6. Limitations of the project
7. Tools, language to be used
8. Scope of future applications
9. Description of user defined
function
10. Coding of the program
11. Screenshots
12. Bibliographies
Overview of
C++
The C++ language was
developed at AT&T bell
Laboratories in the early
1980s by Bjarne Stoustrup. He
found C lacking for
stimulations and decided to
extend the language by
adding features from his
favourite language simula 67.
Simula 67 was one of the
Objective
Objective of this project
is to know how a hotel is
managed. In todays
time people want
everything fast so it will
be very useful to have
everything
computerised instead of
doing manual entries. It
Inputs
We need the
following inputs:
1. The choice of the user from
the main menu
Outputs
Limitations of
the project
A. the project does not show
the list of rooms occupied.
B. the billing of the restaurant
is fixed for the customer for
easy calculation
C. the record of the customer
is unavailable.
D. the person information
entered is not stored in any
form.
Tools and
language to be
used
Tools:Hardware
1. CPU
2. Monitor
3. Mouse
4. Keyboard
Software
Microsoft office 2013
Turbo C++
Languages
C++ codes during programing the
project
English language while the entries
are being made
Numbers wherever needed and
asked for
Scope of
future
applications
This project can be
used in the future for
many purposes.
1. It can even be used in the hotels,
to make the projections more
beautiful and rich
2. The project is colourful and will
attract many people.
3. It can be used for online and
quick reference and reach of the
customers.
Header
files used
1. iostream.h
2. conio.h
3. string.h
4. process.h
5. stdlib.h
6. stdio.h
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<process.h>
#include<stdlib.h>
#include<stdio.h>
int m=0;
struct menu //to declare the structure for the main menu function declaring the
inputs to be takenl;
{ int option;
};
struct room
//to declare structure for the room booking function declaring the
inputs to be taken;
{char type[20];
int duration;
char facilities[10];
}
length[100];
struct person //to declare the structure for the person information function
declaring the inputs to be taken;
{char title[4];
char firstname[20];
char lastname[20];
char adress1[35];
char adress2[35];
char city[25];
char state[25];
long pin;
char nationality[25];
}
lables[30];
struct restaurant //to declare the structure for the restaurant function declaring
the inputs to be taken ;
{
char choice;
char starter[25];
char dish[25];
char sweet[20];
char dessert[20];
char drinks[20];
char snacks[25];
char icecream[30];
char roti[25];
char rice[20];
char extras[30];
char chineese[40];
}res[1];
struct cancel
{
char option[30];
}booking[1];
void main()
{
clrscr();
int i,j,x,a;
int b;
void box();
void roombooking(); //roombooking fuction is being called here;
void person(int);
void restaurant();
void billing();
void menu();
gotoxy(5,5);
textcolor(BLUE);
cprintf("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@");
for(int p=5;p<=45;++i);
{
gotoxy(5,p);
cprintf("@");
}
gotoxy(10,10);
textcolor(YELLOW);
cprintf("*****************prabhat senior secondary public
school************************");
gotoxy(25,25);
textcolor(GREEN);
cprintf("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$WELCOME$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
gotoxy(38,26);
textcolor(GREEN);
cprintf("to");
gotoxy (31,27);
textcolor(GREEN);
cprintf("$*HOTEL PRABHAT*$");
gotoxy(42,40);
textcolor(GREEN);
cprintf("COMPILED BY SAS");
gotoxy(5,45);
textcolor(4);
cprintf("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
textcolor(4);
for(p=5;p<=45;++p)
{
textcolor(4);
gotoxy(78,p);
cprintf("@");
}
{
cout<<"\n"<<"press 1 to see the main menu......";
cin>>x;
if(x==1)
menu();
getch();
}
}
void roombooking()
{
int roomlength [1];
for(int i=0;i<1;i++)
{
clrscr();
gotoxy(5,5);
textcolor(4);
cprintf("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
for(int p=0;p<45;p++)
{
gotoxy(5,p);
cprintf("@");
}
gotoxy(10,15);
textcolor(4);
cprintf("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@");
gotoxy(5,7);
textcolor(4);
cout<<"\n"<<"ENTER INFORMATION FOR PERSON"<<x<<":"<<endl;
LINK FROM THE INPUT";
gotoxy(5,9);
textcolor(4);
cout<<"TITLE(MS/MR):";
gets(lables[x].title);
gotoxy(5,11);
textcolor(4);
cout<<"firstname:";
gotoxy(5,13);
textcolor(4);
cout<<"last name:";
gets(lables[x].lastname);
gotoxy(5,15);
textcolor(4);
cout<<"HOUSE NO. STREET";
gets(lables[x].adress1);
gotoxy(5,17);
textcolor(4);
cout<<"area:";
gets(lables[x].adress2);
gotoxy(5,19);
textcolor(4);
cout<<"city:";
//TAKING
gets(lables[x].city);
gotoxy(5,21);
textcolor(4);
cout<<"state";
gets(lables[x].state);
gotoxy(5,23);
textcolor(4);
cout<<"pin:";
cin>>lables[x].pin;
gotoxy(5,25);
textcolor(4);
cout<<"NATIONALITY";
gets(lables[x].nationality);
cprintf("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@");
cout<<"PRESS ANY KEY TO CONTINUE";
}
void restaurant() //starting the restaurant function;
{
res[1];
for(int k=1;k<=1;k++)
{
clrscr();
gotoxy(5,5);
textcolor(4);
cprintf("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&&&");
gotoxy(5,10);
textcolor(4);
cout<<"WHAT WOULD YOU LIKE TO EAT VEG OR NON VEG ?(PRESS V FOR VEG
AND N FOR NON VEG)"<<"\n";
cin>>res[k].choice;
if(res[k].choice=='v'||res[k].choice=='v')
{
gotoxy(5,15);
textcolor(4);
cout<<"WHAT WOULD YOU LIKE AS STARTER :"<<"\n";
cout<<"\n1.CORN SOUP RS. 45/-\n";
cout<<"\n2.TOMATO SOUP RS.40/-\n";
cout<<"\n3.HOT MIXED VEG SOUP RS. 45/-\n";
cout<<"\n4.VEG SANDWICH RS.25/-\n";
cout<<"\n5.PANEER CUTLET RS. 60/-\n";
cout<<"\n6.PANEER TIKKA RS. 45/-\n";
cout<<"\n7.PIZZA RS.245/-\n";
cout<<"\n8.SPRING ROLL RS.90/-\n";
cout<<"\n9.VEG KAWAB ROLL RS.95/-\n";
cout<<"\n\n";
cin>>res[k].starter;
gotoxy(5,21);
textcolor(4);
cout<<".WHAT WOULD YOU LIKE TO EAT:"<<"\n";
cout<<"1.SHAHI PANEER ..........RS.125/"<<"\n";
cout<<"2.SHAHIDAL..............RS.80/"<<"\n";
cout<<"3.MATAR PANEER...........RS.115/"<<"\n";
cout<<"4.KADHAI PANEER...........RS.135/"<<"\n";
cout<<"5.MIX VEG..............RS.85/"<<"\n";
cout<<"6.DUM ALOO.............RS.75/"<<"\n";
cout<<"7.ALOO KOFTA............RS.99/"<<"\n";
cout<<"8.RAJMA............RS.89/"<<"\n";
cout<<"9.CHOLA BHATOORA.........RS.120/"<<"\n";
cin>>res[k].dish;
}
else
{
cout<<"WHAT WOULD YOU LIKE AS STARTER:"<<"\n";
cout<<"1.CHICKEN SOUP.............RS.129/"<<"\n";
cout<<"2.MUTTON SOUP.............RS.130/"<<"\n";
cout<<"3.CHICKEN ROLL.............RS.145/"<<"\n";
cout<<"4.MUTTON ROLL.............RS.150/"<<"\n";
cout<<"5.MUTTON KABAB............RS.200/"<<"\n";
cout<<"6.KABAB SOUP.............RS.125/"<<"\n";
cout<<"7.FISH FRY.............RS.145/"<<"\n";
cout<<"8.PRAWN.............RS.156/"<<"\n";
cout<<"9.CHICKEN CUTLET.............RS.158/"<<"\n";
cin>>res[k].starter;
cout<<"WHAT WOULD YOU LIKE TO EAT "<<"\n";
cout<<"\n1.MUTTON CURRY..............RS.225/-"<<"\n";
cout<<"\n2.KABAB PARATHA..............RS.130/-"<<"\n";
cout<<"\n3.FISH CURRY..............RS.255/-"<<"\n";
cout<<"\n4.BUTTER CHICKEN..............RS.220/-"<<"\n";
cout<<"\n5 CHICKEN MANCHURIAN..............RS.250/-"<<"\n";
cout<<"\n6.CHICKEN ROASTED..............RS.280/-"<<"\n";
cout<<"\n7.FISH FRY..............RS.260/-"<<"\n";
cout<<"\n.8.EGG CURRY............Rs190/-"<<"n";
cout<<"\n.9.MATKI CHIKEN............Rs.250/-"<<"\n";
cin>>res[k].dish;
}
gotoxy(5,31);
textcolor(4);
cout<<"WHICH TYPE OF RICE DO YOU WANT TO EAT"<<"\n";
cout<<"\n1.PLAIN RICE...........RS.97/-"<<"\n";
cout<<"\n2.LEMON RICE...........Rs.119/-"<<"\n";
cout<<"\n3.COCONUT RICE..........Rs.99/-"<<"\n";
cout<<"\n4.TIRANGA RICE..........Rs.95/-"<<"\n";
cout<<"\n5.FRIED RICE...........Rs.107/-"<<"\n";
cout<<"\n6.JEERA RICE...........Rs.79/-"<<"\n";
cout<<"\n7.PANEER RICE...........Rs199/-"<<"\n";
cin>>res[k].rice;
gotoxy(5,41);
textcolor(4);
cout<<"ROTI:"<<"\n";
cout<<"\n1.PLAIN ROTI.............RS.19/-"<<"\n";
cout<<"\n2.NAAN...................RS.39/-"<<"\n";
cout<<"\n3.MISSI ROTI.............R5.29/-"<<"\n";
cout<<"\n4.RUMALI RoTI............Rs.19/"<<"\n";
cout<<"\n5.STUFFED NAAN............RS.49/-"<<"\n";
cout<<"\n6.LACHA PARATHA...........RS.25/-"<<"\n";
cout<<"\n7.ALOO PARATHA............RS.29/-"<<"\n";
cin>>res[k].roti;
gotoxy(5,51);
textcolor(4);
cout<<"WHAT WOULD YOU LIKE TO HAVE AS CHINESE FOOD:"<<"\n";
cout<<"\n1.MANCHURIAN............RS.109/-"<<"\n";
cout<<"\n2.VEG CHOWMEIN...........RS.119/-"<<"\n";
cout<<"\n3.EGG CHOWMEIN...........Rs.129/-"<<"\n";
cout<<"\n4.VEG MOMO.............Rs.79/-"<<"\n";
cout<<"\n5.VEG PASTA..............Rs.99/-"<<"\n";
cout<<"\n6.VEG KABAB PARATHA............Rs.89/-"<<"\n";
cin>>res[k].Chineese;
gotoxy(5,61);
textcolor(4);
cout<<"WHAT WOULD YOU LIKE TO HAVE AS SWEETDISH:"<<"\n";
cout<<"\n1.RASMALAI..............Rs.49(1 PIECE)/-"<<"\n";
cout<<"\n2.RASGULLA..............Rs.29(2 PIECES)/-"<<"\n";
cout<<"\n3.CUSTARD...............RS.59/-"<<"\n";
cout<<"\n4.KHEER.............Rs.89/-"<<"\n";
cout<<"\n5.GULAB JAMUN.............Rs.35(2 PIECEs)/-"<<"\n";
cout<<"\n6.CHENA...........Rs.49(2 PIECES)/-"<<"\n";
cout<<"\n7.HONEY DEW............Rs.79(1 PIECE)/-"<<"\n";
cout<<"\n8.GAJAR HALWA...........Rs.99/-"<<"\n";
cin>>res[k].sweet;
gotoxy(5,71);
textcolor(4);
cout<<"WHICH ICECREAM DO YOU WANT TO HAVE:"<<"\n";
cout<<"\n1.VANILLA..............Rs.225/-"<<"\n";
cout<<"\n2.CHOCOLATE..............Rs200/-"<<"\n";
cout<<"\n3.BUTTER SCOTCH..............Rs225/-"<<"\n";
cout<<"\n4.STRAW BERRY...............Rs189/-"<<"\n";
cout<<"\n5.LONDON DAIRY................Rs425/-"<<"\n";
cout<<"\n6.TUTI FRUTI.................Rs.250/-"<<"\n";
cout<<"\n7.SUNDAE................Rs.345/-"<<"\n";
cout<<"\n8.CORNATO................Rs.99/-"<<"\n";
cout<<"\n9.MIXED FRUIT....................Rs.225/-"<<"\n";
cout<<"\n10.CASSATA.................Rs.125/-"<<"\n";
cin>>res[k].icecream;
gotoxy(5,81);
textcolor(4);
cout<<"WHAT WOULD YOU LIKE TO HAVE AS DRINKS"<<"\n";
cout<<"\n1.NIMBU PANI...............Rs.39/-"<<"\n";
cout<<"\n2.MANGO SHAKE................Rs.35/-"<<"\n";
cout<<"\n3.ICE CREAM SHAKE.................Rs.49/-"<<"\n";
cout<<"\n4.STRAWBERRY SHAKE.................Rs.39/-"<<"\n";
cout<<"\n5.MILK SHAKE.............Rs.39/-"<<"\n";
cout<<"\n6.CHAMPAGNE.............Rs.229/-"<<"\n";
cout<<"\n7.MINERAL WATER...........Rs.25/-"<<"\n";
cout<<"\n8.COKE...........Rs.39/-"<<"\n";
cout<<"\n9.DEW...........Rs39/-"<<"\n";
cout<<"\n10.MAAZA............Rs.39/-"<<"\n";
cout<<"\n11.SPRITE.............Rs.39/-"<<"\n";
cout<<"\n12.LASSI.............Rs.49"<<"\n";
cout<<"\n13.SPECIAL LASSI............Rs.59"<<"\n";
cout<<"\n14.SIMPLE TEA............Rs.27/-"<<"\n";
cout<<"\n15.GREEN TEA............Rs.32/-"<<"\n";
cout<<"\n16.COLD COFFEE............RS.25/-"<<"\n";
cout<<"\n17.HOT COFFEE............Rs.30/-"<<"\n";
cin>>res[k].drinks;
gotoxy(5,111);
textcolor(4);
{
clrscr();
char a[20],b;
char c;
int d,bill=1,tot=0;
cout<<"ENTER YOUR NAME"<<"\n";
gets(a);
cout<<"ENTER THE TYPE OF ROOM YOU
STAYED(SINGLLE-'S',DOUBLE-'D',SUITS-'SS')"<<"\n";
cin>>c;
if(c=='A')
{
cout<<"ENTER THE NUMBER OF DAYS YOU STAYED"<<"\t";
cin>>d;
bill=bill*d*4500;
cout<<"YOUR RESTAURANT BILL PER DAY IS Rs.2599/-";
tot=bill+d*2599;
cout<<"YOUR TOTAL BILL IS:"<<tot;
}
if(c=='N')
{
cout<<"ENTER THE NUMBER OF DAYS YOU STAYED"<<"\t";
cin>>d;
bill=bill*d*3500;
cout<<"YOUR RESTAURANT BILL PER DAY IS Rs.2599/-";
tot=bill+d*2599;
cout<<"YOUR TOTAL BILL IS:"<<tot;
}
}void menu()
{
int b;
{
clrscr();
gotoxy(5,5);
textcolor(4);
cprintf("############################################
##############################");
gotoxy(10,10);
textcolor(4);
cout<<"$*HOTEL PRABHAT*$";
gotoxy(15,15);
textcolor(RED);
cout<<"\nMAIN MENU";
gotoxy(20,20);
textcolor(4);
cout<<"\n1.ROOMBOOKING"<<"\n";
cout<<"\n2.PERSON INFORMATION";
cout<<"\n3.RESTAURANT";
cout<<"\n4.CANCEL BOOKING";
cout<<"\n5.BILLING";
gotoxy(5,45);
textcolor(4);
cprintf("############################################
##############################");
cout<<"\n\n\n\n\nENTER YOUR CHOICE";
cin>>b;
switch(b) //switch statement for choosing our option from the main meunu list;
{