`
TERM PAPER TOURISM MANAGEMENT (Submitted in the 2nd semester Of Master of Computer Applications) Session: 2011-12 Submitted By:Registration Number: 11114305 Roll Number: RD1114A51 Name: Anil Kumar Submitted To: Mr.Deepak mehta Date of Submission:
16 April 2012
ACKNOWLEDGEMENT: First of all I would like to thank the Lovely Professional University, Jalandhar and take the opportunity to do this project as a part of the M.C.A Many people have influenced the shape and content of this project, and many supp orted me through it. I express my sincere gratitude to “Mr. Deepak mehta” for assign ing me a term paper on “tourism management” which is an interesting and exhaustive t opic. He has been an inspiration and role model for this topic. His guidance and activ e support has made it possible to complete the assignment. I also would like to thank my Friends who have helped and encouraged me througho ut the working of the project. Last, but not the least I would like to thank the almighty for always helping me. Finally, I take this opportunity to acknowledge the services of the total team o f publisher and everyone who collaborated in producing this work. Anil Kumar
CONTENTS SR.NO. 1. 2. 3. 4. 5. 6. 7. 8.
TOPICS INTRODUCTION & OBJECTIVE TOOLS & PLATFORM is being USED LIMITATIONS MODULES & DESCRIPTIONS Requirement Analysis operation: codeing snapshort of output:
9. 10. 11.
Testing Future scope of the project references to be used
Project Description: 1. INTRODUCTION & OBJECTIVE Tourism management system is a retain business that deals servic es related to travel to tourist or customer. So to manage the details like touri st details, tour details, and other related details like hotels,tourist guide et c. For this purpose, need the software which could easily and conveniently maint ain these details .In tourism management system we have to introduce following i tems details. Companies:Hotels,transport,Entertainment Organization:Information Organization:Informati on service People:management front office Tourist:Needs,wants,behavior Economy:income,employment Technology:reservation system ,internet. Together all above manages in a consecut ively is called tourism management system. The project “TOURISM MANAGEMENT SYSTEM” includes some facilities of travel such as registration of new tourist, search regarding booking or reservat ion of a tour, display, modification, delete etc. The software used for arranging whole tourism management will include services, provides new and improved services, and identify travel relate d cost savings. Tourist is a temporary leisured person who voluntary visists a p lace away from home for the purpose of experiencing a change.we will have to ful fill his all need starting from ticket of desirable place with staying facility in hotels.tourism guide & travel agency. 2. TOOLS & PLATFORM IS BEING USED A. Software Turboc3 C++ Compiler Microsoft Windows 7 Ultimate B. Hardware PROCESSOR – Intel Core i3 RAM – 4GB 3. LIMITATIONS A. Software Microsoft Windows Environment Runs in Window Mode on 64 – bits Operating System Environment Character User Interface Mode It will not support Network System Unable to print report B. Hardware PROCESSOR - Pentium III or onward RAM – 128MB or more KEYBOARD – Any MONITOR – Any 4. MODULES & DESCRIPTION MODULES OF THE PROJECT: Customer/Tourist Details Tour Details Type of vehcle used Availability of Seats Details
Tourist places Reservation of tickets DESCRIPTIONS OF THE MODULES The application stores and manages customer details as name of customer, address of customer and his/her ID details. The tour details like source, destination, departure time, arriv al time, tour fee, bus/vehicle details, encharge name and contact number etc. is also managed by this project. 5.REQUIREMENT ANALYSIS This process is adopted when management of the system development, Personnel dec ide that the particular system needs improvement. The system development life cy cle is the set of activities, carried out by the analyst, designers and users to develop and implement a system. The systems that are present in the nature foll ow common life cycle pattern. For example consider the raining system. Initially the rain falls into the river, river flows into sea, the sea water evaporates t o form vapors, the vapors form clouds which again bring rain. Similarly consider a man made system initially a system is analyzed, designed and made operational by the efforts of system analysis. After successful operation or a number of us ers, the system becomes less and less effective by change in the environment. So these changes have to be incorporated in to the system by minor modifications. So the general activities from the life cycle of the system are given below: • Select ion and identification of the system to be studied • Preliminary study • Defining the system • Design and development of the system • Implementation of the system
6.OperationAs the name implies, a tourism management main function is to act as an agent, t hat is to say, selling travel products and services on behalf of a supplier. Con sequently, unlike other retail businesses, they do not keep a stock in hand. A p ackage holiday or a ticket is not purchased from a supplier unless a customer re quests that purchase. The holiday or ticket is supplied to them at a discount. T he profit is therefore the difference between the advertised price which the cus tomer pays and the discounted price at which it is supplied to the agent. This i s known as the commission. In Australia, all individuals or companies that sell tickets are required to be licensed as a tourism agent. 7.COODING: #include #include #include #include #include #include #include /********************************************** GLOABAL VARIABLE **********************************************/ int i=0; /********************************************** GLOBAL FUNTIONS **********************************************/ void startup(); int opening1();
void void void void
opening2(); maketrfile(); makehofile(); places();
/********************************************** CLASS TRAVELAGENCY CONSISTING OF FUNTIONS AND DATA MEMBERS RELATED TO HOTEL AND TRANSPORTATION RESERVATIONS. **********************************************/ class travelagency { private: char name[50],destination[30] name[50],destination[30],hotel[30],add[80],flag1 ,hotel[30],add[80],flag1,flag2,trans[30]; ,flag2,trans[30]; float price,price2; int not1,not2,nor,top,nod,noc,kor1,kor2,top2; not1,not2,nor,top,nod,noc,kor1,kor2,top2; //DATA MEMBERS IN PRIVATE AREA int fst1,fst2,tst1,tst2,nst1, fst1,fst2,tst1,tst2,nst1,nst2; nst2; int atr1,atr2,ttr1,ttr2,rtr1, atr1,atr2,ttr1,ttr2,rtr1,rtr2; rtr2; public: int toggle; void void void void void . void void void void void void void void SER. void void void void void
//DATA MEMBERS IN PUBLIC AREA
resho(); showhotel(); viewhorec(); showhotelrec(); delhotelrec();
//MEMBER FUNTIONS FOR HOTEL RESER
searchhotrec(); transferhoteldata(); edithoteldata(); transferhoteldata1(); restr(); showtransport(); viewtrrec(); showtransportrec();
//MEMBER FUNTIONS FOR TRANSPORT RE
deltransportrec(); searchtransportrec(); transfertransportdata(); edittransportdata(); transfertransportdata1(); transfertransportdata1() ;
void assignprice(); void nindia(int void sindia(int NATION void eindia(int void windia(int void cindia(int
ndes); sdes);
//FUNTION TO CALCULATE PRICE //FUNTION TO VIEW
DIFFERENT DESTI
wdes); edes); cdes);
}user,user1[100];
//GLOBAL CLASS OBJECTS
/*_____________________________________________________________________ /*____________________________________________ __________________________________ _________ _______________* ________ _______********* **************** **************** **************** **************** **************** **************** **************** ******** *******************/ /********************************************** CLASS TRAVELAGENCY FUNTIONS DEFINED OUTSIDE THE CLASS. **********************************************/ /*____________________________________________ /*____________________ _________________________________________________ __________________________________ _________ _______________* ________ _______********* **************** **************** **************** **************** **************** **************** **************** ******** *******************/ /******************************** HOTEL RESERVATIONS ********************************/
/********************************************** FUNTION USED TO RESERVE HOTEL. **********************************************/ void travelagency::resho() { clrscr(); flag1='N'; while(flag1!='Y') { clrscr(); gotoxy(20,5);cout<<"Please gotoxy(20,5);cout<<"Ple ase Enter Information For Hotel Reservation"; gotoxy(20,7);cout<<"Please gotoxy(20,7);cout<<"Ple ase enter the choice of your hotel......"; gotoxy(25,9);cout<<"1: 5 Star"; gotoxy(25,10);cout<<"2: 3 Star"; gotoxy(25,11);cout<<"3: Normal"<>top; clrscr(); assignprice(); clrscr(); gotoxy(15,2);cout<<"PLEASE gotoxy(15,2);cout<<"PLE ASE FILL IN THE DETAILS ..."; gotoxy(25,5);cout<<"HOTEL gotoxy(25,5);cout<<"HOT EL RESERVATION FORM"; gotoxy(5,8);cout<<"Name: gotoxy(5,8);cout<<"Name : "; gotoxy(5,10);cout<<"Address: gotoxy(5,10);cout<<"Add ress: "; gotoxy(5,12);cout<<"Destination: gotoxy(5,12);cout<<"Des tination: "; gotoxy(30,12);cout<<"Name gotoxy(30,12);cout<<"Na me of Hotel: "; gotoxy(5,14);cout<<"No. of days to stay: "; gotoxy(5,16);cout<<"Type gotoxy(5,16);cout<<"Typ e of Rooms to be Reserved(1/0)" ; gotoxy(10,18);cout<<"Deluxe: gotoxy(10,18);cout<<"De luxe: "; gotoxy(30,18);cout<<"Non gotoxy(30,18);cout<<"No n Deluxe: "; gotoxy(10,22);cout<<"Is the information correct(y/n)?? "; gotoxy(10,8);gets(name); gotoxy(13,10);gets(add); gotoxy(19,12);gets(destination); gotoxy(46,12);gets(hotel); gotoxy(27,14);cin>>nod; gotoxy(22,18);cin>>kor1; gotoxy(45,18);cin>>kor2; gotoxy(45,22);cin>>flag1;
}
flag1=toupper(flag1);
showhotel(); } /********************************************** FUNTION USED TO SHOW HOTEL RESERVATIONS. **********************************************/ void travelagency::showhotel() { int a,b; if(top==1) price=(fst1*kor1*nod)+(fst2*kor2*nod); else if(top==2) price=(tst1*kor1*nod)+(tst2*kor2*nod); else if(top==3) price=(nst1*kor1*nod)+(nst2*kor2*nod); if(toggle==1) { clrscr(); textcolor(WHITE+BLINK); textbackground(BLUE); for(int h=25;h<50;h++) { gotoxy(20,8);cout<<"Please gotoxy(20,8);cout<<"Pleas e wait while we make the Reservation"; gotoxy(h,10);cout<<"Û"; delay(250); } toggle=0; } clrscr(); gotoxy(25,5);cout<<"Hotel gotoxy(25,5);cout<<"Hot el Reservation "; gotoxy(24,6);cout<<"-----------------------"; gotoxy(15,8);cout<<"Name:"<
**********************************************/ void travelagency::viewhorec() { int option; while(option!=5) { clrscr(); gotoxy(24,5);cout<<"HOTEL gotoxy(24,5);cout<<"HOT EL RESERVATION INFORMATION"; gotoxy(25,10);cout<<"choose....."; gotoxy(25,12);cout<<"1: View hotel reservation records"; gotoxy(25,14);cout<<"2: Delete a particular record"; gotoxy(25,16);cout<<"3: Search for a record"; gotoxy(25,18);cout<<"4: Edit a record "; gotoxy(25,20);cout<<"5: Exit..... "; cin>>option; switch(option) { case 1:showhotelrec(); break; case 2:delhotelrec(); break; case 3:searchhotrec(); break; case 4:edithoteldata(); break; } } } /********************************************** FUNTION USED TO SHOW ALL HOTEL RESERVATIONS. **********************************************/ void travelagency::showhotelre travelagency::showhotelrec() c() { fstream fil1; fil1.open("hotel.dat",ios::binary|ios::in); while(fil1.read((char*)&user,sizeof (user))) while(fil1.read((char*)&user,sizeof user.showhotel(); fil1.close(); } /********************************************** FUNTION USED TO DELETE A HOTEL RECORD. **********************************************/ void travelagency::delhotelrec travelagency::delhotelrec() () { clrscr(); char dname[20]; gotoxy(20,5);cout<<"Enter name to delete record for..."; gotoxy(30,7);gets(dname);
strupr(dname); fstream fil2,fil3; int del=0; fil2.open("hotel.dat",ios::binary | ios::in); fil2.open("hotel.dat",ios::binary fil3.open("temp.dat",ios::binary fil3.open("temp.dat",io s::binary | ios::out); while(fil2.read ((char*)&user,sizeof (user))) { if ((strcmp(name,dname))!=0 ((strcmp(name,dname))!=0) ) fil3.write((char*)&user,sizeof fil3.write((char*)&user ,sizeof (user)); else del++; } if(del!=0) cout<
transferhoteldata();
/********************************************** FUNTION USED TO TRANSFER UNDELETED HOTEL RECORDS. **********************************************/ void travelagency::transferhot travelagency::transferhoteldata() eldata() { fstream oldfile,newfile; oldfile.open("temp.dat",ios::binary | ios::in); oldfile.open("temp.dat",ios::binary newfile.open("hotel.dat",ios::binary newfile.open("hotel.da t",ios::binary | ios::out); while(oldfile.read((char*)&user,sizeof(user))) newfile.write((char*)&user,sizeof newfile.write((char*)&us er,sizeof (user)); oldfile.close(); newfile.close(); } /********************************************** FUNTION USED TO SEARCH FOR A HOTEL RECORD. **********************************************/ void travelagency::searchhotre travelagency::searchhotrec() c() { clrscr(); char sname[20]; gotoxy(20,5);cout<<"Enter gotoxy(20,5);cout<<"Ente r Name to search for.."; gotoxy(25,7);gets(sname); strupr(sname); fstream fil4;
fil4.open("hotel.dat",ios::binary fil4.open("hotel.dat",i os::binary | ios::in); int srch=0; while(fil4.read((char*)&user,sizeof while(fil4.read((char*)&u ser,sizeof (user))) { if(strcmp(name,sname)==0) { srch++; user.showhotel(); } } if(srch==0) cout<<" No Record Exists"; fil4.close(); getch(); } /********************************************** FUNTION USED TO EDIT EDIT A HOTEL RECORD. **********************************************/ void travelagency::edithotelda travelagency::edithoteldata() ta() { clrscr(); char ename[30];int ede=0; gotoxy(20,5);cout<<"Enter gotoxy(20,5);cout<<"En ter Name to Edit Record for..."; gotoxy(25,7);gets(ename); strupr(ename); fstream fil5,fil6; fil5.open("hotel.dat",ios::binary fil5.open("hotel.dat", ios::binary | ios::in) ; fil6.open("temp1.dat",ios::binary fil6.open("temp1.dat", ios::binary | ios::out ) ; while(fil5.read((char*)&user,sizeof(user))) { if (strcmp (ename,name)==0) { resho(); ede++; } fil6.write((char*)&user,sizeof fil6.write((char*)&user ,sizeof (user)); } if(ede==0) { gotoxy(25,17);cout<<"RECORD gotoxy(25,17);cout<<"REC ORD DOESNT EXIST!!!!"; } getch(); fil5.close(); fil6.close(); transferhoteldata1(); //TO TRANSFER EDITED HOTEL REC ORD } /********************************************** FUNTION USED TO TRANSFER EDITED HOTEL RECORDS. **********************************************/ void travelagency::transferhot travelagency::transferhoteldata1() eldata1() {
fstream oldfile2,newfile2; oldfile2.open("temp1.dat",ios::binary | ios::in); oldfile2.open("temp1.dat",ios::binary newfile2.open("hotel.dat",ios::binary newfile2.open("hotel.d at",ios::binary | ios::out); while(oldfile2.read((char*)&user,sizeof(user))) newfile2.write((char*)&user,sizeof newfile2.write((char*)&u ser,sizeof (user)); oldfile2.close(); newfile2.close(); } /*____________________________________________ /*____________________ _________________________________________________ __________________________________ _________ _______________* ________ _______********* **************** **************** **************** **************** **************** **************** **************** ******** *******************/ /******************************** TRANSPORTATION RESERVATIONS ********************************/
/********************************************** FUNTION USED TO RESERVE TRANSPORTATION. **********************************************/ void travelagency::restr() { clrscr(); flag2='N'; while(flag2!='Y') { clrscr(); gotoxy(20,5);cout<<"Please gotoxy(20,5);cout<<"Pleas e Enter Information For Transport Reservation"; gotoxy(20,7);cout<<"Please gotoxy(20,7);cout<<"Pleas e enter the choice of your mode of transportaion...... "; gotoxy(25,9);cout<<"1: by Air"; gotoxy(25,10);cout<<"2: by Train"; gotoxy(25,11);cout<<"3: by Road"<>top2; clrscr(); assignprice(); clrscr(); gotoxy(15,2);cout<<"PLEASE gotoxy(15,2);cout<<"PLE ASE FILL IN THE DETAILS ..."; gotoxy(25,5);cout<<"TRANSPORT gotoxy(25,5);cout<<"TRA NSPORT RESERVATION FORM"; gotoxy(5,8);cout<<"Name: gotoxy(5,8);cout<<"Name : "; gotoxy(5,10);cout<<"Address: gotoxy(5,10);cout<<"Add ress: "; gotoxy(5,12);cout<<"Destination: gotoxy(5,12);cout<<"Des tination: "; gotoxy(30,12);cout<<"Mode gotoxy(30,12);cout<<"Mo de of Transport: "; gotoxy(5,14);cout<<"Type gotoxy(5,14);cout<<"Typ e of Tickets to be Reserved(1/0)" ; gotoxy(10,16);cout<<"Executive: gotoxy(10,16);cout<<"Ex ecutive: "; gotoxy(30,16);cout<<"Economy: gotoxy(30,16);cout<<"Ec onomy: "; gotoxy(10,22);cout<<"Is the information correct(y/n)?? "; gotoxy(10,8);gets(name); gotoxy(13,10);gets(add); gotoxy(19,12);gets(destination); gotoxy(50,12);gets(trans); gotoxy(22,16);cin>>not1; gotoxy(40,16);cin>>not2;
gotoxy(45,22);cin>>flag2; flag2=toupper(flag2); } showtransport(); } /********************************************** FUNTION USED TO SHOW TRANSPORT RESERVATION. **********************************************/ void travelagency::showtranspo travelagency::showtransport() rt() { if(top2==1) price2=(atr1*not1)+(atr2*not2); else if(top2==2) price2=(ttr1*not1)+(ttr2*not2); else if(top2==3) price2=(rtr1*not1)+(rtr2*not2); if(toggle==1) { clrscr(); for(int h=25;h<50;h++) { gotoxy(20,8);cout<<"Please gotoxy(20,8);cout<<"Pleas e wait while we make the Reservation"; gotoxy(h,10);cout<<"Û"; delay(250); } toggle=0; } clrscr(); gotoxy(25,5);cout<<"Transport gotoxy(25,5);cout<<"Trans port Reservation "; gotoxy(24,6);cout<<"-----------------------"; gotoxy(15,8);cout<<"Name:"<
gotoxy(25,14);cout<<"2: Delete a particular record"; gotoxy(25,16);cout<<"3: Search for a record"; gotoxy(25,18);cout<<"4: Edit a record "; gotoxy(25,20);cout<<"5: Exit... "; cin>>option; switch(option) { case 1:showtransportrec(); break; case 2:deltransportrec(); break; case 3:searchtransportrec() 3:searchtransportrec(); ; break; case 4:edittransportdata(); break; } } } /********************************************** FUNTION USED TO SHOW ALL TRANSPORT RECORDS. **********************************************/ void travelagency::showtranspo travelagency::showtransportrec() rtrec() { fstream file1; file1.open("transport.dat",ios::binary|ios::in); while(file1.read((char*)&user,sizeof while(file1.read((char*)& user,sizeof (user))) user.showtransport(); file1.close(); } /********************************************** FUNTION USED TO DELETE DELETE A TRANSPORT RECORDS. **********************************************/ void travelagency::deltranspor travelagency::deltransportrec() trec() { clrscr(); char delname[20]; gotoxy(20,5);cout<<"Enter gotoxy(20,5);cout<<"Ente r name to delete record for..."; gotoxy(30,7);gets(delname); strupr(delname); fstream file2,file3; int dele=0; file2.open("transport.dat",ios::binary file2.open("transport. dat",ios::binary | ios::in); file3.open("temp3.dat",ios::binary file3.open("temp3.dat" ,ios::binary | ios::out ); while(file2.read ((char*)&user,sizeof (user))) { if ((strcmp(name,delname))! ((strcmp(name,delname))!=0) =0) file3.write((char*)&user,sizeof file3.write((char*)&use r,sizeof (user)); else dele++; } if(dele!=0) cout<
}
file3.close(); transfertransportdata();
/********************************************** FUNTION USED TO TRANSFER UNDELETED TRANSPORT RECORDS. **********************************************/ void travelagency::transfertra travelagency::transfertransportdata() nsportdata() { fstream oldfile1,newfile1; oldfile1.open("temp3.dat",ios::binary oldfile1.open("temp3.d at",ios::binary | ios::in); newfile1.open("transport.dat",ios::binary newfile1.open("transpo rt.dat",ios::binary | ios::out); while(oldfile1.read((char*)&user,sizeof(user))) newfile1.write((char*)&user,sizeof newfile1.write((char*)&us er,sizeof (user)); oldfile1.close(); newfile1.close(); } /********************************************** FUNTION USED TO SEARCH FOR A TRANSPORT RECORDS. **********************************************/ void travelagency::searchtrans travelagency::searchtransportrec() portrec() { clrscr(); char sename[20]; gotoxy(20,5);cout<<"Enter Name to search for.."; gotoxy(25,7);gets(sename); strupr(sename); fstream file4; file4.open("transport.dat",ios::binary file4.open("transport. dat",ios::binary | ios::in); int serch=0; while(file4.read((char*)&user,sizeof while(file4.read((char* )&user,sizeof (user))) { if(strcmp(name,sename)==0) { serch++; user.showtransport(); } } if(serch==0) cout<<" No Record Exists"; file4.close(); getch(); } /********************************************** FUNTION USED TO EDIT TRANSPORT RECORD. **********************************************/ void travelagency::edittranspo travelagency::edittransportdata() rtdata() { clrscr(); char edname[30]; int ede1=0; gotoxy(20,5);cout<<"Enter gotoxy(20,5);cout<<"Ente r Name to Edit Record for..."; gotoxy(25,7);gets(edname); strupr(edname); fstream file5,file6;
file5.open("transport.dat",ios::binary | ios::in) ; file5.open("transport.dat",ios::binary file6.open("temp2.dat",ios::binary file6.open("temp2.dat",i os::binary | ios::out ) ; while(file5.read((char*)&user,sizeof(user))) { if (strcmp (edname,name)==0) { restr(); ede1++; } file6.write((char*)&user,sizeof file6.write((char*)&use r,sizeof (user)); } if(ede1==0) { gotoxy(25,17);cout<<"RECORD gotoxy(25,17);cout<<"R ECORD DOESNT EXIST!!!!"; } getch(); file5.close(); file6.close(); transfertransportdata1(); transfertransportdata1(); ECORD }
//TO TRANSFER EDITED TRANSPORT R
/********************************************** FUNTION USED TO TRASFER EDITED TRANSPORT RECORDS. **********************************************/ void travelagency::transfertra travelagency::transfertransportdata1() nsportdata1() { fstream oldfile3,newfile3; oldfile3.open("temp2.dat",ios::binary oldfile3.open("temp2.d at",ios::binary | ios::in); newfile3.open("transport.dat",ios::binary newfile3.open("transpo rt.dat",ios::binary | ios::out); while(oldfile3.read((char*)&user,sizeof(user))) newfile3.write((char*)&user,sizeof newfile3.write((char*)&u ser,sizeof (user)); oldfile3.close(); newfile3.close(); } /*_____________________________________________________________________ /*____________________________________________ __________________________________ _________ _______________* ________ _______********* **************** **************** **************** **************** **************** **************** **************** ******** *******************/ /********************************************** MAIN FUNTION USED TO CALL OTHER FUNTIONS **********************************************/ /*____________________________________________ /*____________________ _________________________________________________ __________________________________ _________ _______________* ________ _______********* **************** **************** **************** **************** **************** **************** **************** ******** *******************/ void main() { clrscr(); cout.setf(ios::fixed,ios::floatfield); cout.setf(ios::showpoint); startup(); //FUNTION TO DISPLAY INTRODUCTION SCREEN int opt;
while(opt!=5) { opt=opening1(); //FUNTION CALL TO DISPLAY MENU switch(opt) { case 1:places(); //FUNTION CALL TO VIEW PLACES break; case 2: //FUNTION CALL TO RESERVE TRANSPORT maketrfile();i++; break; case 3: //FUNTION CALL TO RESERVE HOTEL makehofile();i++; break; case 4:clrscr(); int search1; gotoxy(25,15);cout<<"Enter gotoxy(25,15);cout<<"E nter 1 or 2"; gotoxy(25,17);cout<<"1: gotoxy(25,17);cout<<"1 : Hotel Reservation Records"; gotoxy(25,19);cout<<"2: gotoxy(25,19);cout<<"2 : Transport Reservation Records"; gotoxy(25,21);cout<<"??.....";cin>>search1;
} } }
switch(search1) { case 1:user.viewhorec(); break; case 2:user.viewtrrec(); break; } break;
//FUNTION CALL FOR HOTEL RECORDS //FUNTION CALL FOR TRANSPORT RECORDS
/********************************************** FUNTION USED TO MAKE TRANSPORT RECORD. **********************************************/ void maketrfile() { fstream fil; fil.open("transport.dat",ios::binary fil.open("transport.dat ",ios::binary | ios::out |ios::app); user1[i].toggle=1; user1[i].restr(); fil.write((char*)&user1[i],sizeof fil.write((char*)&user1 [i],sizeof (user1[i])); fil.close(); } /********************************************** FUNTION USED TO MAKE HOTEL RECORD. **********************************************/ void makehofile() { fstream fil; fil.open("hotel.dat",ios::binary fil.open("hotel.dat",io s::binary | ios::out |ios::app ); user1[i].toggle=1; user1[i].resho(); fil.write((char*)&user1[i],sizeof fil.write((char*)&user1 [i],sizeof (user1[i])); fil.close(); }
/********************************************** FUNTION USED TO DISPLAY INTRODUCTION SCREEN **********************************************/ void startup() { int a; for(a=50;a>30;a--) { clrscr(); textcolor(GREEN); textbackground(BLUE); gotoxy(25,10);cout<<"Welcome gotoxy(25,10);cout<<"Wel come to the Tourism management"; gotoxy(a,12);cout<<" ANIL KUMAR Prsents .... "; delay(50); } for(a=42;a<52;a++) { gotoxy(27,18);cout<<"Please gotoxy(27,18);cout<<"Ple ase Wait"; gotoxy(a,18);cout<<"."; delay(400); } clrscr(); textcolor(GREEN ); for(int j=0;j<10;j++) { clrscr(); delay(80); } gotoxy(25,25); cout<<"press any key to continue..."; getch(); } /********************************************** FUNTION USED TO DISPLAY MENU. **********************************************/ int opening1() { int pass; clrscr(); for(int f=0;f<6;f++) { clrscr(); textcolor(RED); textbackground(YELLOW); gotoxy(10,f);cout<<"WELLCOME!!!!!!......" "What would you like us to do for you"; gotoxy(15,f+3);cout<<"1: View Tourist Places"; gotoxy(15,f+5);cout<<"2: Reserve Transportation"; gotoxy(15,f+7);cout<<"3: Reserve Accomodation"; gotoxy(15,f+9);cout<<"4: View Existing Bookings"; gotoxy(15,f+11);cout<<"5: gotoxy(15,f+11);cout<<"5 : Exit"; gotoxy(13,f+14);cout<<"Enter gotoxy(13,f+14);cout<<"E nter (1,2,3,4 or 5)....? "; delay(100); } for(f=1;f<13;f++) {
gotoxy(3,f);cout<<"Î";gotoxy(80,f);cout<<"Î"; gotoxy(3,25-f);cout<<"Î";gotoxy(80,25-f);cout<<"Î"; delay(50); } gotoxy(40,19);cin>>pass; return(pass); } void opening2() //function to display menu with places { int opt2; gotoxy(10,21);cout<<"1: Reserve Transportation"; gotoxy(10,22);cout<<"2: Reserve Accomodation"; gotoxy(10,23);cout<<"3: Reserve Transportation and Accomodation"; gotoxy(10,24);cout<<"4: Exit ???.... ";cin>>opt2; if (opt2!=4) { switch(opt2) { case 1:maketrfile();i++; break; case 2:makehofile();i++; break; case 3:maketrfile();i++; makehofile();i++; break; } } } /********************************************** FUNTION USED TO DISPLAY CHOICE OF DESTINATION. **********************************************/ void places() { int des; for(int j=0;j<20;j++) { clrscr(); gotoxy(j+3,5);cout<<"Choose gotoxy(j+3,5);cout<<"Ch oose Destination"; gotoxy(j,10);cout<<"ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ gotoxy(j,10);cout<<"ÉÍÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» ÍÍÍÍÍ» gotoxy(j,11);cout<<" 1.NORTH INDIA gotoxy(j,12);cout<<" 2.SOUTH INDIA gotoxy(j,13);cout<<" 3.EAST INDIA gotoxy(j,14);cout<<" 4.WEST INDIA gotoxy(j,15);cout<<" 5.CENTRAL INDIA gotoxy(j,16);cout<<" 6.EXIT gotoxy(j,17);cout<<" ??ENTER CHOICE>>.....? gotoxy(j,18);cout<<"ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ gotoxy(j,18);cout<<"ÈÍÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÐ ÍÍÍÍÍÐ delay(50); } gotoxy(45,17);cin>>des; int des1; if (des!=6) { switch(des) { case 1: for(j=0;j<20;j++) {
"<
clrscr(); gotoxy(j+3,5);cout<<"Where gotoxy(j+3,5);cout<<"Whe re do you want go......"; gotoxy(j,10);cout<<"ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ gotoxy(j,10);cout<<"ÉÍÍÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» ÍÍÍÍ» gotoxy(j,11);cout<<" 1.JAMMU & KASHMIR gotoxy(j,12);cout<<" 2.HARYANA gotoxy(j,13);cout<<" 3.PUNJAB gotoxy(j,14);cout<<" 4.HIMACHAL PRADESH gotoxy(j,15);cout<<" 5.EXIT gotoxy(j,16);cout<<" gotoxy(j,17);cout<<" ??ENTER CHOICE>>...... gotoxy(j,18);cout<<"ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ gotoxy(j,18);cout<<"ÈÍÍÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÐ ÍÍÍÍÐ delay(50); } gotoxy(45,17);cin>>des1; if(des1!=5) user.nindia(des1); break; case 2:
"<
for(j=0;j<20;j++) { clrscr(); gotoxy(j+3,5);cout<<"Where gotoxy(j+3,5);cout<<"Whe re do you want go......"; gotoxy(j,10);cout<<"ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ gotoxy(j,10);cout<<"ÉÍÍÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» ÍÍÍÍ» "<>...... "<>des1; if(des1!=6) user.sindia(des1); break;
case 3: for(j=0;j<20;j++) { clrscr(); gotoxy(j+3,5);cout<<"Where gotoxy(j+3,5);cout<<"W here do you want go......"; gotoxy(j,10);cout<<"ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ gotoxy(j,10);cout<<"ÉÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» ÍÍÍÍÍÍ» "<>...... "<>des1; if(des1!=6) user.eindia(des1); break; case 4: for(j=0;j<20;j++) {
clrscr(); gotoxy(j+3,5);cout<<"Where gotoxy(j+3,5);cout<<"W here do you want go......"; gotoxy(j,10);cout<<"ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ gotoxy(j,10);cout<<"ÉÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» ÍÍÍÍÍÍ» "<>...... "<>des1; if(des1!=3) user.windia(des1); break; case 5:
for(j=0;j<20;j++) { clrscr(); gotoxy(j+3,5);cout<<"Where gotoxy(j+3,5);cout<<"W here do you want go......"; gotoxy(j,10);cout<<"ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ gotoxy(j,10);cout<<"ÉÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» ÍÍÍÍÍÍ» "<>...... "<>des1; if(des1!=3) user.cindia(des1); break;
} } } /********************************************** FUNTION USED TO DISPLAY NORTH-INDIA INFORMATION. **********************************************/ void travelagency::nindia(int ndes) { switch(ndes) { case 1:clrscr(); textcolor(RED); textbackground(YELLOW); gotoxy(25,1);cout<<"Jammu gotoxy(25,1);cout<<"Ja mmu and Kashmir "; gotoxy(24,2);cout<<"------------------"; gotoxy(20,3);cout<<"Places gotoxy(20,3);cout<<"Pl aces To Visit:: -Kashmir-Jammu- "<<"\n"; gotoxy(5,4);cout<<"Transportation gotoxy(5,4);cout<<"Tra nsportation Available::(from delhi)"<<"\n"; cout<<" MODE Place NAME Price:Executive Economy Timings "<<"\n"; cout<<" BY Air kash. 041 I.A. 12000Rs. 9000Rs. 13:50(d)-15:30
(a)"<<"\n"; cout<<" BY Air jam. 042 I.A. 12000Rs. 9000Rs. 8:00(d)- 9:40 (a)" (a)"<< <<"\ "\n" n"; ; cout cout<< <<" " BY Trai Train n kash kash. . Kash Kashmi mir r Expr Expres ess s 2500 2500Rs Rs. . 2000 2000Rs Rs. . 13:00(d)-18:00(a)"<
cout<<" 3 chan king 3000Rs. 1500Rs. "<
l;
textbackground(BLUE); gotoxy(25,1);cout<<" HIMACHAL PRADESH"; gotoxy(24,2);cout<<"------------------"; gotoxy(20,3);cout<<"Places gotoxy(20,3);cout<<"Pla ces To Visit::
-Shimla-
-Manali- "<
gotoxy(5,4);cout<<"Transportation Available::(from delhi)"<
cout<<" MODE Place Place NAME Price:Executive Economy Timing s "<
deluxe
"<
case 3:clrscr(); textcolor(RED); textbackground(YELLOW); gotoxy(25,1);cout<<" ANDHRA PRADESH"; gotoxy(24,2);cout<<"------------------"; gotoxy(20,3);cout<<"Places gotoxy(20,3);cout<<"Pla ces To Visit:: -Hyderabad-Nagpur- "<< endl; gotoxy(5,4);cout<<"Transportation gotoxy(5,4);cout<<"Tran sportation Available::(from delhi)"<
fst1=5000;fst2=3000;tst1=3000;tst2=1500;nst1=1000;nst2=500; opening2(); break; case 4:clrscr(); textcolor(RED); textbackground(GREEN); gotoxy(25,1);cout<<" MAHARASTRA"; gotoxy(24,2);cout<<"------------------"; gotoxy(20,3);cout<<"Places gotoxy(20,3);cout<<"Pla ces To Visit:: -Mumbai-Pune- "<
)- 9:40(a)"<
gotoxy(5,12);cout<<"Accomodation Available::"<
t breakfast) "; atr1=11000;atr2=9000;ttr1=4500;ttr2=2000;rtr1=800;rtr2=600; fst1=5000;fst2=3000;tst1=3000;tst2=1500;nst1=1000;nst2=500; opening2(); break; case 3:clrscr(); textcolor(RED); textbackground(YELLOW); gotoxy(25,1);cout<<" BIHAR"; gotoxy(24,2);cout<<"------------------"; gotoxy(20,3);cout<<"Places gotoxy(20,3);cout<<"Pla ces To Visit:: -Patna-Gaya- "<
)-13:30(a)"<
cout<<" 5 Kan Plaza 4000Rs. 300 0Rs. "<
cout<<" normal Ahm best 1000Rs. 500 Rs. "<
**********************************************/ void travelagency::cindia(int cdes) { switch(cdes) { case 1:clrscr(); textcolor(RED); textbackground(YELLOW); gotoxy(25,1);cout<<" ORISSA "; gotoxy(24,2);cout<<"------------------"; gotoxy(20,3);cout<<"Places gotoxy(20,3);cout<<"Pla ces To Visit:: -Bhubaneshwar-Cuttack"<
d)-13:30(a)"<
2:Chandigarh or G 4: Shimla or Mana 6: Chennai or Bang 8: Mumbai or Pune 10: Guwahati"; 12: Patna or Gaya 14: Lucknow or Ka 16: Jaipur or Jod
hpur "; gotoxy(5,21);cout<<"17:Bhubneshwar gotoxy(5,21);cout<<"17:B hubneshwar or Cuttack 18: Bhopal or Gwa lior "; gotoxy(5,23);cout<<"Enter gotoxy(5,23);cout<<"Ente r (1-18) to Reserve ..."; gotoxy(45,23);cin>>toasspri; switch(toasspri) { case 1:atr1=12000;atr2=9000;t 1:atr1=12000;atr2=9000;ttr1=2500;ttr2=2000;rtr1= tr1=2500;ttr2=2000;rtr1=700;rtr2=500; 700;rtr2=500; fst1=5000;fst2=3000;tst1=3000;tst2=1500;nst1=1000;nst2=500; break; case 2:atr1=10000;atr2=8000;t 2:atr1=10000;atr2=8000;ttr1=1500;ttr2=1000;rtr1= tr1=1500;ttr2=1000;rtr1=300;rtr2=200; 300;rtr2=200; fst1=5000;fst2=3000;tst1=3000;tst2=1500;nst1=1000;nst2=500; break; case 3:atr1=8000;atr2=6000;tt 3:atr1=8000;atr2=6000;ttr1=1200;ttr2=1000;rtr1=3 r1=1200;ttr2=1000;rtr1=300;rtr2=200; 00;rtr2=200; fst1=5000;fst2=3000;tst1=3000;tst2=1500;nst1=1000;nst2=500; break; case 4:atr1=10000;atr2=8000;t 4:atr1=10000;atr2=8000;ttr1=2000;ttr2=1000;rtr1= tr1=2000;ttr2=1000;rtr1=800;rtr2=500; 800;rtr2=500; fst1=4000;fst2=3000;tst1=3000;tst2=1500;nst1=800;nst2=500; break; case 5:atr1=15000;atr2=12000; 5:atr1=15000;atr2=12000;ttr1=3500;ttr2=2000;rtr1 ttr1=3500;ttr2=2000;rtr1=1200;rtr2=700; =1200;rtr2=700; fst1=5000;fst2=3000;tst1=3000;tst2=1500;nst1=1000;nst2=500; break; case 6:atr1=9000;atr2=7000;tt 6:atr1=9000;atr2=7000;ttr1=1200;ttr2=1000;rtr1=7 r1=1200;ttr2=1000;rtr1=700;rtr2=500; 00;rtr2=500; fst1=5000;fst2=3000;tst1=3000;tst2=1500;nst1=1000;nst2=500; break; case 7:atr1=9000;atr2=7000;tt 7:atr1=9000;atr2=7000;ttr1=1200;ttr2=1000;rtr1=7 r1=1200;ttr2=1000;rtr1=700;rtr2=500; 00;rtr2=500; fst1=5000;fst2=3000;tst1=3000;tst2=1500;nst1=1000;nst2=500; break; case 8:atr1=11000;atr2=9000;t 8:atr1=11000;atr2=9000;ttr1=2000;ttr2=1000;rtr1= tr1=2000;ttr2=1000;rtr1=800;rtr2=500; 800;rtr2=500; fst1=5000;fst2=4000;tst1=3000;tst2=1500;nst1=800;nst2=500; break; case 9:atr1=15000;atr2=12000; 9:atr1=15000;atr2=12000;ttr1=2000;ttr2=1000;rtr1 ttr1=2000;ttr2=1000;rtr1=0;rtr2=0; =0;rtr2=0; fst1=4000;fst2=3000;tst1=3000;tst2=1500;nst1=800;nst2=500; break; case 10:atr1=12000;atr2=9000; 10:atr1=12000;atr2=9000;ttr1=2500;ttr2=2000;rtr1 ttr1=2500;ttr2=2000;rtr1=700;rtr2=500; =700;rtr2=500; fst1=5000;fst2=3000;tst1=3000;tst2=1500;nst1=1000;nst2=500; break; case 11:atr1=11000;atr2=9000; 11:atr1=11000;atr2=9000;ttr1=4500;ttr2=2000;rtr1 ttr1=4500;ttr2=2000;rtr1=800;rtr2=600; =800;rtr2=600; fst1=5000;fst2=3000;tst1=3000;tst2=1500;nst1=1000;nst2=500; break; case 12:atr1=8000;atr2=6000;t 12:atr1=8000;atr2=6000;ttr1=1200;ttr2=1000;rtr1= tr1=1200;ttr2=1000;rtr1=300;rtr2=200; 300;rtr2=200; fst1=5000;fst2=3000;tst1=3000;tst2=1500;nst1=1000;nst2=500; break; case 13:atr1=12000;atr2=10000 13:atr1=12000;atr2=10000;ttr1=2000;ttr2=1000;rtr ;ttr1=2000;ttr2=1000;rtr1=800;rtr2=500; 1=800;rtr2=500; fst1=4000;fst2=3000;tst1=3000;tst2=1500;nst1=800;nst2=500; break; case 14:atr1=10000;atr2=8000; 14:atr1=10000;atr2=8000;ttr1=2000;ttr2=1000;rtr1 ttr1=2000;ttr2=1000;rtr1=800;rtr2=500; =800;rtr2=500; fst1=4000;fst2=3000;tst1=3000;tst2=1500;nst1=800;nst2=500; break; case 15:atr1=12000;atr2=9000; 15:atr1=12000;atr2=9000;ttr1=2500;ttr2=2000;rtr1 ttr1=2500;ttr2=2000;rtr1=700;rtr2=500; =700;rtr2=500; fst1=4000;fst2=2000;tst1=2000;tst2=1500;nst1=1000;nst2=500; break; case 16:atr1=10000;atr2=8000; 16:atr1=10000;atr2=8000;ttr1=1500;ttr2=1000;rtr1 ttr1=1500;ttr2=1000;rtr1=300;rtr2=200; =300;rtr2=200; fst1=5000;fst2=3000;tst1=3000;tst2=1500;nst1=1000;nst2=500; break; case 17:atr1=13000;atr2=10000 17:atr1=13000;atr2=10000;ttr1=2500;ttr2=2000;rtr ;ttr1=2500;ttr2=2000;rtr1=700;rtr2=500; 1=700;rtr2=500; fst1=5000;fst2=3000;tst1=3000;tst2=1500;nst1=1000;nst2=500; break; case 18:atr1=10000;atr2=8000; 18:atr1=10000;atr2=8000;ttr1=1500;ttr2=1000;rtr1 ttr1=1500;ttr2=1000;rtr1=300;rtr2=200; =300;rtr2=200; fst1=5000;fst2=3000;tst1=3000;tst2=1500;nst1=1000;nst2=500;
break; } } 8.Snapshort of outputs:-
9.TESTING Testing is the major control measure used during software development. Its basic function is to detect errors in the software. During requirement analysis and d esign, the output is a document that is usually textual and no executable. After the coding phase, computer programs are available that can be executed for test ing purpose. This implies that testing not only, has to uncover errors introduce d during coding, but also errors introduced during previous phase. Thus the goal of testing is to uncover the requirements, design and coding errors in the prog rams. So after testing the outputs of my project are as follows: 10. FUTURE SCOPE OF THE PROJECT Our project will be able to implement in future after making some changes and mo difications as we make our project at a very low level. level. This project is seems t o be very useful in future for the management of tourism.
11.References to be Used: Books (Author, title, publisher chapter / page number) 1. Objec bject t orie orient nte ed prog progra ramm mmin ing g with with c++,E ++,E Bal Balagur agurus usam amy_ y_ 2. Obje Object ct ori orien ente ted d prog progra ramm mmin ing g in tur turbo bo c++ c++,R ,Rob ober ert t Lafo Lafore re__ ____ ____ ____ ____ ____ ____ ____ ____ __ ________________ ________ ________________ _________ _ Web references: 2. ____ _____w _www ww.s .scr crib ibd. d.co com_ m___ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ___ _ 3 _www. www.kr kriy iyag agra ram m.com .com__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ___ _ 4. _www _www.c .cod odes eswa wat. t.co com_ m___ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ 5. _htt _http: p:// //ww www. w.cp cplu lusp splu lus. s.co com/ m/do doc/ c/tu tuto tori rial al ____ ______ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ THANKU - :THE END:-