SlideShare a Scribd company logo
MBS PUBLIC SCHOOL 
2014-15 
COMPUTER SCIENCE INVESTIGATORY PROJECT HOTEL MANAGEMENT SYSTEM Name:- Ayashkant Mishra Class:- XII Section:- A Roll No:-
~ 1 ~ 
M.B.S Public School Department Of Computer Science CERTIFICATE This is to certify that Ayashkant Mishra, a student of class XII-A has successfully completed the research on the below mentioned project under the guidance of Mr. Chaitanya Bahadur( Subject Teacher ) during the year 2014-15 in partial fulfillment of Computer Science practical examination conducted by AISSCE, New Delhi. Signature of External Examiner Signature of Computer Science teacher
~ 2 ~ 
ACKNOWLEDGEMENT Primarily I would thank God for being able to complete this project with success. Then I would like to thank my Computer Science teacher Mr. Chaitanya Bahadur , whose valuable guidance has been the ones that helped me patch this project and make it full proof success his suggestions and his instructions has served as the major contributor towards the completion of the project. Then I would like to thank my parents and friends who have helped me with their valuable suggestions and guidance has been helpful in various phases of the completion of the project. Last but not the least I would like to thank my classmates who have helped me a lot. Ayashkant Mishra
~ 3 ~ 
//*********************************************** // PROJECT HOTEL-MANAGEMENT //*********************************************** //**************************** // INCLUDED HEADER FILES //**************************** #include"graf.cpp" #include<iostream .h> #include<conio .h> #include<string .h> #include<graphics .h> #include<dos .h> #include<stdio .h>
~ 4 ~ 
#include<fstream .h> #include<iomanip .h> #include<stdlib .h> //******************************************** // THIS CLASS CONTAINS FUNTIONS FOR FOOD //******************************************** class food { private: fstream p1; int c; char ap; struct fd { char name[55];
~ 5 ~ 
float price; }f; public: food() { c=0; } void food_menu(void); void app_fmenu(void); void food_bill(); void del_all(); }; //***************************************************** // FUNCTION FOR DISPLAYING FOOD MENU //***************************************************** void food::food_menu(void) { cleardevice();
~ 6 ~ 
setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(17,40,605,420); rectangle(17,40,605,420); setfillstyle(1,10); bar(24,47,598,413); rectangle(24,47,598,413); p1.close(); c=0; p1.open("food.txt",ios::in|ios::binary); outtextxy(30,50,"S.N. ITEM NAME PRICE"); gotoxy(4,5); char h[5],pr[15]; while(p1.read((char*)&f,sizeof(f))) { c++; settextstyle(4,0,1);
~ 7 ~ 
itoa(c,h,10); outtextxy(40,60+20*c,h); outtextxy(150,60+20*c,f.name); itoa(f.price,pr,10); outtextxy(390,60+20*c,pr); }//END OF WHILE p1.close(); settextstyle(15,0,1); outtextxy(30,325,"DO YOU WANT TO ADD AN ITEM - (Y/N)"); gotoxy(60,20); cin>>ap; if(ap=='y'||ap=='Y') { app_fmenu(); //CALLING APPEND FUNCTION } else {
~ 8 ~ 
if(ap=='n'||ap=='N') { outtextxy(30,360,"DO YOU WANT TO DELETE ALL (Y/N)"); char ch; gotoxy(60,23); cin>>ch; if(ch=='y'||ch=='Y') { del_all(); //CALLING DELETE FUNCTION } } } } //*************************************** // FUNCTION TO APPEND IN FOOD MENU //***************************************
~ 9 ~ 
void food::app_fmenu(void) { p1.open("food.txt",ios::app|ios::binary); outtextxy(30,360,"ENTER ITEM NAME U WANTTO ADD"); gotoxy(60,23); gets(f.name); outtextxy(30,380,"ENTER THE PRICE"); gotoxy(60,24); cin>>f.price; p1.write((char*)&f,sizeof(f)); p1.close(); getch(); } //***************************** // FUNCTION FOR FOOD BILL //*****************************
~ 10 ~ 
void food::food_bill() { double bill=-1; char c_name[20],f_name[20]; int dt; cleardevice(); setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(17,40,605,420); rectangle(17,40,605,420); setfillstyle(1,7); bar(24,47,598,413); rectangle(24,47,598,413); setcolor(4); settextstyle(7,0,1); outtextxy(30,70,"ENTER CUSTOMER NAME "); gotoxy(50,6);
~ 11 ~ 
cin>>c_name; outtextxy(30,120,"ENTER ITEM NAME TAKEN"); gotoxy(50,9); cin>>f_name; outtextxy(30,170,"ENTER THE QUANTITY"); gotoxy(50,12); cin>>dt; p1.close(); p1.open("food.txt",ios::in|ios::binary); while(p1.read((char*)&f,sizeof(f))) { if(strcmp(f.name,f_name)==0) { bill=dt*f.price; } }//END OF WHILE if(bill==-1) { setcolor(1);
~ 12 ~ 
for(int i=0;i&lt;20;i++) { setcolor(1); outtextxy(30,220,"ITEM IS NOT PRESENT"); delay(100); setcolor(WHITE); outtextxy(30,220,"ITEM IS NOT PRESENT"); delay(100); // delay(2500); } } else { char t[5],b[5]; setcolor(1); itoa(dt,t,10); itoa(bill,b,10);
~ 13 ~ 
outtextxy(30,250,"NAME FOOD.NAME QUANTITY BILL "); setcolor(1); settextstyle(4,0,1); outtextxy(30,280,c_name); outtextxy(140,280,f_name); outtextxy(320,280,t); outtextxy(445,280,b); getch(); } } //************************************ // FUNCTION TO DELETE FOOD MENU //****************************** void food::del_all() { remove("food.txt"); p1.open("food.txt",ios::out); p1.close();
~ 14 ~ 
c=0; } //END OF CLASS FOOD //*************************************** // THIS CLASS CONTAINS INFORMATION // RELATED TO CUSTOMER //*************************************** class customer { private: int q,w; fstream f1; struct cust {
~ 15 ~ 
int c_no; char c_name[20]; char c_add[80]; int a_date; int a_month; int a_year; int d_date; int d_month; int d_year; int room_no; char room_type[25]; }p; public: food j; customer() { p.c_no=0; p.d_date=0;
~ 16 ~ 
p.d_month=0; } //********************************** // FUNCTION FOR CUSTOMER BILL //***************************** void cust_bill() { int cho; do { cleardevice(); f1.close(); setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(10,70,600,450); rectangle(10,70,600,450);
~ 17 ~ 
setfillstyle(1,7); bar(17,77,593,443); rectangle(17,77,593,443); setcolor(5); setfillstyle(1,2); settextstyle(7,0,1); setcolor(9); setfillstyle(1,2); bar(210,140,410,238); rectangle(210,140,410,158); rectangle(210,140,410,174); rectangle(210,140,410,190); rectangle(210,140,410,206); rectangle(210,140,410,222); rectangle(210,140,410,238); setcolor(4); settextstyle(1,0,4); outtextxy(180,20,"HOTEL BILL"); line(180,60,383,60);
~ 18 ~ 
setcolor(4); settextstyle(1,0,1); outtextxy(210,137," 1. ROOM BILL"); outtextxy(210,170," 2. FOOD BILL"); outtextxy(210,200," 3. MAIN MENU"); outtextxy(63,318,"ENTER CHOICE FOR WHICH YOU WANT THE BILL"); gotoxy(67,21); cin>>cho; choose(cho); }while(cho!=3);//END OF WHILE } void choose(int a) { switch(a) {
~ 19 ~ 
case 1: { room_bill(); break; } case 2: { j.food_bill(); break; } case 3: break; } } //**************************** // FUNCTION FOR ROOM BILL //************************
~ 20 ~ 
void room_bill() { double bill; int days,no,dt,mth; cleardevice(); setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(17,40,605,420); rectangle(17,40,605,420); setfillstyle(1,7); bar(24,47,598,413); rectangle(24,47,598,413); setcolor(4); settextstyle(7,0,1); outtextxy(30,70,"ENTER CUSTOMER NO DEPARTING"); gotoxy(50,6); cin>>no;
~ 21 ~ 
outtextxy(30,120,"DATE OF DEPARTURE"); gotoxy(50,9); cin>>dt; outtextxy(30,170,"MONTH OF DEPARTURE"); gotoxy(50,12); cin>>mth; if(p.a_month>mth) {bill=0; } f1.close(); f1.open("cust.txt",ios::in|ios::binary); int c=0; while(f1.read((char*)&p,sizeof(p))) { if(p.c_no==no) { c++; if(p.a_month==mth) { days=dt-p.a_date;
~ 22 ~ 
} else { days=(mth-p.a_month)*30+(dt-p.a_date); } if(p.room_no&lt;11) { char d[5],m[5],h[5],mt[5],dy[5],bl[5]; bill=days*250; setcolor(4); outtextxy(30,270," NAME ARRIVAL DEPARTURE DAYS IN BILL "); setcolor(1); settextstyle(1,0,1); outtextxy(40,300,p.c_name); itoa(p.a_date,d,10); outtextxy(150,300,d); 
outtextxy(160,300,"/");
~ 23 ~ 
itoa(p.a_month,m,10); outtextxy(170,300,m); itoa(dt,h,10); outtextxy(270,300,h); outtextxy(280,300,"/"); itoa(mth,mt,10); outtextxy(290,300,mt); itoa(days,dy,10); outtextxy(405,300,dy); itoa(bill,bl,10); outtextxy(515,300,bl); } else { char d[5],m[5],h[5],mt[5],dy[5],bl[5]; bill=days*150; setcolor(4); 
outtextxy(30,270," NAME ARRIVAL DEPARTURE DAYS
~ 24 ~ 
IN BILL "); setcolor(1); settextstyle(1,0,1); outtextxy(40,300,p.c_name); itoa(p.a_date,d,10); outtextxy(150,300,d); outtextxy(160,300,"/"); itoa(p.a_month,m,10); outtextxy(170,300,m); itoa(dt,h,10); outtextxy(270,300,h); outtextxy(280,300,"/"); itoa(mth,mt,10); outtextxy(290,300,mt); itoa(days,dy,10); outtextxy(405,300,dy); itoa(bill,bl,10); outtextxy(510,300,bl); }
~ 25 ~ 
f1.close(); int count=1; f1.open("cust.txt",ios::in| ios::binary); fstream f2; while(f1.read((char*)&p,sizeof(p))) { if(p.c_no==no) { continue; } else { f2.open("dup.txt",ios::app|ios::binary); p.c_no=count; f2.write((char*)&p,sizeof(p)); count++; f2.close(); } }//END OF WHILE
~ 26 ~ 
remove("cust.txt"); rename("dup.txt","cust.txt"); f1.close(); } }//END OF WHILE if(c==0) { for(int i=0;i&lt;10;i++) { settextstyle(1,0,3); setcolor(4); outtextxy(150,300,"CUSTOMER IS NOT PRESENT"); delay(100); setcolor(WHITE); outtextxy(150,300,"CUSTOMER IS NOT PRESENT"); delay(100); } }
~ 27 ~ 
getch(); } //************************************** // FUNCTION TO DISPLAY CUSTOMER DETAIL //************************************** void cust_detail() { int c; do { cleardevice(); setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(50,80,600,470); rectangle(50,80,600,470); setfillstyle(1,7);
~ 28 ~ 
bar(57,87,593,463); rectangle(57,87,593,463); setcolor(9); setfillstyle(1,2); bar(210,140,410,254); rectangle(210,140,410,158); rectangle(210,140,410,174); rectangle(210,140,410,190); rectangle(210,140,410,206); rectangle(210,140,410,222); rectangle(210,140,410,238); rectangle(210,140,410,254); setcolor(4); settextstyle(1,0,4); outtextxy(160,20,"CUSTOMER DETAIL "); setcolor(14); line(163,60,475,60); setcolor(4); settextstyle(1,0,1);
~ 29 ~ 
outtextxy(225,137," CHOICES ARE :-"); setcolor(4); settextstyle(1,0,1); outtextxy(210,154," 1. APPEND"); outtextxy(210,170," 2. MODIFY"); outtextxy(210,186," 3. DELETE "); outtextxy(210,202," 4. DELETE ALL "); outtextxy(210,218," 5. DISPLAY "); outtextxy(210,234," 6. MAIN MENU"); setcolor(4); settextstyle(7,0,2); outtextxy(210,300,"ENTER CHOICE :- "); gotoxy(53,20); cin>>c; switch(c) { case 1: { cust_app();
~ 30 ~ 
break; } case 2: { cust_mod(); break; } case 3: { cust_del(); break; } case 4: { cust_adel(); break; } case 5: {
~ 31 ~ 
cust_disp(); break; } } }while(c!=6);//END OF WHILE } //*********************************** // FUNCTION TO APPEND CUSTOMER //*********************************** void cust_app() { int ten,temp; cleardevice(); f1.open("cust.txt",ios::app|ios::binary); f1.seekg(0,ios::end); ten=f1.tellg()/sizeof(p); p.c_no=ten+1;
~ 32 ~ 
setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(17,50,605,470); rectangle(17,50,605,470); setfillstyle(1,7); bar(24,57,598,463); rectangle(24,57,598,463); setcolor(4); settextstyle(7,0,1); outtextxy(30,70,"NAME"); gotoxy(50,6); cin>>p.c_name; outtextxy(30,120,"ADDRESS"); gotoxy(50,9); gets(p.c_add); outtextxy(30,170,"DATE OF ARRIVAL"); gotoxy(50,12); cin>>p.a_date;
~ 33 ~ 
outtextxy(30,220,"MONTH OF ARRIVAL"); gotoxy(50,15); cin>>p.a_month; outtextxy(30,270,"YEAR OF ARRIVAL"); gotoxy(50,18); cin>>p.a_year; p.room_no=ten+1; f1.write((char*)&p,sizeof(p)); f1.close(); } //********************************************** // FUNCTION TO DISPLAY CUSTOMER IN HOTEL //********************************************** void cust_disp() { cleardevice(); f1.close();
~ 34 ~ 
setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(20,20,620,450); rectangle(20,20,620,450); setfillstyle(1,7); bar(27,27,613,443); rectangle(27,27,613,443); setcolor(4); setfillstyle(1,2); settextstyle(7,0,1); outtextxy(25,40," CUST NO NAME ADDRESS ROOM.NO DATE"); gotoxy(30,3); int c=0; f1.open("cust.txt",ios::in|ios::binary); f1.seekg(0,ios::beg); 
char h[5],pr[5],d[5],m[6];
~ 35 ~ 
while(f1.read((char*)&p,sizeof(p))) { c++; setcolor(1); settextstyle(1,0,1); itoa(p.c_no,h,10); outtextxy(55,50+20*c,h); outtextxy(160,50+20*c,p.c_name); outtextxy(280,50+20*c,p.c_add); itoa(p.room_no,pr,10); outtextxy(440,50+20*c,pr); itoa(p.a_date,d,10); outtextxy(550,50+20*c,d); outtextxy(560,50+20*c,"/"); itoa(p.a_month,m,10); outtextxy(570,50+20*c,m); }//END OF WHILE getch(); f1.close();
~ 36 ~ 
} //************************************************ // FUNCTION FOR MODIFYING CUSTOMER DETAIL //************************************************ void cust_mod() { cleardevice(); f1.close(); setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(10,10,600,470); rectangle(10,10,600,470); setfillstyle(1,7); bar(17,17,593,463); rectangle(17,17,593,463); setcolor(9);
~ 37 ~ 
setfillstyle(1,2); setcolor(4); int no;//,count=0; outtextxy(30,42,"ENTER CUSTOMER NO TO BE MODIFIED"); gotoxy(65,4); cin>>no; f1.open("cust.txt",ios::in|ios::binary); while(f1.read((char*)&p,sizeof(p))) { if(p.c_no==no) { f1.close(); int num=sizeof(p)*(no-1); f1.open("cust.txt",ios::out|ios::ate|ios::binary); f1.seekp(num,ios::beg); outtextxy(30,110,"ENTER NEW RECORD "); outtextxy(30,150,"NAME"); gotoxy(30,11);
~ 38 ~ 
cin>>p.c_name; outtextxy(30,200,"ADDRESS"); gotoxy(30,14); cin>>p.c_add; outtextxy(30,250,"DATE"); gotoxy(30,17); cin>>p.a_date; outtextxy(30,300,"MONTH"); gotoxy(30,20); cin>>p.a_month; outtextxy(30,350,"YEAR"); gotoxy(30,23); cin>>p.a_year; f1.write((char*)&p,sizeof(p)); f1.close(); } }//END OF WHILE getch(); }
~ 39 ~ 
//************************************************* // FUNCTION TO DELETE ALL CUSTOMER RECORDS //************************************************* void cust_adel() { remove("cust.txt"); f1.open("cust.txt",ios::out|ios::binary|ios::in); p.c_no=0; p.room_no=0; } //********************************************** // FUNCTION TO DELETE A CUSTOMER RECORD //********************************************** void cust_del() {
~ 40 ~ 
cleardevice(); f1.close(); setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(10,10,600,470); rectangle(10,10,600,470); setfillstyle(1,7); bar(17,17,593,463); rectangle(17,17,593,463); setcolor(9); setfillstyle(1,2); setcolor(4); int no,count=1; outtextxy(30,42,"ENTER CUSTOMER NO TO BE DELETED"); gotoxy(65,4); cin>>no; f1.open("cust.txt",ios::in|ios::binary);
~ 41 ~ 
fstream f2; while(f1.read((char*)&p,sizeof(p))) { if(p.c_no==no) { continue; } else { f2.open("dup.txt",ios::app|ios::binary); p.c_no=count; f2.write((char*)&p,sizeof(p)); count++; f2.close(); } } remove("cust.txt"); rename("dup.txt","cust.txt"); f1.close();
~ 42 ~ 
getch(); } }; //END OF CLASS CUSTOMER //***************************************** // THIS CLASS CONTAINS INFORMATION // ABOUT HOTEL //***************************************** class hotel { private: fstream f1; struct cust { int c_no; char c_name[20]; char c_add[20];
~ 43 ~ 
int a_date; int a_month; int a_year; int d_date; int d_month; int d_year; int room_no; char room_type[25]; }x; public: }; //END OF CLASS HOTEL //******************************************* // CLASS CONTROLLING ALL THE CLASSES //******************************************* class control
~ 44 ~ 
{ private: int ch; public: hotel h; customer cust; food d; //*************************** // FUNCTION FOR PASSWORD //*************************** void pass() { char passw[20]; for(;;) { hot_name(); setcolor(4);
~ 45 ~ 
setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(50,60,600,450); rectangle(50,60,600,450); setfillstyle(1,7); bar(57,67,593,443); rectangle(57,67,593,443); setcolor(4); settextstyle(7,0,1); settextstyle(7,0,2) ; outtextxy(200,220,"ENTER PASSWORD :-"); gotoxy(55,15); cin>>passw; if (strcmp(passw,"a")==0) { cleardevice(); break; }
~ 46 ~ 
else { setcolor(4); settextstyle(7,0,1); for(int i=0;i&lt;10;i++) { setcolor(4); outtextxy(200,320,"ENTER CORRECT PASSWORD "); delay(100); setcolor(WHITE); outtextxy(200,320,"ENTER CORRECT PASSWORD "); delay(100); settextstyle(7,0,1); outtextxy(200,340,"PRESS ANY KEY TO CONTINUE"); } cleardevice(); }
~ 47 ~ 
} do { ch=mmenu(); choice(ch); }while(ch!=5);//END OF WHILE } //***************************** // FUNCTION FOR HOTEL NAME //************************ void hot_name() { settextstyle(4,0,5); setcolor(WHITE); outtextxy(200,3," TIME HOTEL"); line(200,50,440,50); }
~ 48 ~ 
//***************************** // FUNCTION FOR MAIN MENU //***************************** int mmenu() { cleardevice(); int c; setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(50,80,600,470); rectangle(50,80,600,470); setfillstyle(1,7); bar(57,87,593,463); rectangle(57,87,593,463); setcolor(9); setfillstyle(1,2);
~ 49 ~ 
bar(210,140,410,238); rectangle(210,140,410,158); rectangle(210,140,410,174); rectangle(210,140,410,190); rectangle(210,140,410,206); rectangle(210,140,410,222); rectangle(210,140,410,238); setcolor(WHITE); settextstyle(4,0,4); outtextxy(160,20,"HOTEL MANAGEMENT"); setcolor(14); line(163,60,515,60); setcolor(4); settextstyle(1,0,1); outtextxy(225,137," MAIN MENU"); outtextxy(210,154," 1. INFORMATION"); outtextxy(210,170," 2. CUSTOMER DETAIL"); outtextxy(210,186," 3. FOOD DETAIL "); outtextxy(210,202," 4. CUSTOMER BILL ");
~ 50 ~ 
outtextxy(210,218," 5. EXIT "); setcolor(4); settextstyle(7,0,2); outtextxy(210,300,"ENTER CHOICE :- "); fflush(stdin); gotoxy(53,20); cin>>c; return c; } //************************ // FUNCTION OF ENDING //************************ void bye() { cleardevice(); setcolor(12); settextstyle(1,0,5); setbkcolor(BLUE);
~ 51 ~ 
outtextxy(70,150,"THANKS FOR VISITING"); setcolor(10); settextstyle(1,0,8); outtextxy(100,250,"PROJECT"); settextstyle(1,0,3); outtextxy(150,450,"SHUTTING DOWN.. . ."); getch(); setcolor(12); settextstyle(1,0,5); outtextxy(70,150,"THANKS FOR VISITING"); setcolor(10); settextstyle(1,0,8); outtextxy(100,250,"PROJECT"); settextstyle(1,0,3); outtextxy(150,450,"SHUTTING DOWN.. . ."); for(int i=0;i&lt;10;i++) { sound(1000*i);
~ 52 ~ 
setbkcolor(i); nosound(); } } //*********************************** // FUNCTION OF CHOICE FOR INFORMATION //*********************************** void choice(int a) { switch(a) { case 1: { information(); break; } case 2:
~ 53 ~ 
{ cust.cust_detail(); break; } case 3: { d.food_menu(); break; } case 4: { cust.cust_bill(); break; } } } //***************************
~ 54 ~ 
// FUNCTION FOR INFORMATION //*************************** void information() { cleardevice(); setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(17,50,605,470); rectangle(17,50,605,470); setfillstyle(1,7); bar(24,57,598,463); rectangle(24,57,598,463); gotoxy(6,4); setcolor(4); getch(); } };
~ 55 ~ 
//********************************************** // THIS IS MAIN FUNCTION CALLING VARIOUS // FUNCTIONS //********************************************** void main() { graf(); clrscr(); int gm=DETECT,gd; initgraph(&gm,&gd,"c:tc"); setbkcolor(BLUE); setcolor(RED); for(int i=0;i&lt;450;i++) {circle(305,250,i); delay(3); } setcolor(GREEN); settextstyle(1,0,11);
~ 56 ~ 
outtextxy(80,150,"VINEETA"); getch(); cleardevice(); setbkcolor(BLUE); setcolor(RED); for(i=0;i&lt;450;i++) {circle(305,250,i); delay(3); } setcolor(GREEN); settextstyle(1,0,9); outtextxy(100,0,"PRESENTS"); outtextxy(270,120,"A"); outtextxy(100,240,"PROJECT"); outtextxy(250,360,"ON"); getch(); cleardevice(); setbkcolor(4); setcolor(GREEN);
~ 57 ~ 
for(i=0;i&lt;9;i++) { settextstyle(1,0,i); outtextxy(40+i,140+i," TIME HOTEL "); sound(200*i); delay(600); nosound(); cleardevice(); } outtextxy(46,146," TIME HOTEL"); getch(); control c; // void acknow() //{ // cleardevice(); setbkcolor(BLACK); setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10);
~ 58 ~ 
bar(17,50,605,470); rectangle(17,50,605,470); setfillstyle(1,7); bar(24,57,598,463); rectangle(24,57,598,463); setcolor(5); settextstyle(1,0,5); outtextxy(85,5,"ACKNOWLEDGEMENT"); settextstyle(1,0,3); setcolor(BLACK); outtextxy(80,60,"I wish to express my deep and heartiest"); outtextxy(40,90,"thanks to my Computer Science Teacher Mr. Chaitanya Bahadur whose"); outtextxy(40,120,"valueable advice,guidence and helped me a "); outtextxy(40,150,"lot in doing this project from conception to"); outtextxy(40,180,"completion "); 
outtextxy(100,210,"I am also very thankful to my parents ");
~ 59 ~ 
outtextxy(40,240,"and friends who gave me moral encouragement "); outtextxy(40,270,"to make this project a success."); outtextxy(40,300,"SUBMITTED BY:- "); outtextxy(40,330,"Ayashkant Mishra "); outtextxy(40,360,"Class:- XII "); outtextxy(40,390,"MBS Public School "); getch(); cleardevice(); // FOR VERIFICATION setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(17,50,605,470); rectangle(17,50,605,470); setfillstyle(1,7); bar(24,57,598,463); rectangle(24,57,598,463);
~ 60 ~ 
setcolor(5); settextstyle(1,0,5); outtextxy(120,5,"VERIFICATION"); settextstyle(1,0,3); setcolor(BLACK); outtextxy(40,60,"I Ayashkant Mishra submitting this project"); outtextxy(40,90,"as an evidence of my work in computer"); outtextxy(40,120,"lab. in guidence of Mr. CHAITANYA BAHADUR "); outtextxy(40,190,"SUBMITTED BY:- SUBMITTED TO:-"); outtextxy(40,220,"AYASHKANT MISHRA Mr.CHAIANYA BAHADUR"); outtextxy(40,250,"Class:-XII Section-:A"); outtextxy(40,280, "MBS Public School"); outtextxy(40,310,"Unit:-IX, Bhubaneswar "); 
getch();
~ 61 ~ 
cleardevice(); c.pass(); c.bye(); closegraph(); } //END OF MAIN FUNCTION </stdlib></iomanip></fstream></stdio></dos></graphics>< /string></conio></iostream >
~ 62 ~
~ 63 ~ 
THE END

