C++ Project on Railway Reservation System

April 2, 2018 | Author: Raj Hi Razz | Category: Areas Of Computer Science, Information Technology Management, Computing, Technology, Software


Comments



Description

C++ Project on Railway Reservation SystemINTRODUCTION This pr oje c t i ntr od u ce s r ai lwa y re se rv at io nsystem . It explains how reservation is beingd o n e i n I n d i a n Railways . The step by stepprocedure is explained . T h i s p r o j e c t i s d e ve lope d in c ++ l angu age . A ll mo st al l t he head e r file s have be e n u se d i n this pr oj e ct.Proper comments have been given at desiredl oc at io ns t o m ake t he pr oje c t user frie nd ly .Various functions and structures are used tomake a complete use of this language.Thos project iswe ll ve rse d wi t h t he pr ogr amm ing . Ra il wa yreservation can easily accompanied with thehelp of this. PROPOSED SYSTEM Today one cannot afford to rely on the fallibleh u m a n b e i n g s o f b e r e a l l y w a n t s t o s t a n d against today’s merciless competi tion wherenot to wise saying “to err is human” no longerv a l i d , i t ’ s o u t d a t e d t o r a t i o n a l i z e y o u r mistake. So, to keep pace with time, to bringabout the best result without malfunctioninga n d g r e a t e r efficiency so to replace theu n e n d i n g h e a p s o f f l i e s w i t h a m u c h sophisticated hard disk of the computer. Oneh a s t o u s e t h e d a t a m a n a g e m e n t s o f t w a r e . Software has b e e n a n a s c e n t i n a t o m i z a t i o n various organizations. Many software productsw o r k i n g are now in markets, which h a v e helped in making the organizations work easierand efficiently. Data management initially hadto maintain a lot of ledgers and a lot of paperwork has to be done but now software producton this organization has made their work fasterand easier. Now only this software has to beloaded on the computer and work can be done.T h i s p r e v e n t s a l o t o f t i m e a n d money. Thew o r k b e c o m e s f u l l y a u t o m a t e d a n d a n y information regarding the organization can beobtained by clicking the button. Moreover, nowi t ’ s a n a g e o f c o m p u t e r s o f a n d a u t o m a t i n g such an organization gives the better look. SYSTEM DEVELOPMENT LIFE CYCLE The systems development life cycle is a projectmanagement technique that divides complexprojects into smal ler, more easily manageds e g m e n t s o r p h a s e s . Segmenting projectsallows managers to verify the s u c c e s s f u l completion of project phases before allocatingr e s o u r c e s t o s u b s e q u e n t p h a s e s . Software developmentprojects typically include initiation, planning,design, development, testing, implementation,and maintenance phases. However, the phasesmay be divided differently depending on theo r g a n i z a t i o n i n v o l v e d . F o r example, initialp r o j e c t activities might be d e s i g n a t e d a s request, requirements-definition, and planningphases, or initiation, concept-development, and planning phases. End users of the system 6 under development should b e i n v o l v e d i n reviewing the output of each phase to ensurethe system is being built to deliver the neededfunctionality. #include<stdio .h> #include<conio .h> #include<stdlib .h> #include<string .h> #include<iostream .h> #include<time .h> #include<iomanip .h> #include<fstream .h> char f[10]="f"; char s[10]="s"; int addr,ad,flag,f1,d,m,i,amt; float tamt; class login { public: char id[100]; char pass[100]; char *password; void getid() { cout< <"Enter your id:";gets(id); password=getpass("Enter the password:"); strcpy(pass,password); } class detail { public: int tno. char tname[100].gets(bp).gets(dest). char dest[100].puts(pass).puts(id).c1fare. } }.gets(tname). cout<<"Destination pt:". cout< <"Train name:".c2fare. int d.y. cout<<"Train no:". .cin>>tno. int c2. char bp[100]. void getdetail() { cout<<"Enter the details as follows\n". int c1.void displayid() { cout<<"Id:".m. cout<<"Boarding point:". cout<<"Password:". cout<<"No of seats in first class & fare per ticket:". cin>>c2>>c2fare. cout< <"No of seats in second class & fare per ticket:". cin>>c1>>c1fare. . char bp[10]. char tname[100]. cout<<d<<"-"<<m<<"-"<<y<<"\t"<<end l. class reser { public: int pnr.cin>>d>>m>>y. } }. cout< <"Date of travel:". int tno. } void displaydetail() { cout< <tno<<"\t"<<tname<<"\t"<<bp<<"\t"< <dest<<"\t". cout<<c1<<"\t"<<c1fare<<"\t"<<c2<< "\t"<<c2fare<<"\t". gets(bp). cout<<"Train no:". cout<<"Destination pt:". int i. . char clas[10].y. int con.cin>>nosr.i++) { cout<<"Passenger name:". cout<<"No of seats required:".gets(dest). int age[20]. cout<<"Boarding point:".m. char pname[10][100]. void getresdet() { cout<<"Enter the details as follows\n".cin>>tno. int d. int nosr. for(i=0.i<nosr . cout< <"Train name:".char dest[100].gets(tname).gets(pname[i]). float amc. \n"... } void displayresdet() { cout<<"... gets(clas).........cin>>age[i]..cin>>d>>m>>y..puts(tname).............. cout<<"Pnr no:"<<pnr.............Senior citizen\n"...... . cout<<".......... cout<<"Date of travel:"......... cout<<"\nTrain name:".... cout< <"Enter the concession category\n".. cout<<"1....cout<<"Passenger age:".. cout<<"\nTrain no:"<<tno.......\n".Children below 5 yrs\n4.\n".. cout< <"..... cout<<"3.. cin>>con.END OF GETTING DETAILS......... .. } cout< <"Enter the class f-first class s-second class:"............None\n"... ...Military\n2........ i++) { cout<<"Passenger name:".i<nosr.. cout<<"\nYou must pay:"<<amc<<endl..\n"..puts(pname[i]). cout<<"\nYour concession category:"<<con.. cout<<"*************************** ********************\n". . } cout<<"\nYour class:"... cout<<"\nDate of reservation:"<<d<<"-"<<m<<"-"<<y......... cout<<"...puts(bp). cout<<"No of seats reserved:"<<nosr. cout<<"Passenger age:"<<age[i]. for(i=0..puts(clas).END OF RESERVATION. } }...cout<<"Boarding point:". cout<<"*************************** ********************\n"....puts(dest).. cout<<"Destination pt:".. int nosc..\n".cin>>pnr. cout< <"... int i. int tno. cout< <"Date of cancellation:". int age[20]. char clas[10].END OF GETTING DETAILS. char dest[100]. void getcancdet() { cout<<"Enter the details as follows\n". int d.. cout<<"Pnr no:"..class canc { public: int pnr...cin>>d>>m>>y. char tname[100]..m. char bp[10]...y...... } void displaycancdet() { .. float amr..... char pname[10][100]. ..... for(i=0.... cout<<"passenger age:"<<age[i].... cout<<"\nYou can collect:"<<amr<<"rs"<<endl.puts(bp)...... cout<<"\nTrain name:".................puts(clas)....i++) { cout<<"Passenger name:". . } cout<<"\nDate of cancellation:"<<d<<"-"<<m<<"-"<<y.... cout<<"*************************** **************\n".........cout<<".... cout<<"Boarding point:".puts(dest). cout<<"\nTrain no:"<<tno... cout<<".puts(tname).. .. cout<<"no of seats to be cancelled:"<<nosc...\n"...... cout<<"Destination pt:"..\n"...... cout<<"\nYour class:".i<nosc......... .. cout<<"Pnr no:"<<pnr...puts(pname[i])...... void res().. cout<<"*************************** **************\n". void user(). void cancell()..cout<<".... do { .\n"....... void enquiry().. cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~\n". cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~\n".... void manage(). void can()... int ch.. void reserve().\n"... } }... void displaypassdetail()........ void main() { clrscr()..WELCOME TO RAILWAY RESERVATION SYSTEM..END OF CANCELLATION.. void database(). cout<<".... break. cout<<"Enter your choice:". char *pass="12345678". switch(ch) { case 1: database(). } void database() { char *password. case 2: user().Admin mode\n2.Exit\n". cin>>ch. getch(). cout< <endl. case 3: exit(0). .User mode\n3.cout<<"^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^\n". } }while(ch<=3). break. cout<<"1. . cout<<"You are not permitted to logon this mode\n".Add details\n"...... char c...User management\n".Display passenger details\n6. cout<<"1....\n". int ch. fstream f.Display details\n4.password)!=0) { cout<<"Enter the password correctly \n".ADMINISTRATOR MENU. } if(strcmp(pass. goto h... if(strcmp(pass. do { cout<<".Return to main menu\n"..password=getpass("Enter the admininistrator password:"). cout<<"3.. detail a.password)==0) { char c..... cout<<"5...Create detail data base\n2. f. break.txt". cin>>c. f.open("t.txt".close(). cout< <endl. cout<<"Do you want to add one more record?\n".getdetail(). f. do { a. case 2: f.ios::out| ios::binary).write((char *) & a. cin>>ch. cout<<"y-for Yes\nn-for No\n". f.close(). switch(ch) { case 1: f.sizeof(a)).ios::in|ios::out| ios::binary|ios::app). a. .cout<<"Enter your choice:". }while(c=='y').sizeof(a)).getdetail().open("t.write((char *) & a. case 4: manage().open("t. f.close().seekg(0). f. break. while(f.sizeof(a))) { a. case 3: f. break. } f.break.read((char *) & a.displaydetail(). } }while(ch< =5).txt".close(). case 5: displaypassdetail(). break. } h: } void reserve() { .ios::in|ios::out| ios::binary|ios::app). time_t t.txt". getch(). } }while(ch==1).open("t.ios::in|ios::out| ios::binary|ios::app).int ch.f2.open("p. switch(ch) { case 1: res().ios::in|ios::out| ios::binary). cout< <endl. f2. cin>>ch. do { cout<<"1. . break. reser b.txt". f1.Reserve\n2. } void res() { detail a. cout<<"Enter your choice:".Return to the main menu\n". fstream f1. f)==0) { if(a.nosr*((amt*50)/100).getresdet().nosr.c1)).nosr) { amt=a.amc=b.con==2) .tno) { if(strcmp(b.c1fare.seekp(addr-(7*ad)).sizeof(a))) { if(a. while(f1.con==1) { cout< <"Concession category:MILITARY PERSONNEL\n". addr=f1. b.int ch.c1.c1-b.clas.c1=a. f1. b.c1>=b.sizeof(a.read((char *) &a.c1). } else if(b. f1.write((char *) & a.tellg().tno==b. ad=sizeof(a. if(b. a. cout<<"--------------Your ticket is reserved-----------\n". } srand((unsigned) time(&t)). } else if(b.con==3) { cout<<"Concession category:CHILDERN BELOW FIVE\n".{ cout<<"Concession category:SENIOR CITIZEN\n".amc=b. b.write((char *) & b. cout<<"-----------------------------------------------------\n". } else if(b.con==4) { cout<<"You cannot get any concession\n". . b.sizeof(b)).amc=b.amc=0.nosr*((amt*60)/100). b.displayresdet().pnr=rand(). b. cout<<"-----------------End of reservation menu-------\n". b. f2.nosr*amt.0. nosr.c2)).c2.} else { cout<<"**********Sorry req seats not available********\n". } } else if(strcmp(b.c2-b. a.sizeof(a.c2>=b. ad=sizeof(a. if(b.write((char *) & a.c2fare.con==1) { cout< <"Concession category:MILITARY PRESONNEL\n".clas.s)==0) { if(a.nosr) { amt=a. addr=f1. } else if(b.amc=b.tellg().con==2) { . f1.c2).nosr*((amt*50)/100). f1.c2=a. b.seekp(addr-(5*ad)). con==3) { cout<<"Concession category:CHILDERN BELOW FIVE\n". cout<<"------------End of reservation---------\n".nosr*((amt*60)/100).write((char *) & b.0.sizeof(b)).cout<<"Concession category:SENIOR CITIZEN\n".amc=b. } else if(b. b. } else if(b.con==4) { cout<<"You cannot get any concession\n".nosr*amt. b.displayresdet(). } f2. cout<<"--------------------------------------\n". b.amc=0. } else . b.amc=b. cout<<"--------Your ticket is reserved--------\n". ....close()..... goto h.\n"..... h: } ... } else { flag=0...{ cout<<"********Sorry req no of seats not available*******\n"..Enter the train no from the data base.... } f1.. } } getch(). f2..Wrong train no....\n"...... } } if(flag==0) { cout<<".close()........ getch().... cout<<".. close(). getch().ios::in|ios::out| ios::binary).displayresdet(). } void enquiry() { fstream f.sizeof(b))) { b. while(f.seekg(0). } .displaydetail().read((char *) & a. f.open("t.ios::in|ios::out| ios::binary). while(f. reser b.read((char *) & b.open("p. f. } f.txt".void displaypassdetail() { fstream f. detail a.sizeof(a))) { a. f.txt". txt".tname).ios::in|ios::out| ios::binary). while(f2.txt". strcpy(c.b.tno.bp). f3.txt".ios::in|ios::out| ios::binary).ios::in|ios::out| ios::binary). . f1.getch(). } void cancell() { detail a.open("p.read((char *) & b. f2. cout<<"**********CANCELLATION MENU*********\n".f2.nosr.dest.dest). canc c.getcancdet().sizeof(b))) { if(b.tname.open("cn.bp. strcpy(c.pnr==c. strcpy(c.f3. c. c.b.b.tno=b.open("t. fstream f1.nosc=b. reser b.pnr) { c. m==m)) { cout<<"You are cancelling at the date of departure\n".nosc.age[j]=b.d.for(int j=0. if(strcmp(c.tellg(). } strcpy(c.c1+c.j++) { strcpy(c.pname[j].read((char *) & a.nosc. f1.tno==c.b.clas.seekp(addr-(7*ad)).clas.tno) { a.m. addr=f1.clas). m=a. ad=sizeof(a. tamt=b. c.c1).age[j].c1.sizeof(a))) { if(a.b. if((c.f)==0) { while(f1.sizeof(a.pname[j]). d=a.amc.d==d)&&(c.j<c. f1.write((char *) & a.c1=a. .c1)). c. } goto h. } else { cout<<"Cancelling after the departure\n". c.amr=tamt-((tamt*20)/100).m) { cout< <"You are cancelling one month before the date of departure\n". cout<<"Your request cannot be completed\n". c.displaycancdet().amr=tamt-((tamt*50)/100).amr=tamt-((tamt*60)/100). } else if(m>c. } } } . } else if(c.m==m) { cout<<"You are cancelling at the month of departure\n". c. tellg().c2=a.d==d)&&(c.m==m) { cout<<"You are cancelling at the month of departure\n".c2)).seekp(addr-(5*ad)).tno==c.else if(strcmp(c.m.m==m)) { cout<<"You are cancelling at the date of departure\n".sizeof(a))) { if(a.write((char *) & a.clas. ad=sizeof(a.sizeof(a. tamt=b. f1. c. } else if(c.amc.c2. m=a.nosc. .c2+c. if((c.s)==0) { while(f1.amr=tamt-((tamt*60)/100).tno) { a.c2).read((char *) & a. d=a. addr=f1.d. f1. amr=tamt-((tamt*50)/100). } goto h. } else { cout<<"Cancelling after the departure\n". cout<<"Your request cannot be completed\n". c.displaycancdet(). } else if(m>c. } } } } else { flag=0.m) { cout< <"You are cancelling one month before the date of departure\n".c. c. } .amr=tamt-((tamt*20)/100). ... f2.} h: if(flag==0) { cout<<"Enter the correct pnr no\n"..close()..close()... } f1... } void can() { int ch. cout< <endl... switch(ch) { case 1: .. cout<<"Enter your choice:". cin>>ch. f3.close()...\n"...Cancell\n2.CANCELLATI ON MENU..Return to the main menu\n"... do { cout<<". getch().... cout<<"1... cout<<"*************************** **************************\n".ios::in|ios::out| ios::binary). while(f. } void user() { login a. int ch. fstream f. char *password. cout<<"***********WELCOME TO THE USER MENU**\n". break.gets(id). char id[100]. puts("Enter your id:"). cout<<"*************************** *************************\n".txt". } }while(ch==1).sizeof(a))) . password=getpass("Enter your password:").cancell(). f.read((char *) & a. getch().open("id. goto j. case 3: enquiry().Reserve\n2.{ if((strcmp(a.Enq uiry\n4. } }while(ch<=3). break.id)==0)&&(strcmp(a . case 2: cancell().Return to the main menu\n".id. break.password)==0)) { do { cout<<"1.pass. cout< <endl.Cancell\n3. break. } . switch(ch) { case 1: reserve(). cin>>ch. cout<<"Enter your choice:". ... fstream f... } getch()...WELCOME TO THE USER MANAGEMENT MENU..Add details\n".else { d=1.. j: } void manage() { int ch. ....Create id data base\n2. char c.\n". do { cout<<"1... login a. } } if(d==1) { cout<<"Enter your user id and password correctly\n". cout<<".. txt". f.open("id. cout<<"Enter your choice:".txt".getid(). break.ios::out| ios::binary). cout<<"y-Yes\nn-No\n". switch(ch) { case 1: f.close(). cin>>c. a.sizeof(a)). . cin>>ch. f. f.Return to the main menu\n".cout<<"3. do { a.Display details\n4. }while(c=='y').write((char *) & a.sizeof(a)). cout< <endl. case 2: f.write((char *) & a.ios::in|ios::out| ios::binary|ios::app).getid().close(). f. cout<<"Do you want to add one more record\n".open("id. seekg(0). break.sizeof(a))) { a.WELCOME TO RAILWAY RESERVATION SYSTEM………………… ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^MAIN .read((char *) & a. case 3: f.close(). while(f. } OUTPUT: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ …….open("id. } f. f.break.displayid(). getch(). } }while(ch< =3).ios::in|ios::out| ios::binary).txt". Admin mode 2.ADMINISTRATOR MENU………………………………….Exit Enter your choice:1 Enter the admininistrator password:********* Enter the password correctly You are not permitted to logon this mode ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1.User mode 3.Create detail data base 2.Add details 3.User mode 3..User management ..Display details 4.Exit Enter your choice:1 Enter the admininistrator password:********* ………………………. 1.Admin mode 2.MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1. 5.Display passenger details 6.Return to main menu Enter your choice:1 Enter the details as follows Train no:123 Train name:yercaud exp Boarding point:erode Destination pt:chennai No of seats in first class & fare per ticket:100 200 No of seats in second class & fare per ticket:200 100 Date of travel:2 3 2009 Do you want to add one more record? y-for Yes n-for No y Enter the details as follows Train no:124 Train name:shatapti exp Boarding point:chennai Destination pt:bombay No of seats in first class & fare per ticket:300 . Display details 4.200 No of seats in second class & fare per ticket:200 300 Date of travel:4 5 2009 Do you want to add one more record? y-for Yes n-for No n ……………………….ADMINISTRATOR MENU……………………………… 1.Create detail data base 2.User management 5.Return to main menu Enter your choice:2 Enter the details as follows Train no:126 Train name:kurula exp Boarding point:bombay Destination pt:chennai No of seats in first class & fare per ticket:200 .Display passenger details 6..Add details 3. ADMINISTRATOR MENU………………………………… 1.Create detail data base 2.Display details 4..300 No of seats in second class & fare per ticket:300 200 Date of travel:4 3 2009 ……………………….Add details 3.Return to main menu Enter your choice:3 Trno Trname Bpt Dest Fs Ffare Ss Sfare Date of dep 123 yercaud exp erode chennai 100 200 200 100 2-3-2009 124 shatapti exp chennai bombay 300 200 200 300 4-5-2009 126 kurula exp bombay chennai 200 300 300 200 4-3-2009 .User management 5.Display passenger details 6. 1.ADMINISTRATOR MENU……………………………………… ….WELCOME TO THE USER MANAGEMENT MENU……. 1.Add details 3.Create id data base 2.……………………….Display details 4..Add details 3.Return to the main menu Enter your choice:1 Enter your id:ashwin Enter the password:********** Do you want to add one more record y-Yes n-No y .Display details 4.Create detail data base 2.Return to main menu Enter your choice:4 ……………………..User management 5.Display passenger details 6. Create id data base 2.Return to the main menu Enter your choice:2 Enter your id:berlin .Display details 4.Add details 3.Enter your id:ajinth Enter the password:********** Do you want to add one more record y-Yes n-No y Enter your id:bala Enter the password:******** Do you want to add one more record y-Yes n-No y Enter your id:hemanth Enter the password:********* Do you want to add one more record y-Yes n-No n 1. Return to the main menu Enter your choice:4 .Add details 3.Display details 4.Create id data base 2.Add details 3.Create id data base 2.Display details 4.Return to the main menu Enter your choice:3 Id:ashwin Password:11111111 Id:ajinth Password:22222222 Id:bala Password:33333333 Id:prem Password:44444444 Id:hemanth Password:55555555 Id:berlin Password:66666666 1.Enter the password:********* 1. Return to main menu Enter your choice:6 ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1.User management 5.ADMINISTRATOR MENU…………………… 1.User mode .Display details 4.Display passenger details 6.Add details 3.ADMINISTRATOR MENU…………………………….User management 5.Create detail data base 2.Return to main menu Enter your choice:5 .Add details 3....Display details 4.. 1. ……………………….Display passenger details 6.Create detail data base 2. ……………………….Admin mode 2. Exit Enter your choice:2 ************************************* *********************************** **********WELCOME TO THE USER MENU******************** ************************************* *********************************** Enter your id: ashwin Enter your password:********* Enter your user id and password correctly ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^ 1.Admin mode 2.Exit Enter your choice:2 ************************************* ********************************* **********WELCOME TO THE USER MENU****************** ************************************* ********************************* .3.User mode 3. Reserve 2.Reserve 2.Return to the main menu Enter your choice:1 Enter the details as follows Train no:123 Train name:yercaud Boarding point:erode Destination pt:chennai No of seats required:10 Passenger name:raja Passenger age:45 Passenger name:ragu Passenger age:32 Passenger name:ravi Passenger age:34 Passenger name:vinoth .Cancell 3.Return to the main menu Enter your choice:1 1.Enter your id: ashwin Enter your password:********* 1.Enquiry 4. Military 2.Senior citizen 3.END OF GETTING DETAILS………………………… You cannot get any concession .Passenger age:23 Passenger name:raju Passenger age:24 Passenger name:latha Passenger age:45 Passenger name:mala Passenger age:23 Passenger name:vimala Passenger age:32 Passenger name:kathir Passenger age:12 Passenger name:kosi Passenger age:43 Enter the class f-first class s-second class:f Date of travel:2 2 2009 Enter the concession category 1.None 4 …………………………….Children below 5 yrs 4. .……………………………………………… ………………………………………………. ……………………………………………… ……………………………………………… … Pnr no:10770 Train no:123 Train name:yercaud Boarding point:erode Destination pt:chennai No of seats reserved:10Passenger name:raja Passenger age:45Passenger name:ragu Passenger age:32Passenger name:ravi Passenger age:34Passenger name:vinoth Passenger age:23Passenger name:raju Passenger age:24Passenger name:latha Passenger age:45Passenger name:mala Passenger age:23Passenger name:vimala Passenger age:32Passenger name:kathir Passenger age:12Passenger name:kosi Passenger age:43 Your class:f Date of reservation:2-2-2009 Your concession category:4 . ************************************* ************************************* *********** —————————————————— ———————————————— ———————————-Your ticket is reserved———————————— ————————————End of reservation menu——————————1.Enquiry ..Reserve 2.You must pay:2000 ************************************* ************************************* *********** ……………………………….Reserve 2.Cancell 3.END OF RESERVATION…………………………… …….Return to the main menu Enter your choice:2 1. Enquiry 4.Cancell 3.4.Return to the main menu Enter your choice:3 Trno Trname Bpt Dest Fs Ffare Ss Sfare Date of dep 123 yercaud exp erode chennai 90 200 200 100 2-3-2009 124 shatapti exp chennai bombay 300 200 200 300 4-5-2009 126 kurula exp bombay chennai 200 300 300 200 4-3-2009 1.Return to the main menu Enter your choice:2 *********************************CAN CELLATION MENU****************************** Enter the details as follows Pnr no:10770 Date of cancellation:2 3 2009 .Reserve 2. ……………………………………………… ……………………………………………… …………………. Pnr no:10770 Train no:123 Train name:yercaud Boarding point:erode Destination pt:chennai Your class:f no of seats to be cancelled:10 Passenger name: raja passenger age: 45 Passenger name: ragu passenger age: 32 Passenger name: ravi passenger age: 34 Passenger name: vinoth passenger age: 23 Passenger name: raju passenger age: 24 Passenger name: latha passenger age:45 . You are cancelling at the date of departure ……………………………………………… ……………………………………………… ………………….END OF GETTING DETAILS………………………………..………………………………………. Enquiry 4.Reserve 2..Return to the main menu Enter your choice:2 **************************CANCELLA TION MENU*************************** Enter the details as follows Pnr no:12234 . ************************************* ************************************* ******* 1.Passenger name: mala passenger age: 23 Passenger name: vimala passenger age: 32 Passenger name: kathir passenger age: 12 Passenger name: kosi passenger age: 43 Date of cancellation:2-3-2009 You can collect: 800rs ************************************* ************************************* ******* …………………………….END OF CANCELLATION………………………….Cancell 3. Enquiry .Return to the main menu Enter your choice:3 Trno Trname Bpt Dest Fs Ffare Ss Sfare Date of dep 123 yercaud exp erode chennai 100 200 200 100 2-3-2009 124 shatapti exp chennai bombay 300 200 200 300 4-5-2009 126 kurula exp bombay chennai 200 300 300 200 4-3-2009 1.Reserve 2. Enter the correct pnr no 1.Enquiry 4.Cancell 3.Date of cancellation:2 3 2009 ………………………END OF GETTING DETAILS……………………………….Reserve 2..Cancell 3. Reserve 2.Return to the main menu Enter your choice:1 Enter the details as follows Train no:12345 Train name:shatapti .Return to the main menu Enter your choice:1 1.Cancell 3.Reserve 2.Enquiry 4.Return to the main menu Enter your choice:3 Trno Trname Bpt Dest Fs Ffare Ss Sfare Date of dep 123 yercaud exp erode chennai 100 200 200 100 2-3-2009 124 shatapti exp chennai bombay 300 200 200 300 4-5-2009 126 kurula exp bombay chennai 200 300 300 200 4-3-2009 1.4. 1.None 4 ……………………………….Military 2.Reserve 2.Children below 5 yrs 4. …………………………Wrong train no…………………………………………… ……….. …………………………Enter the train no from the data base…………………….END OF GETTING DETAILS…………………………….Return to the main menu Enter your choice:2 .Boarding point:chennai Destination pt:bombay No of seats required:1 Passenger name:raja Passenger age:23 Enter the class f-first class s-second class:f Date of travel:3 2 2009 Enter the concession category 1.Senior citizen 3. Cancell 3.Enquiry 4.User mode 3.1..User mode 3.Exit ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ 1.Reserve 2.ADMINISTRATOR MENU……………………………… 1.Create detail data base .Admin mode 2.Return to the main menu Enter your choice:4 ^^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ 1.Exit Enter your choice:1 Enter the admininistrator password:********* ……………………….Admin mode 2. User mode 3.Exit Enter your choice:3 .ADMINISTRATOR MENU……………………………. 1.Add details 3..Return to main menu Enter your choice:5 .Add details 3.Create detail data base 2.2..Display details 4.Display passenger details 6.Admin mode 2.Display passenger details 6.Return to main menu Enter your choice:6 ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1.User management 5.User management 5. ……………………….Display details 4.
Copyright © 2024 DOKUMEN.SITE Inc.