Downloaded From: [Link]
com
This is the coding for Railway Reservation Project in C++
#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);
}
void displayid()
{
cout<<"Id:";puts(id);
cout<<"Password:";puts(pass);
}
};
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<<tno<<"\t"<<tname<<"\t"<<bp<<"\t"<<dest<<"\t";
cout<<c1<<"\t"<<c1fare<<"\t"<<c2<<"\t"<<c2fare<<"\t";
cout<<d<<"-"<<m<<"-"<<y<<"\t"<<endl;
}
};
class reser
Downloaded From: [Link]
{
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<<"Passenger name:";gets(pname[i]);
cout<<"Passenger 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<<"[Link]\[Link] citizen\n";
cout<<"[Link] below 5 yrs\[Link]\n";
cin>>con;
cout<<"............END OF GETTING DETAILS............\n";
}
void displayresdet()
{
cout<<"...............................................\n";
cout<<"...............................................\n";
cout<<"Pnr no:"<<pnr;
cout<<"\nTrain no:"<<tno;
cout<<"\nTrain name:";puts(tname);
cout<<"Boarding point:";puts(bp);
cout<<"Destination pt:";puts(dest);
cout<<"No of seats reserved:"<<nosr;
for(i=0;i<nosr;i++)
{
cout<<"Passenger name:";puts(pname[i]);
cout<<"Passenger age:"<<age[i];
}
cout<<"\nYour class:";puts(clas);
cout<<"\nDate of reservation:"<<d<<"-"<<m<<"-"<<y;
cout<<"\nYour concession category:"<<con;
cout<<"\nYou must pay:"<<amc<<endl;
cout<<"***********************************************\n";
cout<<".........END OF RESERVATION.................\n";
cout<<"***********************************************\n";
}
};
class canc
{
Downloaded From: [Link]
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>>pnr;
cout<<"Date of cancellation:";cin>>d>>m>>y;
cout<<"...........END OF GETTING DETAILS...........\n";
}
void displaycancdet()
{
cout<<"...........................................\n";
cout<<"...........................................\n";
cout<<"Pnr no:"<<pnr;
cout<<"\nTrain no:"<<tno;
cout<<"\nTrain name:";puts(tname);
cout<<"Boarding point:";puts(bp);
cout<<"Destination pt:";puts(dest);
cout<<"\nYour class:";puts(clas);
cout<<"no of seats to be cancelled:"<<nosc;
for(i=0;i<nosc;i++)
{
cout<<"Passenger name:";puts(pname[i]);
cout<<"passenger age:"<<age[i];
}
cout<<"\nDate of cancellation:"<<d<<"-"<<m<<"-"<<y;
cout<<"\nYou can collect:"<<amr<<"rs"<<endl;
cout<<"*****************************************\n";
cout<<".........END OF CANCELLATION.............\n";
cout<<"*****************************************\n";
}
};
void manage();
void can();
void user();
void database();
void res();
void reserve();
void displaypassdetail();
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<<"[Link] mode\[Link] mode\[Link]\n";
cout<<"Enter your choice:";
cin>>ch;
Downloaded From: [Link]
cout<<endl;
switch(ch)
{
case 1:
database();
break;
case 2:
user();
break;
case 3:
exit(0);
}
}while(ch<=3);
getch();
}
void database()
{
char *password;
char *pass="12345678";
password=getpass("Enter the admininistrator password:");
detail a;
fstream f;
int ch;
char c;
if(strcmp(pass,password)!=0)
{
cout<<"Enter the password correctly \n";
cout<<"You are not permitted to logon this mode\n";
goto h;
}
if(strcmp(pass,password)==0)
{
char c;
do
{
cout<<"...........ADMINISTRATOR MENU...........\n";
cout<<"[Link] detail data base\[Link] details\n";
cout<<"[Link] details\[Link] management\n";
cout<<"[Link] passenger details\[Link] to main menu\n";
cout<<"Enter your choice:";
cin>>ch;
cout<<endl;
switch(ch)
{
case 1:
[Link]("[Link]",ios::out|ios::binary);
do
{
[Link]();
[Link]((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');
[Link]();
break;
case 2:
[Link]("[Link]",ios::in|ios::out|ios::binary|ios::app);
[Link]();
[Link]((char *) & a,sizeof(a));
[Link]();
break;
case 3:
Downloaded From: [Link]
[Link]("[Link]",ios::in|ios::out|ios::binary|ios::app);
[Link](0);
while([Link]((char *) & a,sizeof(a)))
{
[Link]();
}
[Link]();
break;
case 4:
manage();
break;
case 5:
displaypassdetail();
break;
}
}while(ch<=5);
[Link]();
}
h:
}
void reserve()
{
int ch;
do
{
cout<<"[Link]\[Link] 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;
[Link]("[Link]",ios::in|ios::out|ios::binary);
[Link]("[Link]",ios::in|ios::out|ios::binary|ios::app);
int ch;
[Link]();
while([Link]((char *) &a,sizeof(a)))
{
if([Link]==[Link])
{
if(strcmp([Link],f)==0)
{
if(a.c1>=[Link])
{
amt=a.c1fare;
addr=[Link]();
ad=sizeof(a.c1);
[Link](addr-(7*ad));
a.c1=[Link];
[Link]((char *) & a.c1,sizeof(a.c1));
if([Link]==1)
{
Downloaded From: [Link]
cout<<"Concession category:MILITARY PERSONNEL\n";
[Link]=[Link]*((amt*50)/100);
}
else if([Link]==2)
{
cout<<"Concession category:SENIOR CITIZEN\n";
[Link]=[Link]*((amt*60)/100);
}
else if([Link]==3)
{
cout<<"Concession category:CHILDERN BELOW FIVE\n";
[Link]=0.0;
}
else if([Link]==4)
{
cout<<"You cannot get any concession\n";
[Link]=[Link]*amt;
}
srand((unsigned) time(&t));
[Link]=rand();
[Link]((char *) & b,sizeof(b));
[Link]();
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([Link],s)==0)
{
if(a.c2>=[Link])
{
amt=a.c2fare;
addr=[Link]();
ad=sizeof(a.c2);
[Link](addr-(5*ad));
a.c2=[Link];
[Link]((char *) & a.c2,sizeof(a.c2));
if([Link]==1)
{
cout<<"Concession category:MILITARY PRESONNEL\n";
[Link]=[Link]*((amt*50)/100);
}
else if([Link]==2)
{
cout<<"Concession category:SENIOR CITIZEN\n";
[Link]=[Link]*((amt*60)/100);
}
else if([Link]==3)
{
cout<<"Concession category:CHILDERN BELOW FIVE\n";
[Link]=0.0;
}
else if([Link]==4)
{
cout<<"You cannot get any concession\n";
[Link]=[Link]*amt;
}
[Link]((char *) & b,sizeof(b));
[Link]();
cout<<"---------------------------------------\n";
Downloaded From: [Link]
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";
}
[Link]();
[Link]();
getch();
h:
}
void displaypassdetail()
{
fstream f;
reser b;
[Link]("[Link]",ios::in|ios::out|ios::binary);
[Link](0);
while([Link]((char *) & b,sizeof(b)))
{
[Link]();
}
[Link]();
getch();
}
void enquiry()
{
fstream f;
[Link]("[Link]",ios::in|ios::out|ios::binary);
detail a;
while([Link]((char *) & a,sizeof(a)))
{
[Link]();
}
getch();
}
void cancell()
{
detail a;
reser b;
canc c;
fstream f1,f2,f3;
[Link]("[Link]",ios::in|ios::out|ios::binary);
[Link]("[Link]",ios::in|ios::out|ios::binary);
[Link]("[Link]",ios::in|ios::out|ios::binary);
cout<<"**********CANCELLATION MENU*********\n";
[Link]();
while([Link]((char *) & b,sizeof(b)))
Downloaded From: [Link]
{
if([Link]==[Link])
{
[Link]=[Link];
strcpy([Link],[Link]);
strcpy([Link],[Link]);
strcpy([Link],[Link]);
[Link]=[Link];
for(int j=0;j<[Link];j++)
{
strcpy([Link][j],[Link][j]);
[Link][j]=[Link][j];
}
strcpy([Link],[Link]);
if(strcmp([Link],f)==0)
{
while([Link]((char *) & a,sizeof(a)))
{
if([Link]==[Link])
{
a.c1=a.c1+[Link];
d=a.d;
m=a.m;
addr=[Link]();
ad=sizeof(a.c1);
[Link](addr-(7*ad));
[Link]((char *) & a.c1,sizeof(a.c1));
tamt=[Link];
if((c.d==d)&&(c.m==m))
{
cout<<"You are cancelling at the date of departure\n";
[Link]=tamt-((tamt*60)/100);
}
else if(c.m==m)
{
cout<<"You are cancelling at the month of departure\n";
[Link]=tamt-((tamt*50)/100);
}
else if(m>c.m)
{
cout<<"You are cancelling one month before the date of departure\n";
[Link]=tamt-((tamt*20)/100);
}
else
{
cout<<"Cancelling after the departure\n";
cout<<"Your request cannot be completed\n";
}
goto h;
[Link]();
}
}
}
else if(strcmp([Link],s)==0)
{
while([Link]((char *) & a,sizeof(a)))
{
if([Link]==[Link])
{
a.c2=a.c2+[Link];
d=a.d;
m=a.m;
addr=[Link]();
ad=sizeof(a.c2);
Downloaded From: [Link]
[Link](addr-(5*ad));
[Link]((char *) & a.c2,sizeof(a.c2));
tamt=[Link];
if((c.d==d)&&(c.m==m))
{
cout<<"You are cancelling at the date of departure\n";
[Link]=tamt-((tamt*60)/100);
}
else if(c.m==m)
{
cout<<"You are cancelling at the month of departure\n";
[Link]=tamt-((tamt*50)/100);
}
else if(m>c.m)
{
cout<<"You are cancelling one month before the date of departure\n";
[Link]=tamt-((tamt*20)/100);
}
else
{
cout<<"Cancelling after the departure\n";
cout<<"Your request cannot be completed\n";
}
goto h;
[Link]();
}
}
}
}
else
{
flag=0;
}
}
h:
if(flag==0)
{
cout<<"Enter the correct pnr no\n";
}
[Link]();
[Link]();
[Link]();
getch();
}
void can()
{
int ch;
do
{
cout<<".................CANCELLATION MENU.........\n";
cout<<"[Link]\[Link] to the main menu\n";
cout<<"Enter your choice:";
cin>>ch;
cout<<endl;
switch(ch)
{
case 1:
cancell();
break;
}
}while(ch==1);
getch();
}
void user()
{
Downloaded From: [Link]
login a;
int ch;
cout<<"*****************************************************\n";
cout<<"***********WELCOME TO THE USER MENU**\n";
cout<<"****************************************************\n";
char *password;
fstream f;
[Link]("[Link]",ios::in|ios::out|ios::binary);
char id[100];
puts("Enter your id:");gets(id);
password=getpass("Enter your password:");
while([Link]((char *) & a,sizeof(a)))
{
if((strcmp([Link],id)==0)&&(strcmp([Link],password)==0))
{
do
{
cout<<"[Link]\[Link]\[Link]\[Link] 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 user id and password correctly\n";
}
getch();
j:
}
void manage()
{
int ch;
fstream f;
char c;
login a;
cout<<".........WELCOME TO THE USER MANAGEMENT MENU........\n";
do
{
cout<<"[Link] id data base\[Link] details\n";
cout<<"[Link] details\[Link] to the main menu\n";
cout<<"Enter your choice:";
cin>>ch;
cout<<endl;
switch(ch)
{
Downloaded From: [Link]
case 1:
[Link]("[Link]",ios::out|ios::binary);
do
{
[Link]();
[Link]((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');
[Link]();
break;
case 2:
[Link]("[Link]",ios::in|ios::out|ios::binary|ios::app);
[Link]();
[Link]((char *) & a,sizeof(a));
[Link]();
break;
case 3:
[Link]("[Link]",ios::in|ios::out|ios::binary);
[Link](0);
while([Link]((char *) & a,sizeof(a)))
{
[Link]();
}
[Link]();
break;
}
}while(ch<=3);
getch();
}
OUTPUT:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.......WELCOME TO RAILWAY RESERVATION SYSTEM.....................
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Link] mode
[Link] mode
[Link]
Enter your choice:1
Downloaded From: [Link]
Enter the admininistrator password:*********
Enter the password correctly
You are not permitted to logon this mode
^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Link] mode
[Link] mode
[Link]
Enter your choice:1
Enter the admininistrator password:*********
.............................ADMINISTRATOR MENU.........................................
[Link] detail data base
[Link] details
[Link] details
[Link] management
[Link] passenger details
[Link] 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?
Downloaded From: [Link]
y-for Yes
n-for No
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
.............................ADMINISTRATOR MENU....................................
[Link] detail data base
[Link] details
[Link] details
[Link] management
[Link] passenger details
[Link] 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
Downloaded From: [Link]
.............................ADMINISTRATOR MENU.......................................
[Link] detail data base
[Link] details
[Link] details
[Link] management
[Link] passenger details
[Link] 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
.............................ADMINISTRATOR MENU.................................................
[Link] detail data base
[Link] details
[Link] details
[Link] management
[Link] passenger details
[Link] to main menu
Enter your choice:4
……………..........WELCOME TO THE USER MANAGEMENT MENU........
[Link] id data base
[Link] details
[Link] details
[Link] to the main menu
Enter your choice:1
Downloaded From: [Link]
Enter your id:ashwin
Enter the password:**********
Do you want to add one more record
y-Yes
n-No
Enter your id:ajinth
Enter the password:**********
Do you want to add one more record
y-Yes
n-No
Enter your id:bala
Enter the password:********
Do you want to add one more record
y-Yes
n-No
Enter your id:hemanth
Enter the password:*********
Do you want to add one more record
y-Yes
n-No
[Link] id data base
[Link] details
[Link] details
[Link] to the main menu
Enter your choice:2
Enter your id:berlin
Enter the password:*********
[Link] id data base
[Link] details
Downloaded From: [Link]
[Link] details
[Link] 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
[Link] id data base
[Link] details
[Link] details
[Link] to the main menu
Enter your choice:4
. .............................ADMINISTRATOR MENU........................
[Link] detail data base
[Link] details
[Link] details
[Link] management
[Link] passenger details
[Link] to main menu
Enter your choice:5
.............................ADMINISTRATOR MENU...................................
[Link] detail data base
Downloaded From: [Link]
[Link] details
[Link] details
[Link] management
[Link] passenger details
[Link] to main menu
Enter your choice:6
^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Link] mode
[Link] mode
[Link]
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^^^^^^^^^^^^^^^^^^^^^^^
[Link] mode
[Link] mode
[Link]
Enter your choice:2
**********************************************************************
**********WELCOME TO THE USER MENU******************
**********************************************************************
Enter your id:
ashwin
Enter your password:*********
[Link]
[Link]
[Link]
[Link] to the main menu
Enter your choice:1
Downloaded From: [Link]
[Link]
[Link] 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
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
[Link]
[Link] citizen
Downloaded From: [Link]
[Link] below 5 yrs
[Link]
..................................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: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
You must pay:2000
*************************************************************************************
......................................END OF RESERVATION........................................
*************************************************************************************
------------------------------------------------------------------------------------------------------
----------------------------------Your ticket is reserved------------------------------------
------------------------------------End of reservation menu-------------------------------
[Link]
Downloaded From: [Link]
[Link] to the main menu
Enter your choice:2
[Link]
[Link]
[Link]
[Link] 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
[Link]
[Link]
[Link]
[Link] to the main menu
Enter your choice:2
*********************************CANCELLATION 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
Downloaded From: [Link]
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
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................................
*********************************************************************************
[Link]
[Link]
[Link]
[Link] to the main menu
Enter your choice:2
**************************CANCELLATION MENU***************************
Enter the details as follows
Pnr no:12234
Date of cancellation:2 3 2009
……………............END OF GETTING DETAILS......................................
Enter the correct pnr no
[Link]
[Link]
Downloaded From: [Link]
[Link]
[Link] 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
[Link]
[Link]
[Link]
[Link] 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
[Link]
[Link]
[Link]
[Link] to the main menu
Enter your choice:1
[Link]
Downloaded From: [Link]
[Link] 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
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
[Link]
[Link] citizen
[Link] below 5 yrs
[Link]
.....................................END OF GETTING DETAILS...................................
………………............Wrong train no.............................................................
……………………......Enter the train no from the data base.........................
[Link]
[Link] to the main menu
Enter your choice:2
[Link]
[Link]
[Link]
[Link] to the main menu
Enter your choice:4
^^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Link] mode
[Link] mode
[Link]
Downloaded From: [Link]
^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Link] mode
[Link] mode
[Link]
Enter your choice:1
Enter the admininistrator password:*********
.............................ADMINISTRATOR MENU....................................
[Link] detail data base
[Link] details
[Link] details
[Link] management
[Link] passenger details
[Link] to main menu
Enter your choice:5
. .............................ADMINISTRATOR MENU...................................
[Link] detail data base
[Link] details
[Link] details
[Link] management
[Link] passenger details
[Link] to main menu
Enter your choice:6
^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Link] mode
[Link] mode
[Link]
Enter your choice:3