A Project Report On “HOTEL MANAGEMENT SYSTEM”
Submitted By SHASHANK JAISWAL RICHY TOMY TEJDEEP
Batch No: RTOS-348
Under the guidance of M/s. ANVI
An ISO 9001 Company Company
Cranes Software International Ltd. (Cranes Varsity - Training Division) # 5, Service Road, Domlur Layout, Airport Road, Road, Bangalore-560071. Bangalore-560071. Ph: 25352636/37, www.cranessoftware.c www.cranessoftware.com om
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
INDEX
1. Acknowledgement Acknowledgement 2. Abstract 3. Class Diagrams 4. Description of the project 5. Source Code 7. Conclusion 8. Bibliography
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
So, with gratitude we acknowledge all those who guided and encouraged has served a beacon of light and crowned the effect with success. We would like to thank Cranes thank Cranes Varsity International for providing an opportunity to carry out the project successfully. ANVI who guided and provided the technical and We would then like to thank M/s. ANVI who moral support throughout the project. Next we would also to thank the entire faculty for their full co-operation.
PROJECT ASSOCIATES SHASHANK JAISWAL RICHY TOMY TEJDEEP DORNADULA
The
HOTEL MANAGEMENT SYSTEM”
“
project has been designed keeping in
mind both employee and guest. For a guest to avail room he simply has to book room and then checking in or directly checking in to the hotel. The task of maintaining the hotel rooms lies with the employee.
The employee has to perform 3 basic tasks: (1) Adding of rooms to the database (2) Maintain the Hotel rooms (3) Reserve Reserve rooms for guests, and (4) Generate bill at the time of guests checking out of the hotel. The hotel allows the guests to: (1) Checkin (2) Checkout, and (3) Book Room. These features have been represented by functions in the program.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
User - Name - Address - Phone_No
+ Set_details + Get_details
Employee
Guest
- Employee_Id
-Struct ctime objin
+ Set_id
-Struct ctime objout
+ file_write
+ Add_Guest
+ get_details
+ Return_Name +checkout_guestroom + Disp_guest +disp_det_chkout Room -
Room_no
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
There are total seven operations that can be performed using this program efficiently. They are as follows:-
EMPLOYEE OPERATIONS:
Adding New Rooms To The Hotel : which requires assigning a room number,
type of room whether Air conditioned or non-air conditioned, current status of room whether free or reserved and charges of room per day.
Maintaining Rooms: In this option, employee can check the all information of all
the rooms in hotel or a particular room by inputting room number and modify its details, like changing status of room or the charges.
Reserving Room: here, the employee can check if any free f ree rooms are available in
the hotel database and subsequently reserve it for a guest.
Generating Bill: here, at the time of guest checking out, the employee will get the
number of days the guest stayed in a particular room and generate the bill to be paid by the guest.
GUEST OPERATIONS:
Checking In: In this guest can enter his personal details in the database if it
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Checking Out: In this option it will first ask the guest for the room number it
wants to vacate and then the guest will be checked out of the room and checkout time will be displayed.
Book Room: Here, guest will be asked which type of room he wishes for and if
that type of room is available then if desired checking in procedure will be initiated.
#include #include #include /*function prototypes prototypes required*/ int edit_room_det(room *obj); void Resv_Guest(); /*=============== /*======================= =============*/ =====*/
using namespace std; struct ctime { int hr; int min; int sec; }; /*USER CLASS*/ class user { protected: char name[20]; char address[50]; char ph_no[15];
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
strcpy(address,ad); strcpy(ph_no,p); } virtual void get_details() { cout<<"\n Name :"<
/*EMPLOYEE CLASS*/ CLASS*/ class employee:public user { protected: int e_id; public: void Set_id(int ID) { e_id=ID; }
void get_details() { cout<<"\n Name :"<
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
class guest:public user { struct ctime objin,objout; public: void Add_Guest() { struct tm *time1; time_t t1; cout<<"Enter Name"<>name; cout<<"Enter Address"<>address; cout<<"Enter Phone Number"<>ph_no; t1=time(NULL); time1=localtime(&t1); objin.sec=time1->tm_sec; objin.min=time1->tm_min; objin.hr=time1->tm_hour; } char * Ret_Name() { return name; }
void chkout_guest_room() chkout_guest_room() { struct tm *time1; time_t t1; t1=time(NULL); time1=localtime(&t1); objout.sec=time1->tm_sec;
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
void disp_det_chkout() disp_det_chkout() { cout<<"Guest Checked Out"<
/*ROOM CLASS*/ class room { int room_no; char status[15]; char type[20]; float room_rate; char Gname[20]; public: void Add_Room() { cout<<"Enter cout<<"Enter Room No: "<>room_no; cout<<"Enter cout<<"Enter Status:"<>status; cout<<"Enter cout<<"Enter Type:"<>type; cout<<"Enter cout<<"Enter Room Rate:"<
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
} float Get_Charges() { return room_rate; } int Get_RoomNo() { return room_no; } char * get_status() { return status; } char *Get_Type() { return type; }
void Add_Guest_Room() Add_Guest_Room() { cout<<"Enter cout<<"Enter Guest Name:"<>Gname; } void display_room() { cout<<"\nroom no. :"<
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
R.Add_Room(); fstream rfile; rfile.open("rooms.txt",ios::out|ios::app); rfile.write((char *)&R,sizeof(R)); rfile.close(); } /*FUNCTION TO EDIT EDIT ROOM DETAILS AND AND WRITING TO DATABASE*/ DATABASE*/
void Edit_Room() { room R; int Rno; fstream rfile,tfile; rfile.open("rooms.txt",ios::in); tfile.open("test.txt",ios::out); rfile.seekg(ios::beg); cout<<"enter cout<<"enter room number:"<>Rno; while(rfile.read((char *)&R,sizeof(R))!=0) { if(R.Get_RoomNo()==Rno) { cout<<"\nmatch found"<
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
cout<<"\t"<<"\t"<<"\t"<<"Enter Choice To Edit"<>ch3; switch(ch3) { case 1:cout<<"\t"<<"\t"<<"change status:"<>str; (*obj).Set_Status(str); break; case 2:cout<<"\t"<<"\t"<<"change Room charges:"<>charges; (*obj).Set_Charges(charges); break; case 3:return 0; } } } /*FUNCTION TO DISPLAY DISPLAY ALL ROOMS*/ ROOMS*/
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
room R; char str[10]; fstream rfile,tfile; rfile.open("rooms.txt",ios::in); rfile.seekg(ios::beg); cout<<"enter cout<<"enter room status"<>str; while(rfile.read((char *)&R,sizeof(R))!=0) { if(strcmp(R.get_status(),str)==0) { R.display_room(); } } rfile.close(); Resv_Guest(); }
/*SUB FUNCTION OF RESERVING GUEST*/ GUEST*/
void Resv_Guest() { fstream froom,troom;
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
troom.close(); remove("rooms.txt"); rename("test.txt","rooms.txt"); }
/*FUNCTION TO GENERATE GENERATE BILL*/
void Generate_Bill() { fstream froom,troom; room R; int Rno,Dno; float Rate; cout<<"Enter cout<<"Enter Which Room You Want To Genarate BiLL For:"<>Rno; cout<<"No. Of Days Stayed:"<>Dno; froom.open("rooms.txt",ios::in); troom.open("test.txt",ios::out); while(froom.read((char *)&R,sizeof(R))!=0) { if(R.Get_RoomNo()==Rno) {
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
/*EMPLOYEE MENU*/ MENU*/
int emp_menu() { for(;;) { cout<<"\t"<<"\t"<<"\t"<<"\t"<<"Employee cout<<"\t"<<"\t"<<"\t"<<"\t"<<" Employee Menu"<>ch1;
switch(ch1) { case 1:write_room_database(); 1:write_room_database(); break; case 2:View_Rooms(); break;
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
guest G; G.Add_Guest(); G.Disp_Guest(); cout<<"Guest Checked In"<
/*BOOKING ROOM FUNCTION*/ FUNCTION*/
void book_room() { char rtype[10]; cout<<"Enter cout<<"Enter Room Type You Want:(AC/NAC)"<>rtype; room R; char ch4; fstream froom,troom; froom.open("rooms.txt",ios::in);
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
/*GUEST CHECKOUT CHECKOUT FUNCTION*/ void checkout_guest() checkout_guest() { guest G; char str[20]; cout<<"Enter cout<<"Enter Name To Find:"<>str; fstream fguest,tgues f guest,tguest; t; fguest.open("guests.txt",ios::in); tguest.open("test.txt",ios::out); while(fguest.read((char while(fguest.read((char *)&G,sizeof(G))!=0) { if(strcmp(G.Ret_Name(),str)==0) { G.chkout_guest_room(); G.disp_det_chkout(); tguest.write((char *)&G,sizeof(G));
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
case 3:book_room(); break; case 4:return 0; } } }
/* MAIN PROGRAM*/ PROGRAM*/ int main() { employee e1(1,"shashank","delhi","123"),e2(2 e1(1,"shashank","delhi","123"),e2(2,"tejdeep","andhra","4 ,"tejdeep","andhra","456"); 56"); e1.filewrite(); e2.filewrite(); int ch;
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Titles you can't find anywhere else
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The hotel management system project was implemented and executed successfully.
1. C++ primer 2. Google 3. Wikipedia