More Related Content

What's hot

computer science with python project for class 12 cbse
computer science with python project for class 12 cbsecomputer science with python project for class 12 cbse
computer science with python project for class 12 cbse
manishjain598
 
Ip project
Ip projectIp project
Ip project
Jasmeet Singh
 
Informatics Practices Project on Tour and travels
 Informatics Practices Project on Tour and travels  Informatics Practices Project on Tour and travels
Informatics Practices Project on Tour and travels
Harsh Mathur
 
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12THBANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
SHAJUS5
 
Computer science project.pdf
Computer science project.pdfComputer science project.pdf
Computer science project.pdf
HarshitSachdeva17
 
Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12
OmRanjan2
 
IP Project for Class 12th CBSE
IP Project for Class 12th CBSEIP Project for Class 12th CBSE
IP Project for Class 12th CBSE
Sylvester Correya
 
“To estimate the charge induced on each one of the two identical Styrofoam (o...
“To estimate the charge induced on each one of the two identical Styrofoam (o...“To estimate the charge induced on each one of the two identical Styrofoam (o...
“To estimate the charge induced on each one of the two identical Styrofoam (o...
VanshPatil7
 
English project
English projectEnglish project
English project
jasvin2
 
Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)
KushShah65
 
Chemistry project Class 12th ( Rate of evaporation of different liquids )
Chemistry project Class 12th ( Rate of evaporation of different liquids )Chemistry project Class 12th ( Rate of evaporation of different liquids )
Chemistry project Class 12th ( Rate of evaporation of different liquids )
Vidhi Kishor
 
computer science project for class 12 on telephone billing
computer science project for class 12 on telephone billingcomputer science project for class 12 on telephone billing
computer science project for class 12 on telephone billing
anshi acharya
 
English ASL Project Work - The Enemy - The Conflict of Human Emotions
English ASL Project Work - The Enemy - The Conflict of Human EmotionsEnglish ASL Project Work - The Enemy - The Conflict of Human Emotions
English ASL Project Work - The Enemy - The Conflict of Human Emotions
Harlincoln Singh Thandi
 
class 12th computer science project Employee Management System In Python
 class 12th computer science project Employee Management System In Python class 12th computer science project Employee Management System In Python
class 12th computer science project Employee Management System In Python
AbhishekKumarMorla
 
CBSE Class 12 Computer practical Python Programs and MYSQL
CBSE Class 12 Computer practical Python Programs and MYSQL CBSE Class 12 Computer practical Python Programs and MYSQL
CBSE Class 12 Computer practical Python Programs and MYSQL
Rishabh-Rawat
 
PROJECT ON HOTEL MANAGEMENT.pdf
PROJECT ON HOTEL MANAGEMENT.pdfPROJECT ON HOTEL MANAGEMENT.pdf
PROJECT ON HOTEL MANAGEMENT.pdf
NakulSingh78
 
Ip library management project
Ip library management projectIp library management project
Ip library management project
AmazShopzone
 
photoelectric effect made by-chinmay jagadev pattanayak
 photoelectric effect  made by-chinmay jagadev pattanayak photoelectric effect  made by-chinmay jagadev pattanayak
photoelectric effect made by-chinmay jagadev pattanayak
CHINMAY JAGADEV
 
English Project work.pdf
English Project work.pdfEnglish Project work.pdf
English Project work.pdf
AakashKushwaha26
 
Physics Investigatory - Electromagnetic Induction. CLASS XII
Physics Investigatory - Electromagnetic Induction.    CLASS XIIPhysics Investigatory - Electromagnetic Induction.    CLASS XII
Physics Investigatory - Electromagnetic Induction. CLASS XII
EligetiVishnu
 

What's hot (20)

computer science with python project for class 12 cbse
computer science with python project for class 12 cbsecomputer science with python project for class 12 cbse
computer science with python project for class 12 cbse
 
Ip project
Ip projectIp project
Ip project
 
Informatics Practices Project on Tour and travels
 Informatics Practices Project on Tour and travels  Informatics Practices Project on Tour and travels
Informatics Practices Project on Tour and travels
 
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12THBANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
 
Computer science project.pdf
Computer science project.pdfComputer science project.pdf
Computer science project.pdf
 
Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12
 
IP Project for Class 12th CBSE
IP Project for Class 12th CBSEIP Project for Class 12th CBSE
IP Project for Class 12th CBSE
 
“To estimate the charge induced on each one of the two identical Styrofoam (o...
“To estimate the charge induced on each one of the two identical Styrofoam (o...“To estimate the charge induced on each one of the two identical Styrofoam (o...
“To estimate the charge induced on each one of the two identical Styrofoam (o...
 
English project
English projectEnglish project
English project
 
Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)
 
Chemistry project Class 12th ( Rate of evaporation of different liquids )
Chemistry project Class 12th ( Rate of evaporation of different liquids )Chemistry project Class 12th ( Rate of evaporation of different liquids )
Chemistry project Class 12th ( Rate of evaporation of different liquids )
 
computer science project for class 12 on telephone billing
computer science project for class 12 on telephone billingcomputer science project for class 12 on telephone billing
computer science project for class 12 on telephone billing
 
English ASL Project Work - The Enemy - The Conflict of Human Emotions
English ASL Project Work - The Enemy - The Conflict of Human EmotionsEnglish ASL Project Work - The Enemy - The Conflict of Human Emotions
English ASL Project Work - The Enemy - The Conflict of Human Emotions
 
class 12th computer science project Employee Management System In Python
 class 12th computer science project Employee Management System In Python class 12th computer science project Employee Management System In Python
class 12th computer science project Employee Management System In Python
 
CBSE Class 12 Computer practical Python Programs and MYSQL
CBSE Class 12 Computer practical Python Programs and MYSQL CBSE Class 12 Computer practical Python Programs and MYSQL
CBSE Class 12 Computer practical Python Programs and MYSQL
 
PROJECT ON HOTEL MANAGEMENT.pdf
PROJECT ON HOTEL MANAGEMENT.pdfPROJECT ON HOTEL MANAGEMENT.pdf
PROJECT ON HOTEL MANAGEMENT.pdf
 
Ip library management project
Ip library management projectIp library management project
Ip library management project
 
photoelectric effect made by-chinmay jagadev pattanayak
 photoelectric effect  made by-chinmay jagadev pattanayak photoelectric effect  made by-chinmay jagadev pattanayak
photoelectric effect made by-chinmay jagadev pattanayak
 
English Project work.pdf
English Project work.pdfEnglish Project work.pdf
English Project work.pdf
 
Physics Investigatory - Electromagnetic Induction. CLASS XII
Physics Investigatory - Electromagnetic Induction.    CLASS XIIPhysics Investigatory - Electromagnetic Induction.    CLASS XII
Physics Investigatory - Electromagnetic Induction. CLASS XII
 

Viewers also liked

Computer science project work
Computer science project workComputer science project work
Computer science project work
rahulchamp2345
 
COMPUTERS ( types of viruses)
COMPUTERS ( types of viruses)COMPUTERS ( types of viruses)
COMPUTERS ( types of viruses)
Sowjanya Sampathkumar
 
81818088 isc-class-xii-computer-science-project-java-programs
81818088 isc-class-xii-computer-science-project-java-programs81818088 isc-class-xii-computer-science-project-java-programs
81818088 isc-class-xii-computer-science-project-java-programs
Abhishek Jena
 
Acknowledgement
AcknowledgementAcknowledgement
Acknowledgement
Surendra Sonawane
 
Chemistry Investigatory Project (Class 12 ,CBSE)
Chemistry Investigatory Project (Class 12 ,CBSE)  Chemistry Investigatory Project (Class 12 ,CBSE)
Chemistry Investigatory Project (Class 12 ,CBSE)
अयशकांत मिश्र
 
Sample Acknowledgement of Project Report
Sample Acknowledgement of Project ReportSample Acknowledgement of Project Report
Sample Acknowledgement of Project Report
MBAnetbook.co.in
 
Acknowledgement
AcknowledgementAcknowledgement
Acknowledgement
karanj212
 
School Management (c++)
School Management (c++) School Management (c++)
School Management (c++)
Nirdhishwar Nirdhi
 
Student management system project report c++
Student management system project report c++Student management system project report c++
Student management system project report c++
Student
 
Example of acknowledgment
Example of acknowledgmentExample of acknowledgment
Example of acknowledgment
Hasanah Mohd Zain
 
Hotel management
Hotel managementHotel management
Hotel management
Ritu Raj Mishra
 
Chemistry project
Chemistry projectChemistry project
Chemistry project
Tarun Malhotra
 
Computer Project Doc
Computer Project DocComputer Project Doc
Computer Project Doc
Nishit Mehta
 
Computer science investigatory project- computer shop
Computer science investigatory project- computer shopComputer science investigatory project- computer shop
Computer science investigatory project- computer shop
Yash Panwar
 
Counseling chomprehensive (REFRENSI)
Counseling chomprehensive (REFRENSI)Counseling chomprehensive (REFRENSI)
Counseling chomprehensive (REFRENSI)
Nur Arifaizal Basri
 
Lifeboy Stratergy
Lifeboy StratergyLifeboy Stratergy
Lifeboy Stratergy
Bibin Thomas
 
WHS Freshman Orientation Dickens
WHS Freshman Orientation DickensWHS Freshman Orientation Dickens
WHS Freshman Orientation Dickens
susanh11
 
Halifax HS/MS Building Project
Halifax HS/MS Building ProjectHalifax HS/MS Building Project
Halifax HS/MS Building Project
lorahm
 
Freshorientation09
Freshorientation09Freshorientation09
Freshorientation09
susanh11
 
High School Project: The Oka Crisis (for Contemporary World class)
High School Project: The Oka Crisis (for Contemporary World class)High School Project: The Oka Crisis (for Contemporary World class)
High School Project: The Oka Crisis (for Contemporary World class)
Gregory Desrosiers
 

Viewers also liked (20)

Computer science project work
Computer science project workComputer science project work
Computer science project work
 
COMPUTERS ( types of viruses)
COMPUTERS ( types of viruses)COMPUTERS ( types of viruses)
COMPUTERS ( types of viruses)
 
81818088 isc-class-xii-computer-science-project-java-programs
81818088 isc-class-xii-computer-science-project-java-programs81818088 isc-class-xii-computer-science-project-java-programs
81818088 isc-class-xii-computer-science-project-java-programs
 
Acknowledgement
AcknowledgementAcknowledgement
Acknowledgement
 
Chemistry Investigatory Project (Class 12 ,CBSE)
Chemistry Investigatory Project (Class 12 ,CBSE)  Chemistry Investigatory Project (Class 12 ,CBSE)
Chemistry Investigatory Project (Class 12 ,CBSE)
 
Sample Acknowledgement of Project Report
Sample Acknowledgement of Project ReportSample Acknowledgement of Project Report
Sample Acknowledgement of Project Report
 
Acknowledgement
AcknowledgementAcknowledgement
Acknowledgement
 
School Management (c++)
School Management (c++) School Management (c++)
School Management (c++)
 
Student management system project report c++
Student management system project report c++Student management system project report c++
Student management system project report c++
 
Example of acknowledgment
Example of acknowledgmentExample of acknowledgment
Example of acknowledgment
 
Hotel management
Hotel managementHotel management
Hotel management
 
Chemistry project
Chemistry projectChemistry project
Chemistry project
 
Computer Project Doc
Computer Project DocComputer Project Doc
Computer Project Doc
 
Computer science investigatory project- computer shop
Computer science investigatory project- computer shopComputer science investigatory project- computer shop
Computer science investigatory project- computer shop
 
Counseling chomprehensive (REFRENSI)
Counseling chomprehensive (REFRENSI)Counseling chomprehensive (REFRENSI)
Counseling chomprehensive (REFRENSI)
 
Lifeboy Stratergy
Lifeboy StratergyLifeboy Stratergy
Lifeboy Stratergy
 
WHS Freshman Orientation Dickens
WHS Freshman Orientation DickensWHS Freshman Orientation Dickens
WHS Freshman Orientation Dickens
 
Halifax HS/MS Building Project
Halifax HS/MS Building ProjectHalifax HS/MS Building Project
Halifax HS/MS Building Project
 
Freshorientation09
Freshorientation09Freshorientation09
Freshorientation09
 
High School Project: The Oka Crisis (for Contemporary World class)
High School Project: The Oka Crisis (for Contemporary World class)High School Project: The Oka Crisis (for Contemporary World class)
High School Project: The Oka Crisis (for Contemporary World class)
 

Similar to Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)

Project fast food automaton
Project fast food automatonProject fast food automaton
Project fast food automaton
varun arora
 
Project hotel on hotel management fo
Project  hotel on hotel management foProject  hotel on hotel management fo
Project hotel on hotel management fo
Sunny Singhania
 
Library Management System in c++
Library Management System in c++Library Management System in c++
Library Management System in c++
vikram mahendra
 
Quiz using C++
Quiz using C++Quiz using C++
Quiz using C++
Sushil Mishra
 
Telephone billing system in c++
Telephone billing system in c++Telephone billing system in c++
Telephone billing system in c++
vikram mahendra
 
Library management
Library managementLibrary management
Library management
Vishnu Prasad
 
Bhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearBhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third Year
Dezyneecole
 
c++ project on restaurant billing
c++ project on restaurant billing c++ project on restaurant billing
c++ project on restaurant billing
Swakriti Rathore
 
C++ project on police station software
C++ project on police station softwareC++ project on police station software
C++ project on police station software
dharmenderlodhi021
 
BOOK SHOP SYSTEM C++
BOOK SHOP SYSTEM C++BOOK SHOP SYSTEM C++
BOOK SHOP SYSTEM C++
vikram mahendra
 
Computer science Investigatory Project Class 12 C++
Computer science Investigatory Project Class 12 C++Computer science Investigatory Project Class 12 C++
Computer science Investigatory Project Class 12 C++
Rushil Aggarwal
 
Program(Output)
Program(Output)Program(Output)
Program(Output)
princy75
 
Write the definition of the linkedListKeepLast function- (Please write.docx
Write the definition of the linkedListKeepLast function- (Please write.docxWrite the definition of the linkedListKeepLast function- (Please write.docx
Write the definition of the linkedListKeepLast function- (Please write.docx
delicecogupdyke
 
Pads lab manual final
Pads lab manual finalPads lab manual final
Pads lab manual final
AhalyaR
 
Class ‘increment’
Class ‘increment’Class ‘increment’
Class ‘increment’
Syed Zaid Irshad
 
#include iostream #includeData.h #includePerson.h#in.pdf
#include iostream #includeData.h #includePerson.h#in.pdf#include iostream #includeData.h #includePerson.h#in.pdf
#include iostream #includeData.h #includePerson.h#in.pdf
annucommunication1
 
Developing Information Schema Plugins
Developing Information Schema PluginsDeveloping Information Schema Plugins
Developing Information Schema Plugins
Mark Leith
 
Investigatory Project for Computer Science
Investigatory Project for Computer Science Investigatory Project for Computer Science
Investigatory Project for Computer Science
Sonali Sinha
 
struct procedure {    Date dateOfProcedure;    int procedureID.pdf
struct procedure {    Date dateOfProcedure;    int procedureID.pdfstruct procedure {    Date dateOfProcedure;    int procedureID.pdf
struct procedure {    Date dateOfProcedure;    int procedureID.pdf
anonaeon
 
Students Management System c++ project.pptx
Students Management System c++ project.pptxStudents Management System c++ project.pptx
Students Management System c++ project.pptx
qaswarsarfraz
 

Similar to Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM) (20)

Project fast food automaton
Project fast food automatonProject fast food automaton
Project fast food automaton
 
Project hotel on hotel management fo
Project  hotel on hotel management foProject  hotel on hotel management fo
Project hotel on hotel management fo
 
Library Management System in c++
Library Management System in c++Library Management System in c++
Library Management System in c++
 
Quiz using C++
Quiz using C++Quiz using C++
Quiz using C++
 
Telephone billing system in c++
Telephone billing system in c++Telephone billing system in c++
Telephone billing system in c++
 
Library management
Library managementLibrary management
Library management
 
Bhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearBhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third Year
 
c++ project on restaurant billing
c++ project on restaurant billing c++ project on restaurant billing
c++ project on restaurant billing
 
C++ project on police station software
C++ project on police station softwareC++ project on police station software
C++ project on police station software
 
BOOK SHOP SYSTEM C++
BOOK SHOP SYSTEM C++BOOK SHOP SYSTEM C++
BOOK SHOP SYSTEM C++
 
Computer science Investigatory Project Class 12 C++
Computer science Investigatory Project Class 12 C++Computer science Investigatory Project Class 12 C++
Computer science Investigatory Project Class 12 C++
 
Program(Output)
Program(Output)Program(Output)
Program(Output)
 
Write the definition of the linkedListKeepLast function- (Please write.docx
Write the definition of the linkedListKeepLast function- (Please write.docxWrite the definition of the linkedListKeepLast function- (Please write.docx
Write the definition of the linkedListKeepLast function- (Please write.docx
 
Pads lab manual final
Pads lab manual finalPads lab manual final
Pads lab manual final
 
Class ‘increment’
Class ‘increment’Class ‘increment’
Class ‘increment’
 
#include iostream #includeData.h #includePerson.h#in.pdf
#include iostream #includeData.h #includePerson.h#in.pdf#include iostream #includeData.h #includePerson.h#in.pdf
#include iostream #includeData.h #includePerson.h#in.pdf
 
Developing Information Schema Plugins
Developing Information Schema PluginsDeveloping Information Schema Plugins
Developing Information Schema Plugins
 
Investigatory Project for Computer Science
Investigatory Project for Computer Science Investigatory Project for Computer Science
Investigatory Project for Computer Science
 
struct procedure {    Date dateOfProcedure;    int procedureID.pdf
struct procedure {    Date dateOfProcedure;    int procedureID.pdfstruct procedure {    Date dateOfProcedure;    int procedureID.pdf
struct procedure {    Date dateOfProcedure;    int procedureID.pdf
 
Students Management System c++ project.pptx
Students Management System c++ project.pptxStudents Management System c++ project.pptx
Students Management System c++ project.pptx
 

Recently uploaded

Equivariant neural networks and representation theory
Equivariant neural networks and representation theoryEquivariant neural networks and representation theory
Equivariant neural networks and representation theory
Daniel Tubbenhauer
 
Thornton ESPP slides UK WW Network 4_6_24.pdf
Thornton ESPP slides UK WW Network 4_6_24.pdfThornton ESPP slides UK WW Network 4_6_24.pdf
Thornton ESPP slides UK WW Network 4_6_24.pdf
European Sustainable Phosphorus Platform
 
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
yqqaatn0
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
University of Hertfordshire
 
Eukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptxEukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptx
RitabrataSarkar3
 
20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx
Sharon Liu
 
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdfwaterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
LengamoLAppostilic
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
Sérgio Sacani
 
NuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyerNuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyer
pablovgd
 
Randomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNERandomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNE
University of Maribor
 
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
David Osipyan
 
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptxThe use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
MAGOTI ERNEST
 
Bob Reedy - Nitrate in Texas Groundwater.pdf
Bob Reedy - Nitrate in Texas Groundwater.pdfBob Reedy - Nitrate in Texas Groundwater.pdf
Bob Reedy - Nitrate in Texas Groundwater.pdf
Texas Alliance of Groundwater Districts
 
aziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobelaziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobel
İsa Badur
 
Compexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titrationCompexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titration
Vandana Devesh Sharma
 
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
Abdul Wali Khan University Mardan,kP,Pakistan
 
SAR of Medicinal Chemistry 1st by dk.pdf
SAR of Medicinal Chemistry 1st by dk.pdfSAR of Medicinal Chemistry 1st by dk.pdf
SAR of Medicinal Chemistry 1st by dk.pdf
KrushnaDarade1
 
Immersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths ForwardImmersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths Forward
Leonel Morgado
 
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốtmô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
HongcNguyn6
 
The binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defectsThe binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defects
Sérgio Sacani
 

Recently uploaded (20)

Equivariant neural networks and representation theory
Equivariant neural networks and representation theoryEquivariant neural networks and representation theory
Equivariant neural networks and representation theory
 
Thornton ESPP slides UK WW Network 4_6_24.pdf
Thornton ESPP slides UK WW Network 4_6_24.pdfThornton ESPP slides UK WW Network 4_6_24.pdf
Thornton ESPP slides UK WW Network 4_6_24.pdf
 
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
 
Eukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptxEukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptx
 
20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx
 
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdfwaterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
 
NuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyerNuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyer
 
Randomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNERandomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNE
 
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
 
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptxThe use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
 
Bob Reedy - Nitrate in Texas Groundwater.pdf
Bob Reedy - Nitrate in Texas Groundwater.pdfBob Reedy - Nitrate in Texas Groundwater.pdf
Bob Reedy - Nitrate in Texas Groundwater.pdf
 
aziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobelaziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobel
 
Compexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titrationCompexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titration
 
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
 
SAR of Medicinal Chemistry 1st by dk.pdf
SAR of Medicinal Chemistry 1st by dk.pdfSAR of Medicinal Chemistry 1st by dk.pdf
SAR of Medicinal Chemistry 1st by dk.pdf
 
Immersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths ForwardImmersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths Forward
 
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốtmô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
 
The binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defectsThe binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defects
 

Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)

  • 1. MBS PUBLIC SCHOOL 2014-15 COMPUTER SCIENCE INVESTIGATORY PROJECT HOTEL MANAGEMENT SYSTEM Name:- Ayashkant Mishra Class:- XII Section:- A Roll No:-
  • 2. ~ 1 ~ M.B.S Public School Department Of Computer Science CERTIFICATE This is to certify that Ayashkant Mishra, a student of class XII-A has successfully completed the research on the below mentioned project under the guidance of Mr. Chaitanya Bahadur( Subject Teacher ) during the year 2014-15 in partial fulfillment of Computer Science practical examination conducted by AISSCE, New Delhi. Signature of External Examiner Signature of Computer Science teacher
  • 3. ~ 2 ~ ACKNOWLEDGEMENT Primarily I would thank God for being able to complete this project with success. Then I would like to thank my Computer Science teacher Mr. Chaitanya Bahadur , whose valuable guidance has been the ones that helped me patch this project and make it full proof success his suggestions and his instructions has served as the major contributor towards the completion of the project. Then I would like to thank my parents and friends who have helped me with their valuable suggestions and guidance has been helpful in various phases of the completion of the project. Last but not the least I would like to thank my classmates who have helped me a lot. Ayashkant Mishra
  • 4. ~ 3 ~ //*********************************************** // PROJECT HOTEL-MANAGEMENT //*********************************************** //**************************** // INCLUDED HEADER FILES //**************************** #include"graf.cpp" #include<iostream .h> #include<conio .h> #include<string .h> #include<graphics .h> #include<dos .h> #include<stdio .h>
  • 5. ~ 4 ~ #include<fstream .h> #include<iomanip .h> #include<stdlib .h> //******************************************** // THIS CLASS CONTAINS FUNTIONS FOR FOOD //******************************************** class food { private: fstream p1; int c; char ap; struct fd { char name[55];
  • 6. ~ 5 ~ float price; }f; public: food() { c=0; } void food_menu(void); void app_fmenu(void); void food_bill(); void del_all(); }; //***************************************************** // FUNCTION FOR DISPLAYING FOOD MENU //***************************************************** void food::food_menu(void) { cleardevice();
  • 7. ~ 6 ~ setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(17,40,605,420); rectangle(17,40,605,420); setfillstyle(1,10); bar(24,47,598,413); rectangle(24,47,598,413); p1.close(); c=0; p1.open("food.txt",ios::in|ios::binary); outtextxy(30,50,"S.N. ITEM NAME PRICE"); gotoxy(4,5); char h[5],pr[15]; while(p1.read((char*)&f,sizeof(f))) { c++; settextstyle(4,0,1);
  • 8. ~ 7 ~ itoa(c,h,10); outtextxy(40,60+20*c,h); outtextxy(150,60+20*c,f.name); itoa(f.price,pr,10); outtextxy(390,60+20*c,pr); }//END OF WHILE p1.close(); settextstyle(15,0,1); outtextxy(30,325,"DO YOU WANT TO ADD AN ITEM - (Y/N)"); gotoxy(60,20); cin>>ap; if(ap=='y'||ap=='Y') { app_fmenu(); //CALLING APPEND FUNCTION } else {
  • 9. ~ 8 ~ if(ap=='n'||ap=='N') { outtextxy(30,360,"DO YOU WANT TO DELETE ALL (Y/N)"); char ch; gotoxy(60,23); cin>>ch; if(ch=='y'||ch=='Y') { del_all(); //CALLING DELETE FUNCTION } } } } //*************************************** // FUNCTION TO APPEND IN FOOD MENU //***************************************
  • 10. ~ 9 ~ void food::app_fmenu(void) { p1.open("food.txt",ios::app|ios::binary); outtextxy(30,360,"ENTER ITEM NAME U WANTTO ADD"); gotoxy(60,23); gets(f.name); outtextxy(30,380,"ENTER THE PRICE"); gotoxy(60,24); cin>>f.price; p1.write((char*)&f,sizeof(f)); p1.close(); getch(); } //***************************** // FUNCTION FOR FOOD BILL //*****************************
  • 11. ~ 10 ~ void food::food_bill() { double bill=-1; char c_name[20],f_name[20]; int dt; cleardevice(); setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(17,40,605,420); rectangle(17,40,605,420); setfillstyle(1,7); bar(24,47,598,413); rectangle(24,47,598,413); setcolor(4); settextstyle(7,0,1); outtextxy(30,70,"ENTER CUSTOMER NAME "); gotoxy(50,6);
  • 12. ~ 11 ~ cin>>c_name; outtextxy(30,120,"ENTER ITEM NAME TAKEN"); gotoxy(50,9); cin>>f_name; outtextxy(30,170,"ENTER THE QUANTITY"); gotoxy(50,12); cin>>dt; p1.close(); p1.open("food.txt",ios::in|ios::binary); while(p1.read((char*)&f,sizeof(f))) { if(strcmp(f.name,f_name)==0) { bill=dt*f.price; } }//END OF WHILE if(bill==-1) { setcolor(1);
  • 13. ~ 12 ~ for(int i=0;i&lt;20;i++) { setcolor(1); outtextxy(30,220,"ITEM IS NOT PRESENT"); delay(100); setcolor(WHITE); outtextxy(30,220,"ITEM IS NOT PRESENT"); delay(100); // delay(2500); } } else { char t[5],b[5]; setcolor(1); itoa(dt,t,10); itoa(bill,b,10);
  • 14. ~ 13 ~ outtextxy(30,250,"NAME FOOD.NAME QUANTITY BILL "); setcolor(1); settextstyle(4,0,1); outtextxy(30,280,c_name); outtextxy(140,280,f_name); outtextxy(320,280,t); outtextxy(445,280,b); getch(); } } //************************************ // FUNCTION TO DELETE FOOD MENU //****************************** void food::del_all() { remove("food.txt"); p1.open("food.txt",ios::out); p1.close();
  • 15. ~ 14 ~ c=0; } //END OF CLASS FOOD //*************************************** // THIS CLASS CONTAINS INFORMATION // RELATED TO CUSTOMER //*************************************** class customer { private: int q,w; fstream f1; struct cust {
  • 16. ~ 15 ~ int c_no; char c_name[20]; char c_add[80]; int a_date; int a_month; int a_year; int d_date; int d_month; int d_year; int room_no; char room_type[25]; }p; public: food j; customer() { p.c_no=0; p.d_date=0;
  • 17. ~ 16 ~ p.d_month=0; } //********************************** // FUNCTION FOR CUSTOMER BILL //***************************** void cust_bill() { int cho; do { cleardevice(); f1.close(); setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(10,70,600,450); rectangle(10,70,600,450);
  • 18. ~ 17 ~ setfillstyle(1,7); bar(17,77,593,443); rectangle(17,77,593,443); setcolor(5); setfillstyle(1,2); settextstyle(7,0,1); setcolor(9); setfillstyle(1,2); bar(210,140,410,238); rectangle(210,140,410,158); rectangle(210,140,410,174); rectangle(210,140,410,190); rectangle(210,140,410,206); rectangle(210,140,410,222); rectangle(210,140,410,238); setcolor(4); settextstyle(1,0,4); outtextxy(180,20,"HOTEL BILL"); line(180,60,383,60);
  • 19. ~ 18 ~ setcolor(4); settextstyle(1,0,1); outtextxy(210,137," 1. ROOM BILL"); outtextxy(210,170," 2. FOOD BILL"); outtextxy(210,200," 3. MAIN MENU"); outtextxy(63,318,"ENTER CHOICE FOR WHICH YOU WANT THE BILL"); gotoxy(67,21); cin>>cho; choose(cho); }while(cho!=3);//END OF WHILE } void choose(int a) { switch(a) {
  • 20. ~ 19 ~ case 1: { room_bill(); break; } case 2: { j.food_bill(); break; } case 3: break; } } //**************************** // FUNCTION FOR ROOM BILL //************************
  • 21. ~ 20 ~ void room_bill() { double bill; int days,no,dt,mth; cleardevice(); setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(17,40,605,420); rectangle(17,40,605,420); setfillstyle(1,7); bar(24,47,598,413); rectangle(24,47,598,413); setcolor(4); settextstyle(7,0,1); outtextxy(30,70,"ENTER CUSTOMER NO DEPARTING"); gotoxy(50,6); cin>>no;
  • 22. ~ 21 ~ outtextxy(30,120,"DATE OF DEPARTURE"); gotoxy(50,9); cin>>dt; outtextxy(30,170,"MONTH OF DEPARTURE"); gotoxy(50,12); cin>>mth; if(p.a_month>mth) {bill=0; } f1.close(); f1.open("cust.txt",ios::in|ios::binary); int c=0; while(f1.read((char*)&p,sizeof(p))) { if(p.c_no==no) { c++; if(p.a_month==mth) { days=dt-p.a_date;
  • 23. ~ 22 ~ } else { days=(mth-p.a_month)*30+(dt-p.a_date); } if(p.room_no&lt;11) { char d[5],m[5],h[5],mt[5],dy[5],bl[5]; bill=days*250; setcolor(4); outtextxy(30,270," NAME ARRIVAL DEPARTURE DAYS IN BILL "); setcolor(1); settextstyle(1,0,1); outtextxy(40,300,p.c_name); itoa(p.a_date,d,10); outtextxy(150,300,d); outtextxy(160,300,"/");
  • 24. ~ 23 ~ itoa(p.a_month,m,10); outtextxy(170,300,m); itoa(dt,h,10); outtextxy(270,300,h); outtextxy(280,300,"/"); itoa(mth,mt,10); outtextxy(290,300,mt); itoa(days,dy,10); outtextxy(405,300,dy); itoa(bill,bl,10); outtextxy(515,300,bl); } else { char d[5],m[5],h[5],mt[5],dy[5],bl[5]; bill=days*150; setcolor(4); outtextxy(30,270," NAME ARRIVAL DEPARTURE DAYS
  • 25. ~ 24 ~ IN BILL "); setcolor(1); settextstyle(1,0,1); outtextxy(40,300,p.c_name); itoa(p.a_date,d,10); outtextxy(150,300,d); outtextxy(160,300,"/"); itoa(p.a_month,m,10); outtextxy(170,300,m); itoa(dt,h,10); outtextxy(270,300,h); outtextxy(280,300,"/"); itoa(mth,mt,10); outtextxy(290,300,mt); itoa(days,dy,10); outtextxy(405,300,dy); itoa(bill,bl,10); outtextxy(510,300,bl); }
  • 26. ~ 25 ~ f1.close(); int count=1; f1.open("cust.txt",ios::in| ios::binary); fstream f2; while(f1.read((char*)&p,sizeof(p))) { if(p.c_no==no) { continue; } else { f2.open("dup.txt",ios::app|ios::binary); p.c_no=count; f2.write((char*)&p,sizeof(p)); count++; f2.close(); } }//END OF WHILE
  • 27. ~ 26 ~ remove("cust.txt"); rename("dup.txt","cust.txt"); f1.close(); } }//END OF WHILE if(c==0) { for(int i=0;i&lt;10;i++) { settextstyle(1,0,3); setcolor(4); outtextxy(150,300,"CUSTOMER IS NOT PRESENT"); delay(100); setcolor(WHITE); outtextxy(150,300,"CUSTOMER IS NOT PRESENT"); delay(100); } }
  • 28. ~ 27 ~ getch(); } //************************************** // FUNCTION TO DISPLAY CUSTOMER DETAIL //************************************** void cust_detail() { int c; do { cleardevice(); setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(50,80,600,470); rectangle(50,80,600,470); setfillstyle(1,7);
  • 29. ~ 28 ~ bar(57,87,593,463); rectangle(57,87,593,463); setcolor(9); setfillstyle(1,2); bar(210,140,410,254); rectangle(210,140,410,158); rectangle(210,140,410,174); rectangle(210,140,410,190); rectangle(210,140,410,206); rectangle(210,140,410,222); rectangle(210,140,410,238); rectangle(210,140,410,254); setcolor(4); settextstyle(1,0,4); outtextxy(160,20,"CUSTOMER DETAIL "); setcolor(14); line(163,60,475,60); setcolor(4); settextstyle(1,0,1);
  • 30. ~ 29 ~ outtextxy(225,137," CHOICES ARE :-"); setcolor(4); settextstyle(1,0,1); outtextxy(210,154," 1. APPEND"); outtextxy(210,170," 2. MODIFY"); outtextxy(210,186," 3. DELETE "); outtextxy(210,202," 4. DELETE ALL "); outtextxy(210,218," 5. DISPLAY "); outtextxy(210,234," 6. MAIN MENU"); setcolor(4); settextstyle(7,0,2); outtextxy(210,300,"ENTER CHOICE :- "); gotoxy(53,20); cin>>c; switch(c) { case 1: { cust_app();
  • 31. ~ 30 ~ break; } case 2: { cust_mod(); break; } case 3: { cust_del(); break; } case 4: { cust_adel(); break; } case 5: {
  • 32. ~ 31 ~ cust_disp(); break; } } }while(c!=6);//END OF WHILE } //*********************************** // FUNCTION TO APPEND CUSTOMER //*********************************** void cust_app() { int ten,temp; cleardevice(); f1.open("cust.txt",ios::app|ios::binary); f1.seekg(0,ios::end); ten=f1.tellg()/sizeof(p); p.c_no=ten+1;
  • 33. ~ 32 ~ setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(17,50,605,470); rectangle(17,50,605,470); setfillstyle(1,7); bar(24,57,598,463); rectangle(24,57,598,463); setcolor(4); settextstyle(7,0,1); outtextxy(30,70,"NAME"); gotoxy(50,6); cin>>p.c_name; outtextxy(30,120,"ADDRESS"); gotoxy(50,9); gets(p.c_add); outtextxy(30,170,"DATE OF ARRIVAL"); gotoxy(50,12); cin>>p.a_date;
  • 34. ~ 33 ~ outtextxy(30,220,"MONTH OF ARRIVAL"); gotoxy(50,15); cin>>p.a_month; outtextxy(30,270,"YEAR OF ARRIVAL"); gotoxy(50,18); cin>>p.a_year; p.room_no=ten+1; f1.write((char*)&p,sizeof(p)); f1.close(); } //********************************************** // FUNCTION TO DISPLAY CUSTOMER IN HOTEL //********************************************** void cust_disp() { cleardevice(); f1.close();
  • 35. ~ 34 ~ setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(20,20,620,450); rectangle(20,20,620,450); setfillstyle(1,7); bar(27,27,613,443); rectangle(27,27,613,443); setcolor(4); setfillstyle(1,2); settextstyle(7,0,1); outtextxy(25,40," CUST NO NAME ADDRESS ROOM.NO DATE"); gotoxy(30,3); int c=0; f1.open("cust.txt",ios::in|ios::binary); f1.seekg(0,ios::beg); char h[5],pr[5],d[5],m[6];
  • 36. ~ 35 ~ while(f1.read((char*)&p,sizeof(p))) { c++; setcolor(1); settextstyle(1,0,1); itoa(p.c_no,h,10); outtextxy(55,50+20*c,h); outtextxy(160,50+20*c,p.c_name); outtextxy(280,50+20*c,p.c_add); itoa(p.room_no,pr,10); outtextxy(440,50+20*c,pr); itoa(p.a_date,d,10); outtextxy(550,50+20*c,d); outtextxy(560,50+20*c,"/"); itoa(p.a_month,m,10); outtextxy(570,50+20*c,m); }//END OF WHILE getch(); f1.close();
  • 37. ~ 36 ~ } //************************************************ // FUNCTION FOR MODIFYING CUSTOMER DETAIL //************************************************ void cust_mod() { cleardevice(); f1.close(); setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(10,10,600,470); rectangle(10,10,600,470); setfillstyle(1,7); bar(17,17,593,463); rectangle(17,17,593,463); setcolor(9);
  • 38. ~ 37 ~ setfillstyle(1,2); setcolor(4); int no;//,count=0; outtextxy(30,42,"ENTER CUSTOMER NO TO BE MODIFIED"); gotoxy(65,4); cin>>no; f1.open("cust.txt",ios::in|ios::binary); while(f1.read((char*)&p,sizeof(p))) { if(p.c_no==no) { f1.close(); int num=sizeof(p)*(no-1); f1.open("cust.txt",ios::out|ios::ate|ios::binary); f1.seekp(num,ios::beg); outtextxy(30,110,"ENTER NEW RECORD "); outtextxy(30,150,"NAME"); gotoxy(30,11);
  • 39. ~ 38 ~ cin>>p.c_name; outtextxy(30,200,"ADDRESS"); gotoxy(30,14); cin>>p.c_add; outtextxy(30,250,"DATE"); gotoxy(30,17); cin>>p.a_date; outtextxy(30,300,"MONTH"); gotoxy(30,20); cin>>p.a_month; outtextxy(30,350,"YEAR"); gotoxy(30,23); cin>>p.a_year; f1.write((char*)&p,sizeof(p)); f1.close(); } }//END OF WHILE getch(); }
  • 40. ~ 39 ~ //************************************************* // FUNCTION TO DELETE ALL CUSTOMER RECORDS //************************************************* void cust_adel() { remove("cust.txt"); f1.open("cust.txt",ios::out|ios::binary|ios::in); p.c_no=0; p.room_no=0; } //********************************************** // FUNCTION TO DELETE A CUSTOMER RECORD //********************************************** void cust_del() {
  • 41. ~ 40 ~ cleardevice(); f1.close(); setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(10,10,600,470); rectangle(10,10,600,470); setfillstyle(1,7); bar(17,17,593,463); rectangle(17,17,593,463); setcolor(9); setfillstyle(1,2); setcolor(4); int no,count=1; outtextxy(30,42,"ENTER CUSTOMER NO TO BE DELETED"); gotoxy(65,4); cin>>no; f1.open("cust.txt",ios::in|ios::binary);
  • 42. ~ 41 ~ fstream f2; while(f1.read((char*)&p,sizeof(p))) { if(p.c_no==no) { continue; } else { f2.open("dup.txt",ios::app|ios::binary); p.c_no=count; f2.write((char*)&p,sizeof(p)); count++; f2.close(); } } remove("cust.txt"); rename("dup.txt","cust.txt"); f1.close();
  • 43. ~ 42 ~ getch(); } }; //END OF CLASS CUSTOMER //***************************************** // THIS CLASS CONTAINS INFORMATION // ABOUT HOTEL //***************************************** class hotel { private: fstream f1; struct cust { int c_no; char c_name[20]; char c_add[20];
  • 44. ~ 43 ~ int a_date; int a_month; int a_year; int d_date; int d_month; int d_year; int room_no; char room_type[25]; }x; public: }; //END OF CLASS HOTEL //******************************************* // CLASS CONTROLLING ALL THE CLASSES //******************************************* class control
  • 45. ~ 44 ~ { private: int ch; public: hotel h; customer cust; food d; //*************************** // FUNCTION FOR PASSWORD //*************************** void pass() { char passw[20]; for(;;) { hot_name(); setcolor(4);
  • 46. ~ 45 ~ setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(50,60,600,450); rectangle(50,60,600,450); setfillstyle(1,7); bar(57,67,593,443); rectangle(57,67,593,443); setcolor(4); settextstyle(7,0,1); settextstyle(7,0,2) ; outtextxy(200,220,"ENTER PASSWORD :-"); gotoxy(55,15); cin>>passw; if (strcmp(passw,"a")==0) { cleardevice(); break; }
  • 47. ~ 46 ~ else { setcolor(4); settextstyle(7,0,1); for(int i=0;i&lt;10;i++) { setcolor(4); outtextxy(200,320,"ENTER CORRECT PASSWORD "); delay(100); setcolor(WHITE); outtextxy(200,320,"ENTER CORRECT PASSWORD "); delay(100); settextstyle(7,0,1); outtextxy(200,340,"PRESS ANY KEY TO CONTINUE"); } cleardevice(); }
  • 48. ~ 47 ~ } do { ch=mmenu(); choice(ch); }while(ch!=5);//END OF WHILE } //***************************** // FUNCTION FOR HOTEL NAME //************************ void hot_name() { settextstyle(4,0,5); setcolor(WHITE); outtextxy(200,3," TIME HOTEL"); line(200,50,440,50); }
  • 49. ~ 48 ~ //***************************** // FUNCTION FOR MAIN MENU //***************************** int mmenu() { cleardevice(); int c; setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(50,80,600,470); rectangle(50,80,600,470); setfillstyle(1,7); bar(57,87,593,463); rectangle(57,87,593,463); setcolor(9); setfillstyle(1,2);
  • 50. ~ 49 ~ bar(210,140,410,238); rectangle(210,140,410,158); rectangle(210,140,410,174); rectangle(210,140,410,190); rectangle(210,140,410,206); rectangle(210,140,410,222); rectangle(210,140,410,238); setcolor(WHITE); settextstyle(4,0,4); outtextxy(160,20,"HOTEL MANAGEMENT"); setcolor(14); line(163,60,515,60); setcolor(4); settextstyle(1,0,1); outtextxy(225,137," MAIN MENU"); outtextxy(210,154," 1. INFORMATION"); outtextxy(210,170," 2. CUSTOMER DETAIL"); outtextxy(210,186," 3. FOOD DETAIL "); outtextxy(210,202," 4. CUSTOMER BILL ");
  • 51. ~ 50 ~ outtextxy(210,218," 5. EXIT "); setcolor(4); settextstyle(7,0,2); outtextxy(210,300,"ENTER CHOICE :- "); fflush(stdin); gotoxy(53,20); cin>>c; return c; } //************************ // FUNCTION OF ENDING //************************ void bye() { cleardevice(); setcolor(12); settextstyle(1,0,5); setbkcolor(BLUE);
  • 52. ~ 51 ~ outtextxy(70,150,"THANKS FOR VISITING"); setcolor(10); settextstyle(1,0,8); outtextxy(100,250,"PROJECT"); settextstyle(1,0,3); outtextxy(150,450,"SHUTTING DOWN.. . ."); getch(); setcolor(12); settextstyle(1,0,5); outtextxy(70,150,"THANKS FOR VISITING"); setcolor(10); settextstyle(1,0,8); outtextxy(100,250,"PROJECT"); settextstyle(1,0,3); outtextxy(150,450,"SHUTTING DOWN.. . ."); for(int i=0;i&lt;10;i++) { sound(1000*i);
  • 53. ~ 52 ~ setbkcolor(i); nosound(); } } //*********************************** // FUNCTION OF CHOICE FOR INFORMATION //*********************************** void choice(int a) { switch(a) { case 1: { information(); break; } case 2:
  • 54. ~ 53 ~ { cust.cust_detail(); break; } case 3: { d.food_menu(); break; } case 4: { cust.cust_bill(); break; } } } //***************************
  • 55. ~ 54 ~ // FUNCTION FOR INFORMATION //*************************** void information() { cleardevice(); setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(17,50,605,470); rectangle(17,50,605,470); setfillstyle(1,7); bar(24,57,598,463); rectangle(24,57,598,463); gotoxy(6,4); setcolor(4); getch(); } };
  • 56. ~ 55 ~ //********************************************** // THIS IS MAIN FUNCTION CALLING VARIOUS // FUNCTIONS //********************************************** void main() { graf(); clrscr(); int gm=DETECT,gd; initgraph(&gm,&gd,"c:tc"); setbkcolor(BLUE); setcolor(RED); for(int i=0;i&lt;450;i++) {circle(305,250,i); delay(3); } setcolor(GREEN); settextstyle(1,0,11);
  • 57. ~ 56 ~ outtextxy(80,150,"VINEETA"); getch(); cleardevice(); setbkcolor(BLUE); setcolor(RED); for(i=0;i&lt;450;i++) {circle(305,250,i); delay(3); } setcolor(GREEN); settextstyle(1,0,9); outtextxy(100,0,"PRESENTS"); outtextxy(270,120,"A"); outtextxy(100,240,"PROJECT"); outtextxy(250,360,"ON"); getch(); cleardevice(); setbkcolor(4); setcolor(GREEN);
  • 58. ~ 57 ~ for(i=0;i&lt;9;i++) { settextstyle(1,0,i); outtextxy(40+i,140+i," TIME HOTEL "); sound(200*i); delay(600); nosound(); cleardevice(); } outtextxy(46,146," TIME HOTEL"); getch(); control c; // void acknow() //{ // cleardevice(); setbkcolor(BLACK); setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10);
  • 59. ~ 58 ~ bar(17,50,605,470); rectangle(17,50,605,470); setfillstyle(1,7); bar(24,57,598,463); rectangle(24,57,598,463); setcolor(5); settextstyle(1,0,5); outtextxy(85,5,"ACKNOWLEDGEMENT"); settextstyle(1,0,3); setcolor(BLACK); outtextxy(80,60,"I wish to express my deep and heartiest"); outtextxy(40,90,"thanks to my Computer Science Teacher Mr. Chaitanya Bahadur whose"); outtextxy(40,120,"valueable advice,guidence and helped me a "); outtextxy(40,150,"lot in doing this project from conception to"); outtextxy(40,180,"completion "); outtextxy(100,210,"I am also very thankful to my parents ");
  • 60. ~ 59 ~ outtextxy(40,240,"and friends who gave me moral encouragement "); outtextxy(40,270,"to make this project a success."); outtextxy(40,300,"SUBMITTED BY:- "); outtextxy(40,330,"Ayashkant Mishra "); outtextxy(40,360,"Class:- XII "); outtextxy(40,390,"MBS Public School "); getch(); cleardevice(); // FOR VERIFICATION setfillstyle(7,1); floodfill(0,0,4); setfillstyle(7,10); bar(17,50,605,470); rectangle(17,50,605,470); setfillstyle(1,7); bar(24,57,598,463); rectangle(24,57,598,463);
  • 61. ~ 60 ~ setcolor(5); settextstyle(1,0,5); outtextxy(120,5,"VERIFICATION"); settextstyle(1,0,3); setcolor(BLACK); outtextxy(40,60,"I Ayashkant Mishra submitting this project"); outtextxy(40,90,"as an evidence of my work in computer"); outtextxy(40,120,"lab. in guidence of Mr. CHAITANYA BAHADUR "); outtextxy(40,190,"SUBMITTED BY:- SUBMITTED TO:-"); outtextxy(40,220,"AYASHKANT MISHRA Mr.CHAIANYA BAHADUR"); outtextxy(40,250,"Class:-XII Section-:A"); outtextxy(40,280, "MBS Public School"); outtextxy(40,310,"Unit:-IX, Bhubaneswar "); getch();
  • 62. ~ 61 ~ cleardevice(); c.pass(); c.bye(); closegraph(); } //END OF MAIN FUNCTION </stdlib></iomanip></fstream></stdio></dos></graphics>< /string></conio></iostream >
  • 64. ~ 63 ~ THE END