6. CERTIFICATE
This is to certify that AMIT KUMAR YADAV of class – XII
has prepared the computer science assignment for the year
2018-19 on the project entitled “ HOTEL MANAGEMENT ”.
the project is the result of his effort & endeavor the
project is found worthy of acceptance as final project
report for the subject computer science of class - XII. He
is prepared the project under my guidance.
SIGNATURE OF PRINCIPAL
SIGNATURE OF INTERNAL EXAMINER SGNATURE OF EXTERNAL EXAMINER
7. ACKNOWLEDGEMENT
I would like to express a deep sense of thanks & gratitude to my
project guide MR. PARMENDRA MANGAL sir for guiding me
immensely through the course of the project. He always evinced keen
interest in my work. His constructive advice and constant motivation
have been responsible for the successful completion of this project .
My sincere thanks goes to MR. ANIL KUMAR, our principal sir for
his co-ordination in extending every possible support for the
completion of this project.
I also thanks for my parent for their motivation and support . I must
thanks for my classmates for their timely help and support for
compilation for these project .
Last but not the least, I would like to thanks all those who had helped directly or
inirectly towards the completion for this project.
AMIT KUMAR YADAV
CLASS - XII
8. CODING
// HOTEL MANAGEMENT SYSTEM
//SUBMITTED BY AMIT KUMAR YADAV
#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();//to dispay the main menu
void add(); //to book a room
void display(); //to display the customer record
void rooms(); //to display alloted rooms
void edit(); //to edit the customer record
int check(int); //to check room status
void modify(int);//to modify the record
void delete_rec(int); //to delete the record
};
void hotel::main_menu()
{
int choice;
while(choice!=5)
{
clrscr();
cout<<"ntttt*************";
cout<<"ntttt* MAIN MENU *";
cout<<"ntttt*************";
cout<<"nnnttt1.Book A Room";
cout<<"nttt2.Customer Record";
cout<<"nttt3.Rooms Allotted";
cout<<"nttt4.Edit Record";
cout<<"nttt5.Exit";
cout<<"nntttEnter Your Choice: ";
cin>>choice;
switch(choice)
9. {
case 1: add();
break;
case 2: display();
break;
case 3: rooms();
break;
case 4: edit();
break;
case 5: break;
default:
{
cout<<"nntttWrong choice!!!";
cout<<"ntttPress any key to
continue!!";
getch();
}
}
}
}
void hotel::add()
{
clrscr();
int r,flag;
ofstream fout("Record.dat",ios::app);
cout<<"n Enter Customer Detalis";
cout<<"n **********************";
cout<<"nn 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!!!";
}
cout<<"n Press any key to continue!!";
getch();
fout.close();
}
void hotel::display()
{
clrscr();
ifstream fin("Record.dat",ios::in);
int r,flag;
16. HEADER FILE USED
FSTREM.H -: for file handling , cin and cout.
PROCESS.H -:for exist() function.
CONIO.H -: for clrscr() and getch() function.
STDIO.H -: for standard I/O operation.
STRING.H -: for string handling.
MATH.H -: for doing mathematical operations.
22. WORKING DESCRIPTION
This program is designed to keep the hotel’s record.
This program consist of five option as follows
1. Book room
2. Customer record
3. Room allotted
4. Edit record
5. Exit