C++ Project on Railway Reservation System
INTRODUCTION 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 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 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 s 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
#include<stdlib .h> #include<string .h> #include
#include
#include
#include
char f[10]="f"; char s[10]="s"; int addr,ad,flag,f1,d,m,i,amt; float tamt; class { public: char id[100]; char [100]; char *; void getid() { cout< <"Enter your id:";gets(id); =get("Enter the :"); stry(,); }
void displayid() { cout<<"Id:";puts(id); cout<<":";puts(); } }; class detail { public: int tno; char tname[100]; char bp[100]; char dest[100]; int c1,c1fare; int c2,c2fare; int d,m,y; void getdetail() { cout<<"Enter the details as follows\n"; cout<<"Train no:";cin>>tno; cout< <"Train name:";gets(tname); cout<<"Boarding point:";gets(bp); cout<<"Destination pt:";gets(dest);
cout<<"No of seats in first class & fare per ticket:"; cin>>c1>>c1fare; cout< <"No of seats in second class & fare per ticket:"; cin>>c2>>c2fare; cout< <"Date of travel:";cin>>d>>m>>y; } void displaydetail() { cout<
<<"\t"<
<<"\t"<
<<"\t"< <dest<<"\t"; cout<
<<"\t"<
<<"\t"<
<< "\t"<
<<"\t"; cout<
<<"-"<<m<<"-"<
<<"\t"<<end l; } }; class reser { public: int pnr; int tno; char tname[100]; char bp[10];
char dest[100]; char pname[10][100]; int age[20]; char clas[10]; int nosr; int i; int d,m,y; int con; float amc; void getresdet() { cout<<"Enter the details as follows\n"; cout<<"Train no:";cin>>tno; cout< <"Train name:";gets(tname); cout<<"Boarding point:";gets(bp); cout<<"Destination pt:";gets(dest); cout<<"No of seats required:";cin>>nosr; for(i=0;i<nosr ;i++) { cout<<"enger name:";gets(pname[i]);
cout<<"enger age:";cin>>age[i]; } cout< <"Enter the class f-first class s-second class:"; gets(clas); cout<<"Date of travel:";cin>>d>>m>>y; cout< <"Enter the concession category\n"; cout<<"1.Military\n2.Senior citizen\n"; cout<<"3.Children below 5 yrs\n4.None\n"; cin>>con; cout< <"............END OF GETTING DETAILS............\n"; } void displayresdet() { cout<<"........................... ....................\n"; cout<<"........................... ....................\n"; cout<<"Pnr no:"<
cout<<"Boarding point:";puts(bp); cout<<"Destination pt:";puts(dest); cout<<"No of seats reserved:"<<nosr; for(i=0;i<nosr;i++) { cout<<"enger name:";puts(pname[i]); cout<<"enger age:"<
class canc { public: int pnr; int tno; char tname[100]; char bp[10]; char dest[100]; char pname[10][100]; int age[20]; int i; char clas[10]; int nosc; int d,m,y; float amr; void getcancdet() { cout<<"Enter the details as follows\n"; cout<<"Pnr no:";cin rel="nofollow">>pnr; cout< <"Date of cancellation:";cin>>d>>m>>y; cout< <"...........END OF GETTING DETAILS...........\n"; } void displaycancdet() {
cout<<"........................... ................\n"; cout<<"........................... ................\n"; cout<<"Pnr no:"<
cout<<".........END OF CANCELLATION.............\n"; cout<<"*************************** **************\n"; } }; void manage(); void can(); void (); void database(); void res(); void reserve(); void displaydetail(); void cancell(); void enquiry(); void main() { clrscr(); int ch; cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~\n"; cout<<".......WELCOME TO RAILWAY RESERVATION SYSTEM..........\n"; cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~\n"; do {
cout<<"^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^\n"; cout<<"1. mode\n2. mode\n3.Exit\n"; cout<<"Enter your choice:"; cin rel="nofollow">>ch; cout< <endl; switch(ch) { case 1: database(); break; case 2: (); break; case 3: exit(0); } }while(ch<=3); getch(); } void database() { char *; char *="12345678";
=get("Enter the inistrator :"); detail a; fstream f; int ch; char c; if(strcmp(,)!=0) { cout<<"Enter the correctly \n"; cout<<"You are not permitted to logon this mode\n"; goto h; } if(strcmp(,)==0) { char c; do { cout<<"........... MENU...........\n"; cout<<"1.Create detail data base\n2.Add details\n"; cout<<"3.Display details\n4. management\n"; cout<<"5.Display enger details\n6.Return to main menu\n";
cout<<"Enter your choice:"; cin>>ch; cout< <endl; switch(ch) { case 1: f.open("t.txt",ios::out| ios::binary); do { a.getdetail(); f.write((char *) & a,sizeof(a)); cout<<"Do you want to add one more record?\n"; cout<<"y-for Yes\nn-for No\n"; cin>>c; }while(c=='y'); f.close(); break; case 2: f.open("t.txt",ios::in|ios::out| ios::binary|ios::app); a.getdetail(); f.write((char *) & a,sizeof(a)); f.close();
break; case 3: f.open("t.txt",ios::in|ios::out| ios::binary|ios::app); f.seekg(0); while(f.read((char *) & a,sizeof(a))) { a.displaydetail(); } f.close(); break; case 4: manage(); break; case 5: displaydetail(); break; } }while(ch< =5); f.close(); } h: } void reserve() {
int ch; do { cout<<"1.Reserve\n2.Return to the main menu\n"; cout<<"Enter your choice:"; cin>>ch; cout< <endl; switch(ch) { case 1: res(); break; } }while(ch==1); getch(); } void res() { detail a; reser b; fstream f1,f2; time_t t; f1.open("t.txt",ios::in|ios::out| ios::binary); f2.open("p.txt",ios::in|ios::out| ios::binary|ios::app);
int ch; b.getresdet(); while(f1.read((char *) &a,sizeof(a))) { if(a.tno==b.tno) { if(strcmp(b.clas,f)==0) { if(a.c1>=b.nosr) { amt=a.c1fare; addr=f1.tellg(); ad=sizeof(a.c1); f1.seekp(addr-(7*ad)); a.c1=a.c1-b.nosr; f1.write((char *) & a.c1,sizeof(a.c1)); if(b.con==1) { cout< <"Concession category:MILITARY PERSONNEL\n"; b.amc=b.nosr*((amt*50)/100); } else if(b.con==2)
{ cout<<"Concession category:SENIOR CITIZEN\n"; b.amc=b.nosr*((amt*60)/100); } else if(b.con==3) { cout<<"Concession category:CHILDERN BELOW FIVE\n"; b.amc=0.0; } else if(b.con==4) { cout<<"You cannot get any concession\n"; b.amc=b.nosr*amt; } srand((unsigned) time(&t)); b.pnr=rand(); f2.write((char *) & b,sizeof(b)); b.displayresdet(); cout<<"-----------------------------------------------------\n"; cout<<"--------------Your ticket is reserved-----------\n"; cout<<"-----------------End of reservation menu-------\n";
} else { cout<<"**********Sorry req seats not available********\n"; } } else if(strcmp(b.clas,s)==0) { if(a.c2>=b.nosr) { amt=a.c2fare; addr=f1.tellg(); ad=sizeof(a.c2); f1.seekp(addr-(5*ad)); a.c2=a.c2-b.nosr; f1.write((char *) & a.c2,sizeof(a.c2)); if(b.con==1) { cout< <"Concession category:MILITARY PRESONNEL\n"; b.amc=b.nosr*((amt*50)/100); } else if(b.con==2) {
cout<<"Concession category:SENIOR CITIZEN\n"; b.amc=b.nosr*((amt*60)/100); } else if(b.con==3) { cout<<"Concession category:CHILDERN BELOW FIVE\n"; b.amc=0.0; } else if(b.con==4) { cout<<"You cannot get any concession\n"; b.amc=b.nosr*amt; } f2.write((char *) & b,sizeof(b)); b.displayresdet(); cout<<"--------------------------------------\n"; cout<<"--------Your ticket is reserved--------\n"; cout<<"------------End of reservation---------\n"; } else
{ cout<<"********Sorry req no of seats not available*******\n"; } } getch(); goto h; } else { flag=0; } } if(flag==0) { cout<<"............Wrong train no......................\n"; cout<<"......Enter the train no from the data base.....\n"; } f1.close(); f2.close(); getch(); h: }
void displaydetail() { fstream f; reser b; f.open("p.txt",ios::in|ios::out| ios::binary); f.seekg(0); while(f.read((char *) & b,sizeof(b))) { b.displayresdet(); } f.close(); getch(); } void enquiry() { fstream f; f.open("t.txt",ios::in|ios::out| ios::binary); detail a; while(f.read((char *) & a,sizeof(a))) { a.displaydetail(); }
getch(); } void cancell() { detail a; reser b; canc c; fstream f1,f2,f3; f1.open("t.txt",ios::in|ios::out| ios::binary); f2.open("p.txt",ios::in|ios::out| ios::binary); f3.open("cn.txt",ios::in|ios::out| ios::binary); cout<<"**********CANCELLATION MENU*********\n"; c.getcancdet(); while(f2.read((char *) & b,sizeof(b))) { if(b.pnr==c.pnr) { c.tno=b.tno; stry(c.tname,b.tname); stry(c.bp,b.bp); stry(c.dest,b.dest); c.nosc=b.nosr;
for(int j=0;j
c.amr=tamt-((tamt*60)/100); } else if(c.m==m) { cout<<"You are cancelling at the month of departure\n"; c.amr=tamt-((tamt*50)/100); } else if(m>c.m) { cout< <"You are cancelling one month before the date of departure\n"; c.amr=tamt-((tamt*20)/100); } else { cout<<"Cancelling after the departure\n"; cout<<"Your request cannot be completed\n"; } goto h; c.displaycancdet(); } } }
else if(strcmp(c.clas,s)==0) { while(f1.read((char *) & a,sizeof(a))) { if(a.tno==c.tno) { a.c2=a.c2+c.nosc; d=a.d; m=a.m; addr=f1.tellg(); ad=sizeof(a.c2); f1.seekp(addr-(5*ad)); f1.write((char *) & a.c2,sizeof(a.c2)); tamt=b.amc; if((c.d==d)&&(c.m==m)) { cout<<"You are cancelling at the date of departure\n"; c.amr=tamt-((tamt*60)/100); } else if(c.m==m) { cout<<"You are cancelling at the month of departure\n";
c.amr=tamt-((tamt*50)/100); } else if(m>c.m) { cout< <"You are cancelling one month before the date of departure\n"; c.amr=tamt-((tamt*20)/100); } else { cout<<"Cancelling after the departure\n"; cout<<"Your request cannot be completed\n"; } goto h; c.displaycancdet(); } } } } else { flag=0; }
} h: if(flag==0) { cout<<"Enter the correct pnr no\n"; } f1.close(); f2.close(); f3.close(); getch(); } void can() { int ch; do { cout<<".................CANCELLATI ON MENU.........\n"; cout<<"1.Cancell\n2.Return to the main menu\n"; cout<<"Enter your choice:"; cin>>ch; cout< <endl; switch(ch) { case 1:
cancell(); break; } }while(ch==1); getch(); } void () { a; int ch; cout<<"*************************** **************************\n"; cout<<"***********WELCOME TO THE MENU**\n"; cout<<"*************************** *************************\n"; char *; fstream f; f.open("id.txt",ios::in|ios::out| ios::binary); char id[100]; puts("Enter your id:");gets(id); =get("Enter your :"); while(f.read((char *) & a,sizeof(a)))
{ if((strcmp(a.id,id)==0)&&(strcmp(a .,)==0)) { do { cout<<"1.Reserve\n2.Cancell\n3.Enq uiry\n4.Return to the main menu\n"; cout<<"Enter your choice:"; cin>>ch; cout< <endl; switch(ch) { case 1: reserve(); break; case 2: cancell(); break; case 3: enquiry(); break; } }while(ch<=3); goto j; }
else { d=1; } } if(d==1) { cout<<"Enter your id and correctly\n"; } getch(); j: } void manage() { int ch; fstream f; char c; a; cout<<".........WELCOME TO THE MANAGEMENT MENU........\n"; do { cout<<"1.Create id data base\n2.Add details\n";
cout<<"3.Display details\n4.Return to the main menu\n"; cout<<"Enter your choice:"; cin>>ch; cout< <endl; switch(ch) { case 1: f.open("id.txt",ios::out| ios::binary); do { a.getid(); f.write((char *) & a,sizeof(a)); cout<<"Do you want to add one more record\n"; cout<<"y-Yes\nn-No\n"; cin>>c; }while(c=='y'); f.close(); break; case 2: f.open("id.txt",ios::in|ios::out| ios::binary|ios::app); a.getid(); f.write((char *) & a,sizeof(a)); f.close();
break; case 3: f.open("id.txt",ios::in|ios::out| ios::binary); f.seekg(0); while(f.read((char *) & a,sizeof(a))) { a.displayid(); } f.close(); break; } }while(ch< =3); getch(); }
OUTPUT: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ …….WELCOME TO RAILWAY RESERVATION SYSTEM………………… ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^MAIN
MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1. mode 2. mode 3.Exit Enter your choice:1 Enter the inistrator :********* Enter the correctly You are not permitted to logon this mode ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1. mode 2. mode 3.Exit Enter your choice:1 Enter the inistrator :********* ……………………….. MENU………………………………….. 1.Create detail data base 2.Add details 3.Display details 4. management
5.Display enger 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
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 ……………………….. MENU……………………………… 1.Create detail data base 2.Add details 3.Display details 4. management 5.Display enger details 6.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
300 No of seats in second class & fare per ticket:300 200 Date of travel:4 3 2009 ……………………….. MENU………………………………… 1.Create detail data base 2.Add details 3.Display details 4. management 5.Display enger details 6.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
……………………….. MENU……………………………………… …. 1.Create detail data base 2.Add details 3.Display details 4. management 5.Display enger details 6.Return to main menu Enter your choice:4 …………………….WELCOME TO THE MANAGEMENT MENU…….. 1.Create id data base 2.Add details 3.Display details 4.Return to the main menu Enter your choice:1 Enter your id:ashwin Enter the :********** Do you want to add one more record y-Yes n-No y
Enter your id:ajinth Enter the :********** Do you want to add one more record y-Yes n-No y Enter your id:bala Enter the :******** Do you want to add one more record y-Yes n-No y Enter your id:hemanth Enter the :********* Do you want to add one more record y-Yes n-No n 1.Create id data base 2.Add details 3.Display details 4.Return to the main menu Enter your choice:2 Enter your id:berlin
Enter the :********* 1.Create id data base 2.Add details 3.Display details 4.Return to the main menu Enter your choice:3 Id:ashwin :11111111 Id:ajinth :22222222 Id:bala :33333333 Id:prem :44444444 Id:hemanth :55555555 Id:berlin :66666666 1.Create id data base 2.Add details 3.Display details 4.Return to the main menu Enter your choice:4
. ……………………….. MENU…………………… 1.Create detail data base 2.Add details 3.Display details 4. management 5.Display enger details 6.Return to main menu Enter your choice:5 . ……………………….. MENU…………………………….. 1.Create detail data base 2.Add details 3.Display details 4. management 5.Display enger details 6.Return to main menu Enter your choice:6 ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1. mode 2. mode
3.Exit Enter your choice:2 ************************************* *********************************** **********WELCOME TO THE MENU******************** ************************************* *********************************** Enter your id: ashwin Enter your :********* Enter your id and correctly ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^ 1. mode 2. mode 3.Exit Enter your choice:2 ************************************* ********************************* **********WELCOME TO THE MENU****************** ************************************* *********************************
Enter your id: ashwin Enter your :********* 1.Reserve 2.Cancell 3.Enquiry 4.Return to the main menu Enter your choice:1 1.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 enger name:raja enger age:45 enger name:ragu enger age:32 enger name:ravi enger age:34 enger name:vinoth
enger age:23 enger name:raju enger age:24 enger name:latha enger age:45 enger name:mala enger age:23 enger name:vimala enger age:32 enger name:kathir enger age:12 enger name:kosi enger age:43 Enter the class f-first class s-second class:f Date of travel:2 2 2009 Enter the concession category 1.Military 2.Senior citizen 3.Children below 5 yrs 4.None 4 …………………………….END OF GETTING DETAILS………………………… You cannot get any concession
……………………………………………… ……………………………………………….. ……………………………………………… ……………………………………………… … Pnr no:10770 Train no:123 Train name:yercaud Boarding point:erode Destination pt:chennai No of seats reserved:10enger name:raja enger age:45enger name:ragu enger age:32enger name:ravi enger age:34enger name:vinoth enger age:23enger name:raju enger age:24enger name:latha enger age:45enger name:mala enger age:23enger name:vimala enger age:32enger name:kathir enger age:12enger name:kosi enger age:43 Your class:f Date of reservation:2-2-2009 Your concession category:4
You must pay:2000 ************************************* ************************************* *********** ………………………………..END OF RESERVATION…………………………… ……. ************************************* ************************************* *********** —————————————————— ———————————————— ———————————-Your ticket is reserved———————————— ————————————End of reservation menu——————————1.Reserve 2.Return to the main menu Enter your choice:2 1.Reserve 2.Cancell 3.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 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.Reserve 2.Cancell 3.Enquiry 4.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
……………………………………….END OF GETTING DETAILS………………………………. You are cancelling at the date of departure ……………………………………………… ……………………………………………… …………………. ……………………………………………… ……………………………………………… ………………….. 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 enger name: raja enger age: 45 enger name: ragu enger age: 32 enger name: ravi enger age: 34 enger name: vinoth enger age: 23 enger name: raju enger age: 24 enger name: latha enger age:45
enger name: mala enger age: 23 enger name: vimala enger age: 32 enger name: kathir enger age: 12 enger name: kosi enger age: 43 Date of cancellation:2-3-2009 You can collect: 800rs ************************************* ************************************* ******* …………………………….END OF CANCELLATION………………………….. ************************************* ************************************* ******* 1.Reserve 2.Cancell 3.Enquiry 4.Return to the main menu Enter your choice:2 **************************CANCELLA TION MENU*************************** Enter the details as follows Pnr no:12234
Date of cancellation:2 3 2009 ………………………END OF GETTING DETAILS……………………………….. Enter the correct pnr no 1.Reserve 2.Cancell 3.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.Reserve 2.Cancell 3.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.Reserve 2.Cancell 3.Enquiry 4.Return to the main menu Enter your choice:1 1.Reserve 2.Return to the main menu Enter your choice:1 Enter the details as follows Train no:12345 Train name:shatapti
Boarding point:chennai Destination pt:bombay No of seats required:1 enger name:raja enger age:23 Enter the class f-first class s-second class:f Date of travel:3 2 2009 Enter the concession category 1.Military 2.Senior citizen 3.Children below 5 yrs 4.None 4 ……………………………….END OF GETTING DETAILS…………………………….. …………………………Wrong train no…………………………………………… ………. …………………………Enter the train no from the data base……………………. 1.Reserve 2.Return to the main menu Enter your choice:2
1.Reserve 2.Cancell 3.Enquiry 4.Return to the main menu Enter your choice:4 ^^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ 1. mode 2. mode 3.Exit ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ 1. mode 2. mode 3.Exit Enter your choice:1 Enter the inistrator :********* ……………………….. MENU……………………………… 1.Create detail data base
2.Add details 3.Display details 4. management 5.Display enger details 6.Return to main menu Enter your choice:5 . ……………………….. MENU…………………………….. 1.Create detail data base 2.Add details 3.Display details 4. management 5.Display enger details 6.Return to main menu Enter your choice:6 ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1. mode 2. mode 3.Exit Enter your choice:3