Downloaded From: http://www.cbseportal.

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

Downloaded From: http://www.cbseportal.com
{
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
{
public:
int pnr;
int tno;
char tname[100];
char bp[10];
char dest[100];

Downloaded From: http://www.cbseportal.com
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<<"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:"<<pnr;
cout<<"\nTrain no:"<<tno;

char bp[10]. float amr. cout<<"Destination pt:"....puts(dest). cout<<"***********************************************\n"... . int age[20].com cout<<"\nTrain name:"....END OF RESERVATION..y. cout<<"Passenger age:"<<age[i].Downloaded From: http://www. char dest[100].i++) { cout<<"Passenger name:"...puts(pname[i]).. int tno.. cout<<"No of seats reserved:"<<nosr.. cout<<"\nYou must pay:"<<amc<<endl.puts(bp). void getcancdet() { cout<<"Enter the details as follows\n".. cout<<"***********************************************\n". } cout<<"\nYour class:".cbseportal. cout<<"Pnr no:".puts(clas).\n". cout<<". char clas[10]... cout<<"Boarding point:".puts(tname). } }. char pname[10][100]..m. cout<<"\nYour concession category:"<<con.i<nosr.. int nosc. class canc { public: int pnr.. int i... for(i=0..cin>>pnr. cout<<"\nDate of reservation:"<<d<<"-"<<m<<"-"<<y.. char tname[100]. int d.

......\n"..\n". cout<<"*****************************************\n"... void can().cbseportal..cin>>d>>m>>y.. void main() { .. for(i=0. } }... cout<<"......puts(pname[i])..... cout<<"Boarding point:".puts(bp)..... cout<<"\nYou can collect:"<<amr<<"rs"<<endl........................ cout<<"\nYour class:"...END OF CANCELLATION..puts(tname)....Downloaded From: http://www.. } cout<<"\nDate of cancellation:"<<d<<"-"<<m<<"-"<<y... } void displaycancdet() { cout<<". cout<<"Pnr no:"<<pnr........puts(dest). cout<<"\nTrain no:"<<tno..... cout<<".com cout<<"Date of cancellation:".... cout<<"Destination pt:".......puts(clas)........ cout<<"*****************************************\n".. cout<<"no of seats to be cancelled:"<<nosc..... void enquiry()...END OF GETTING DETAILS. cout<<".... void database()... cout<<"passenger age:"<<age[i].\n".. cout<<"\nTrain name:"...........i++) { cout<<"Passenger name:"..... void res(). void user()....i<nosc. void displaypassdetail(). void reserve().... void manage().....\n". void cancell()..

. case 3: exit(0). fstream f.Admin mode\n2. } }while(ch<=3).. int ch.com clrscr()... password=getpass("Enter the admininistrator password:"). } void database() { char *password..Downloaded From: http://www. char c. cout<<endl.. getch().User mode\n3. char *pass="12345678". cout<<". cout<<"1.. break. case 2: user()..cbseportal... if(strcmp(pass. detail a. cin>>ch.WELCOME TO RAILWAY RESERVATION SYSTEM. cout<<"Enter your choice:".\n"... int ch. break.. switch(ch) { case 1: database(). cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"..Exit\n".. do { cout<<"^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^\n".password)!=0) { . cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n".

. f.open("t.txt". cout<<endl. } if(strcmp(pass. a... f.. cout<<"1..Display passenger details\n6.ios::out|ios::binary).open("t.ios::in|ios::out|ios::binary|ios::app).. .close().cbseportal..write((char *) & a.Downloaded From: http://www.ADMINISTRATOR MENU. cin>>ch.sizeof(a)). cout<<"Enter your choice:"...close().getdetail(). goto h.\n". cout<<"5. cin>>c.txt". cout<<"Do you want to add one more record?\n".getdetail().Create detail data base\n2. case 2: f.write((char *) & a. do { cout<<". break. do { a.... f..Display details\n4.Add details\n".User management\n"... break.password)==0) { char c. cout<<"3. f. switch(ch) { case 1: f.sizeof(a)).. cout<<"y-for Yes\nn-for No\n"..Return to main menu\n". cout<<"You are not permitted to logon this mode\n". }while(c=='y')..com cout<<"Enter the password correctly \n"...

com case 3: f. cin>>ch. . break.Return to the main menu\n". switch(ch) { case 1: res().ios::in|ios::out|ios::binary|ios::app). break. f.close(). } f. do { cout<<"1. cout<<endl. } }while(ch==1).read((char *) & a. while(f. break. break. } }while(ch<=5).txt".Reserve\n2. } h: } void reserve() { int ch. case 5: displaypassdetail().Downloaded From: http://www.sizeof(a))) { a.seekg(0).close().cbseportal. case 4: manage(). cout<<"Enter your choice:".open("t. f.displaydetail().

f2.Downloaded From: http://www.con==1) { cout<<"Concession category:MILITARY PERSONNEL\n". time_t t.txt". int ch.seekp(addr-(7*ad)). b.tno) { if(strcmp(b.sizeof(a. addr=f1.c1=a.read((char *) &a.write((char *) & a.com getch(). f1. } void res() { detail a.open("p.nosr) { amt=a.tellg().amc=b. f1.nosr*((amt*50)/100). b.f2.c1.c1-b.con==2) { cout<<"Concession category:SENIOR CITIZEN\n". f1.c1)). ad=sizeof(a.nosr.nosr*((amt*60)/100).c1).sizeof(a))) { if(a.open("t.clas. } else if(b.ios::in|ios::out|ios::binary|ios::app).cbseportal. if(b.c1fare.getresdet(). while(f1. } .f)==0) { if(a.amc=b. a.ios::in|ios::out|ios::binary). reser b.txt". fstream f1.tno==b.c1>=b. b.

con==4) { cout<<"You cannot get any concession\n".displayresdet().write((char *) & b.amc=b.c2=a. } srand((unsigned) time(&t)).nosr*((amt*50)/100).con==3) { cout<<"Concession category:CHILDERN BELOW FIVE\n". cout<<"-----------------End of reservation menu-------\n".c2. f1.sizeof(b)). } else if(b. if(b. ad=sizeof(a.write((char *) & a.sizeof(a.c2)).seekp(addr-(5*ad)). b. addr=f1.Downloaded From: http://www. b. .c2).con==1) { cout<<"Concession category:MILITARY PRESONNEL\n".tellg(). f1.clas.s)==0) { if(a.com else if(b.nosr*amt.amc=b.c2fare.cbseportal.c2>=b.c2-b. a. b. b. cout<<"--------------Your ticket is reserved-----------\n". b. f2.nosr.nosr) { amt=a.0.pnr=rand(). } else { cout<<"**********Sorry req seats not available********\n".amc=0. cout<<"------------------------------------------------------\n". } } else if(strcmp(b.

write((char *) & b. } else if(b. } f2.con==3) { cout<<"Concession category:CHILDERN BELOW FIVE\n".Downloaded From: http://www.amc=b.amc=b.nosr*amt. b.con==2) { cout<<"Concession category:SENIOR CITIZEN\n". } } getch(). } else { cout<<"********Sorry req no of seats not available*******\n". } else if(b. b. cout<<"---------------------------------------\n". } else { flag=0.com } else if(b.0. b. } } . cout<<"------------End of reservation---------\n". b.con==4) { cout<<"You cannot get any concession\n".nosr*((amt*60)/100).cbseportal. goto h. cout<<"--------Your ticket is reserved--------\n".sizeof(b)).displayresdet().amc=0.

.close()..sizeof(a))) { a.displaydetail(). f.txt". f... detail a...read((char *) & a... while(f..seekg(0). reser b... .... getch()..displayresdet()... getch().close(). } void enquiry() { fstream f.. f....Enter the train no from the data base....ios::in|ios::out|ios::binary). } getch().... } void cancell() { detail a..Downloaded From: http://www....ios::in|ios::out|ios::binary).\n".\n".. while(f.. cout<<".Wrong train no..txt".open("p.open("t.com if(flag==0) { cout<<". } f.. h: } void displaypassdetail() { fstream f... } f1..close()..sizeof(b))) { b..cbseportal. f2..read((char *) & b.

read((char *) & a. cout<<"**********CANCELLATION MENU*********\n". strcpy(c. c.pname[j].b.c1. m=a.j<c.amc.ios::in|ios::out|ios::binary).f2. c.Downloaded From: http://www. f1.txt". f1. addr=f1.b.b.nosc. ad=sizeof(a.dest).pnr) { c.bp).m.tno.f3.age[j]=b.f)==0) { while(f1.clas.d.tellg().open("cn.c1)).b.seekp(addr-(7*ad)).ios::in|ios::out|ios::binary).c1+c.open("t. strcpy(c.txt". fstream f1. strcpy(c.tname. d=a.read((char *) & b.nosr. for(int j=0.c1=a.tno) { a.c1). c.nosc=b.tno==c. canc c.tno=b.open("p. if(strcmp(c. .tname). f3.clas.pnr==c.clas). } strcpy(c.cbseportal.sizeof(a.com reser b.sizeof(a))) { if(a.j++) { strcpy(c.write((char *) & a.pname[j]).txt".b.ios::in|ios::out|ios::binary).age[j].nosc. f2. while(f2. f1.getcancdet().sizeof(b))) { if(b.bp.dest. tamt=b.

cout<<"Your request cannot be completed\n".m) { cout<<"You are cancelling one month before the date of departure\n".sizeof(a))) { if(a. } } } else if(strcmp(c.cbseportal.d. c. } else if(c.amr=tamt-((tamt*20)/100).clas. addr=f1. c. f1.nosc.com if((c.c2=a. m=a. .tno) { a.d==d)&&(c.amr=tamt-((tamt*60)/100).amr=tamt-((tamt*50)/100). ad=sizeof(a. } else if(m>c.m.tellg(). } else { cout<<"Cancelling after the departure\n". d=a.read((char *) & a.displaycancdet(). c.tno==c.s)==0) { while(f1.Downloaded From: http://www.m==m) { cout<<"You are cancelling at the month of departure\n".seekp(addr-(5*ad)).c2+c.m==m)) { cout<<"You are cancelling at the date of departure\n". c.c2). } goto h.

amc.displaycancdet(). c.d==d)&&(c. } else if(m>c. } else { cout<<"Cancelling after the departure\n". c. } } h: if(flag==0) { cout<<"Enter the correct pnr no\n".write((char *) & a. c. tamt=b.m==m)) { cout<<"You are cancelling at the date of departure\n".Downloaded From: http://www.com f1. } } } } else { flag=0.amr=tamt-((tamt*50)/100).sizeof(a. cout<<"Your request cannot be completed\n". c.amr=tamt-((tamt*20)/100).c2. } else if(c. .amr=tamt-((tamt*60)/100).c2)).m) { cout<<"You are cancelling one month before the date of departure\n".m==m) { cout<<"You are cancelling at the month of departure\n".cbseportal. if((c. } goto h.

..close().com } f1.. getch(). char *password.open("id. cout<<"1. switch(ch) { case 1: cancell()...CANCELLATION MENU.txt". fstream f.. f3.. int ch... puts("Enter your id:"). getch(). cin>>ch. f. } }while(ch==1).ios::in|ios::out|ios::binary).. cout<<"****************************************************\n"... cout<<"***********WELCOME TO THE USER MENU**\n"..\n". break.. char id[100].gets(id). cout<<endl.Downloaded From: http://www.Return to the main menu\n".close(). cout<<"Enter your choice:". .close()...... do { cout<<". f2.... cout<<"*****************************************************\n".Cancell\n2..cbseportal. } void user() { login a.. } void can() { int ch.

Cancell\n3.pass. cout<<"Enter your choice:".id.com password=getpass("Enter your password:").password)==0)) { do { cout<<"1. cout<<endl. } }while(ch<=3).sizeof(a))) { if((strcmp(a. while(f. j: . } getch().Reserve\n2. case 3: enquiry(). break.Downloaded From: http://www.id)==0)&&(strcmp(a. case 2: cancell().Return to the main menu\n". } } if(d==1) { cout<<"Enter your user id and password correctly\n". cin>>ch.read((char *) & a. } else { d=1. goto j.Enquiry\n4. switch(ch) { case 1: reserve(). break.cbseportal. break.

ios::in|ios::out|ios::binary). break. cout<<endl. cin>>c.Add details\n".. break.. f. fstream f.... char c.getid().Return to the main menu\n". login a.. }while(c=='y'). do { cout<<"1..getid().Create id data base\n2..Downloaded From: http://www.ios::out|ios::binary). cin>>ch. cout<<"3.. do { a..WELCOME TO THE USER MANAGEMENT MENU. f... case 2: f. f.cbseportal.sizeof(a)).com } void manage() { int ch.close().txt".txt".. case 3: f.open("id. f.sizeof(a)). switch(ch) { case 1: f. cout<<". a.ios::in|ios::out|ios::binary|ios::app).write((char *) & a..close().open("id. cout<<"Do you want to add one more record\n".txt". cout<<"y-Yes\nn-No\n".open("id..\n". . cout<<"Enter your choice:".Display details\n4.write((char *) & a.

sizeof(a))) { a.seekg(0). } . while(f. } }while(ch<=3).displayid(). break. getch(). } f.com f.read((char *) & a.close().cbseportal.Downloaded From: http://www.

.Admin mode 2........Create detail data base 2.........WELCOME TO RAILWAY RESERVATION SYSTEM................... 1.Downloaded From: http://www..Add details 3...ADMINISTRATOR MENU.. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1....Exit Enter your choice:1 Enter the admininistrator password:********* Enter the password correctly You are not permitted to logon this mode ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1.Display passenger details 6.Return to main menu Enter your choice:1 .........User mode 3.cbseportal.....User management 5.............Display details 4.............com OUTPUT: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ...........User mode 3.Admin mode 2.Exit Enter your choice:1 Enter the admininistrator password:********* ........

...User management 5.....Create detail data base 2..............Display details 4..............Add details 3....Downloaded From: http://www....... 1..Display passenger details 6.Return to main menu Enter your choice:2 ....cbseportal.......ADMINISTRATOR MENU......com 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 .......

...........Create detail data base 2..com 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: http://www...Display passenger details Sfare Date .........Create detail data base 2...Display details 4..........Display details 4......User management 5.........................ADMINISTRATOR MENU..Display passenger details 6............User management 5.Add details 3.cbseportal.Return to main menu Enter your choice:3 Trno Trname Bpt Dest Fs Ffare Ss 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........... 1.....Add details 3................ADMINISTRATOR MENU...........

1.Display details 4...Add details 3......WELCOME TO THE USER MANAGEMENT MENU..com 6.....Create id data base 2.Downloaded From: http://www..Return to main menu Enter your choice:4 …………….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 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 ....cbseportal.

......Display details 4. .Display details 4..Downloaded From: http://www...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....Return to the main menu Enter your choice:2 Enter your id:berlin Enter the password:********* 1.Create id data base 2... ......Display details 4.....Create id data base 2.Return to the main menu Enter your choice:4 ......com y-Yes n-No n 1.ADMINISTRATOR MENU.............Add details 3........Add details 3.Create id data base 2.Add details 3...cbseportal...

.User management 5.Create detail data base 2.......cbseportal....... 1..Return to main menu Enter your choice:6 ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1.User mode 3...User mode 3... .Downloaded From: http://www.........Display passenger details 6...Return to main menu Enter your choice:5 .Add details 3..ADMINISTRATOR MENU...Admin mode 2..com 1..Admin mode 2.Display details 4..User management 5..Create detail data base 2......Display passenger details 6........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.........Exit .Add details 3...Display details 4......

Reserve 2.Downloaded From: http://www.Reserve 2.Return to the main menu Enter your choice:1 1.Enquiry 4.cbseportal.Cancell 3.com Enter your choice:2 ********************************************************************** **********WELCOME TO THE USER MENU****************** ********************************************************************** Enter your id: ashwin Enter your password:********* 1.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 Passenger age:23 Passenger name:raju Passenger age:24 Passenger name:latha Passenger age:45 Passenger name:mala .

.............Senior citizen 3..........................................Children below 5 yrs 4................................................ ................................ You cannot get any concession ............................Military 2.......................................cbseportal...........Downloaded From: http://www....................................None 4 ..............................com 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.......... 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 ..END OF GETTING DETAILS.

.Enquiry erode chennai 90 Fs 2-3-2009 Sfare Date .....Reserve 2...Downloaded From: http://www....................................Enquiry 4..Reserve 2....Reserve 2...............Cancell 3.Return to the main menu Enter your choice:2 1...END OF RESERVATION..Cancell 3.....com Passenger age:43 Your class:f Date of reservation:2-2-2009 Your concession category:4 You must pay:2000 ************************************************************************************* .Return to the main menu Enter your choice:3 Trno Trname of dep Bpt Dest 200 Ffare 200 100 Ss 123 yercaud exp 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...cbseportal........ ************************************************************************************* ---------------------------------------------------------------------------------------------------------------------------------------Your ticket is reserved-----------------------------------------------------------------------End of reservation menu------------------------------1.

............................................................................................................. 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 Passenger name: mala passenger age: 23 .................... You are cancelling at the date of departure ... ............cbseportal................................................................................Return to the main menu Enter your choice:2 *********************************CANCELLATION MENU****************************** Enter the details as follows Pnr no:10770 Date of cancellation:2 3 2009 ..................................................................com 4......END OF GETTING DETAILS....................Downloaded From: http://www................................

...Reserve 2...Cancell 3......Cancell 3......END OF CANCELLATION.END OF GETTING DETAILS........ ********************************************************************************* 1......Downloaded From: http://www........Return to the main menu Enter your choice:3 Trno Trname of dep Bpt Dest 123 yercaud exp erode chennai 100 124 shatapti exp chennai bombay 300 Fs 200 200 200 200 Ffare Ss 100 2-3-2009 300 4-5-2009 Sfare Date ........com 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 ********************************************************************************* ……………………..Enquiry 4.......................Reserve 2.........Enquiry 4. Enter the correct pnr no 1....Return to the main menu Enter your choice:2 **************************CANCELLATION MENU*************************** Enter the details as follows Pnr no:12234 Date of cancellation:2 3 2009 ……………......cbseportal.........

Cancell 3.Enquiry 4.Downloaded From: http://www.cbseportal.Return to the main menu Enter your choice:1 200 Ffare Sfare Date .Return to the main menu Enter your choice:3 Trno Trname of dep Bpt Dest Fs 100 2-3-2009 yercaud exp erode chennai 100 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.Reserve 2.com 126 kurula exp bombay chennai 200 300 300 200 4-3-2009 1.Reserve 2.Enquiry 4.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 200 Ss 123 1.Cancell 3.

..com 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...............Enquiry 4........Senior citizen 3....Children below 5 yrs 4............Wrong train no..........Admin mode 2.... 1...Enter the train no from the data base.......Military 2.......END OF GETTING DETAILS..Return to the main menu Enter your choice:4 ^^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1..... .Downloaded From: http://www..Admin mode 2...... ………………..................Return to the main menu Enter your choice:2 1....User mode 3........Reserve 2.............................ADMINISTRATOR MENU..None 4 ............User mode 3........ ……………………..............Exit ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1..cbseportal............Cancell 3................................................Reserve 2.Exit Enter your choice:1 Enter the admininistrator password:********* ..............

..Return to main menu Enter your choice:5 ...User mode 3...Display details 4..Display passenger details 6..User management 5....Return to main menu Enter your choice:6 ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1.com 1.....Create detail data base 2.... ..Downloaded From: http://www....cbseportal..Display passenger details 6..Exit Enter your choice:3 ............User management 5...Add details 3.......Display details 4.Admin mode 2.. 1......Add details 3..........ADMINISTRATOR MENU.....Create detail data base 2.

Sign up to vote on this title
UsefulNot useful