Submitted By:-Vikas Kr. Soni XII Commerce Roll No
Submitted By:-Vikas Kr. Soni XII Commerce Roll No
Submitted By:-Vikas Kr. Soni XII Commerce Roll No
1
A.V.B. Public School
CERTIFICATE
Mentor’s Name:-
Mrs. Kavita
2
ACKNOWLEDGEMENT
3
INTRODUCTION
Problem Statement :-
Goals Achieved :-
4
TABLE OF CONTENT
2. Project Coding 6
3. Project Output 19
4. Bibliography 39
5
6
#include<stdio.h>
#include<string.h>
#include<dos.h>
#include<fstream.h>
#include<conio.h>
#include<stdlib.h>
void mains();
void t_no();
void time();
void book();
void show(int);
void search(int);
void modify(int);
int cancel(int);
ofstream fout("book.bin",ios::trunc|ios::binary);
int n=0;
class book_ticket
{
int ch,ans,trn,age;
long amt,pnr;
char name[22],s,gen,cat[5];
public:
void getdata();
void putdata();
void modify();
long getpnr()
{
return pnr;
}
}bt;
void book_ticket::getdata()
{
cout<<"\n\n\n\tEnter your Name : ";
gets(name);
do
{
cout<<"\n\n\tAge : ";
cin>>age;
}while(age>100);
if(age<=17)
strcpy(cat,"Minor");
else if(age<=60)
strcpy(cat,"Adult");
else if(age>=61)
7
strcpy(cat,"SnCtn");
do
{
cout<<"\n\n\tSex(M/F) : ";
cin>>gen;
}while(gen!='m'&&gen!='f'&&gen!='M'&&gen!='F');
cout<<"\n\n\tAmount Paid : ";
cin>>amt;
cout<<"\n\n\tPNR number : ";
cin>>pnr;
cout<<"\n\n\n";
cout<<"\t____________________________________________________\n";
cout<<"\t| Ticket |\n";
cout<<"\t| |\n";
cout<<"\t| NAME SEX AGE |\n";
cout<<"\t| "<<name<<"\t "<<gen<<" \t " <<age<<" \t "<<cat<<" \t |\n";
cout<<"\t| |\n";
cout<<"\t| AMOUNT : "<<amt<<"\t\t\t\t |\n";
cout<<"\t| PNR-NUMBER : "<<pnr<<"\t\t\t\t |\n";
cout<<"\t| |\n";
cout<<"\t----------------------------------------------------\n";
cout<<"\n\n\tThanks for using VRRC.";
cout<<"\n\n\tPress any key to go to MAIN MENU..!!";
}
void book_ticket::putdata()
{
cout<<"\n\tNAME : "<<name;
cout<<"\n\tAGE : "<<age;
cout<<"\n\tCATEGORY : "<<cat;
cout<<"\n\tSEX : "<<gen;
cout<<"\n\tPNR-NUMBER : "<<pnr;
cout<<"\n\tAMOUNT PAID : "<<amt;
}
void book_ticket::modify()
{
cout<<"\n\n\tEntered Name :\t"<<name;
cout<<"\n\tEntered Age :\t"<<age;
cout<<"\n\tEntered Sex :\t"<<gen;
cout<<"\n\tCategory :\t"<<cat;
cout<<"\n\tEntered PNR-number :\t"<<pnr;
cout<<"\n\tEntered Amount Paid :\t"<<amt;
cout<<"\n\n\n\tEnter New Details...!!";
cout<<"\n\n\tName : ";
gets(name);
do
{
cout<<"\tAge : ";
cin>>age;
}while(age>100);
if(age<=17)
8
strcpy(cat,"Minor");
else if(age<=60)
strcpy(cat,"Adult");
else if(age>=61)
strcpy(cat,"SnCtn");
do
{
cout<<"\tSex(M/F) : ";
cin>>gen;
}while(gen!='m'&&gen!='f'&&gen!='M'&&gen!='F');
cout<<"\tAmount Paid : ";
cin>>amt;
cout<<"\tPNR number : ";
cin>>pnr;
cout<<"\n\n\tYour details are Successfully modified.";
cout<<"\n\n\tPress any key to go to MAIN MENU..!!";
}
void main()
{
clrscr();
mains();
int ch1;
do
{
clrscr();
cout<<"\n\n\n\n\t\t-*-*-*-*-*-*-*-Main Menu-*-*-*-*-*-*-*-*-\n\n";
for(int m=50;m>=21;m--)
{
delay(80);
gotoxy(m,8); cout<<"1.To See Train Number ";
gotoxy(m,10);cout<<"2.To See Timings & Fares of Trains ";
gotoxy(m,12);cout<<"3.To Book your Ticket ";
gotoxy(m,14);cout<<"4.To Show the Booked Ticket ";
gotoxy(m,16);cout<<"5.To Search previously booked tickets ";
gotoxy(m,18);cout<<"6.To Modify details ";
gotoxy(m,20);cout<<"7.Cancellation ";
gotoxy(m,22);cout<<"8.Exit ";
}
cout<<"\n\n\t\t-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-\n\n";
cout<<"\t\tEnter your choice : ";
cin>>ch1;
switch(ch1)
{ case 1:t_no();
break;
case 2:time();
break;
case 3:{book();
++n;}
break;
case 4:show(n);
9
break;
case 5:search(n);
break;
case 6:modify(n);
break;
case 7:int m;
m=cancel(n);
n=m;
break;
case 8:cout<<"\n\n\n\t\tExiting";delay(500);cout<<".";
delay(500);cout<<".";delay(500);cout<<".";delay(500);exit(0);
default:cout<<"\n\n\t\tWrong choice!!";
cout<<"\n\t\tEnter Again";
delay(1000);
}
}while(ch1>=1&&ch1<=8);
}
void mains()
{
cout<<"\n";
cout<<"-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-";
for(int x=40;x>=4;x--)
{
delay(110);
gotoxy(x,5);cout<<"W W EEEEE L CCCC OOO M M EEEEE ";
gotoxy(x,6);cout<<" W W E L C O O MM MM E ";
gotoxy(x,7);cout<<" W W W EEEE L C O O M M M EEEE ";
gotoxy(x,8);cout<<" W W W E L C O OM ME ";
gotoxy(x,9);cout<<" W W EEEEE LLLLL CCCC OOO M M EEEEE ";
}
for(int Q=50;Q>=14;Q--)
{
delay(110);
gotoxy(Q,13);cout<<"TTTTT OOO ";
gotoxy(Q,14);cout<<" T O O ";
gotoxy(Q,15);cout<<" T O O ";
gotoxy(Q,16);cout<<" T O O ";
gotoxy(Q,17);cout<<" T OOO ";
}
for(int W=40;W>=24;W--)
{
delay(110);
gotoxy(W,21);cout<<"RRR A IIIII L W W A Y Y ";
gotoxy(W,22);cout<<"R R A A I L W W A A Y Y ";
gotoxy(W,23);cout<<"RRR A A I L W W W A A Y ";
gotoxy(W,24);cout<<"R R AAAAA I L W W W W AAAAA Y ";
gotoxy(W,25);cout<<"R R A A IIIII LLLLL W W A A Y ";
}
for(int E=35;E>=4;E--)
{
10
delay(110);
gotoxy(E,29);cout<<"RRR EEEEE SSSS EEEEE RRR V V A TTTTT IIIII OOO N N ";
gotoxy(E,30);cout<<"R R E S E R R V V AA T I O O NN N ";
gotoxy(E,31);cout<<"RRR EEEE SSS EEEE RRR V V A A T I O O N N N ";
gotoxy(E,32);cout<<"R R E S E R R V V AAAA T I O O N NN ";
gotoxy(E,33);cout<<"R R EEEEE SSSS EEEEE R R V A A T IIIII OOO N N ";
}
cout<<"\n\n\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-\n\n\n\n";
delay(1600);
cout<<"\t\t\tLOADING .";delay(400);cout<<".";delay(400);cout<<".";
delay(400);cout<<".";delay(400);cout<<".";
clrscr();
cout<<" / / / / / /\n";
cout<<" / / / /AMRITSAR / 0 \n";
cout<<" / / / / JAIPUR / 0 \n";
cout<<" / / 0 /SHATABDI / / \n";
cout<<" / / 0 /_________/ / \n";
cout<<" / / / | | 0 \n";
cout<<" / / / | * * | 0 \n";
cout<<" / / / | * | / \n";
cout<<" / / 0 | *** |/ \n";
cout<<" / / 0 |________|/ \n";
cout<<" / / / 00 00 \n";
cout<<" / / / \n";
cout<<" / MUMBAI / 0 \n";
cout<<" / GOA / 0 \n";
cout<<" / EXPRESS / / \n";
cout<<" /_________/ / \n";
cout<<" | | 0 \n";
cout<<" | * * | 0 \n";
cout<<" | * | / \n";
cout<<" | *** |/ \n";
cout<<" |________|/ \n";
cout<<" 00 00 \n";
cout<<"\n\n-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-\n\n\n\n";
char name[22];
delay(600);
cout<<"\tPLEASE ENTER YOUR NAME TO CONTINUE\n\n";
cout<<"\t\tNAME : ";
gets(name);
delay(400);
cout<<"\n\n\tLOADING .";delay(400);cout<<".";delay(400);cout<<".";
delay(400);cout<<".";delay(400);cout<<".";delay(400);cout<<".";
clrscr();
cout<<"\n\n\n\n\n\n\n\n\tHi ,"<<name;
cout<<" Welcome to the VIRTUAL RAILWAY RESERVATION COUNTER(VRRC)\n\n\n";
cout<<"\tVRRC takes away all the hassle of going from agents to agents.";
cout<<"\n\tHere you can browse and book your tickets very quickly.";
cout<<"\n\n\t\t\tPress any key to begin...";
getch();
11
}
void t_no()
{
clrscr();
cout<<"\n\n\t\t\tProcessing"; delay(500);
cout<<"."; delay(500);
cout<<"."; delay(500);
cout<<"."; delay(500);
cout<<"\n\n\n\tAccording to the schedule of 2009 Train Numbers are:";
cout<<"\n\n\n\n\t1.Delhi-Mumbai Rajdhani";
for(int n=65;n>=43;n--)
{
delay(80);
gotoxy(n,10);cout<<"1122 ";
}
cout<<"\n\n\t2.Delhi-kolkata Garibrath";
for(int b=65;b>=43;b--)
{
delay(80);
gotoxy(b,12);cout<<"1133 ";
}
cout<<"\n\n\t3.Delhi-Chennai Rajdhani";
for(int v=65;v>=43;v--)
{
delay(80);
gotoxy(v,14);cout<<"1144 ";
}
cout<<"\n\n\t4.Delhi-Goa Express";
for(int c=65;c>=43;c--)
{
delay(80);
gotoxy(c,16);cout<<"1155 ";
}
cout<<"\n\n\t5.Delhi-Patna Shatabdi";
for(int z=65;z>=43;z--)
{
delay(80);
gotoxy(z,18);cout<<"1166 ";
}
cout<<"\n\n\t6.Mumbai-Kolkata Garibrath";
for(int l=65;l>=43;l--)
{
delay(80);
gotoxy(l,20);cout<<"2233 ";
}
cout<<"\n\n\t7.Mumbai-Chennai Rajdhani";
for(int k=65;k>=43;k--)
{
delay(80);
gotoxy(k,22);cout<<"2244 ";
12
}
cout<<"\n\n\t8.Mumbai-Goa Express";
for(int j=65;j>=43;j--)
{
delay(80);
gotoxy(j,24);cout<<"2255 ";
}
cout<<"\n\n\t9.Amritsar-Jaipur Shatabdi";
for(int h=65;h>=43;h--)
{
delay(80);
gotoxy(h,26);cout<<"7788 ";
}
cout<<"\n\n\t10. Gandhi Nagar-Pune Rajdhani";
for(int g=65;g>=43;g--)
{
delay(80);
gotoxy(g,28);cout<<"9900 ";
}
cout<<"\n\n\tPress any key to go to MAIN MENU..!!";
getch();
}
void time()
{
clrscr();
int ch2;
cout<<"\n\n\n\n";
cout<<"\t\t-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-\n\n";
cout<<"\t\t The available trains are:-\n\n";
for(int f=60;f>=21;f--)
{
delay(80);
gotoxy(f,9); cout<<"1.Delhi-Mumbai Rajdhani ";
gotoxy(f,11);cout<<"2.Delhi-kolkata Garibrath ";
gotoxy(f,13);cout<<"3.Delhi-Chennai Rajdhani ";
gotoxy(f,15);cout<<"4.Delhi-Goa Express ";
gotoxy(f,17);cout<<"5.Delhi-Patna Shatabdi ";
gotoxy(f,19);cout<<"6.Mumbai-Kolkata Garibrath ";
gotoxy(f,21);cout<<"7.Mumbai-Chennai Rajdhani ";
gotoxy(f,23);cout<<"8.Mumbai-Goa Express ";
gotoxy(f,25);cout<<"9.Amritsar-Jaipur Shatabdi ";
gotoxy(f,27);cout<<"10.Gandhi Nagar-Pune Rajdhani ";
}
cout<<"\n\n\t\t-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-\n\n";
cout<<"\n\n\t\tChoose train to see information:";
cin>>ch2;
switch(ch2)
{
case 1:cout<<"\n\n\n";
cout<<"\t\tTimings : 12:00 - Delhi to Mumbai\n";
13
cout<<"\t\t : 6:00 - Mumbai to Delhi\n\n";
cout<<"\t\t Fares : First Class - Rs 3000\n";
cout<<"\t\t : Sleeper - Rs 2700\n";
break;
case 2:cout<<"\n\n\n";
cout<<"\t\tTimings : 12:30 - Delhi to Kolkata\n";
cout<<"\t\t : 5:30 - Kolkata to Delhi\n\n";
cout<<"\t\t Fares : First Class - Rs 2650\n";
cout<<"\t\t : Chair Car - Rs 1900\n";
break;
case 3:cout<<"\n\n\n";
cout<<"\t\tTimings : 13:00 - Delhi to Chennai\n";
cout<<"\t\t : 5:00 - Chennai to Delhi\n\n";
cout<<"\t\t Fares : First Class - Rs 2700\n";
cout<<"\t\t : Sleeper - Rs 2150\n";
break;
case 4:cout<<"\n\n\n";
cout<<"\t\tTimings : 14:00 - Delhi to Goa\n";
cout<<"\t\t : 22:00 - Goa to Delhi\n\n";
cout<<"\t\t Fares : First Class - Rs 2200\n";
cout<<"\t\t : Sleeper - Rs 1700\n";
break;
case 5:cout<<"\n\n\n";
cout<<"\t\tTimings : 14:30 - Delhi to Patna\n";
cout<<"\t\t : 21:30 - Patna to Delhi\n\n";
cout<<"\t\t Fares : First Class - Rs 1750\n";
cout<<"\t\t : Chair Car - Rs 1200\n";
break;
case 6:cout<<"\n\n\n";
cout<<"\t\tTimings : 15:00 - Kolkata to Mumbai\n";
cout<<"\t\t : 21:00 - Mumbai to Kolkata\n\n";
cout<<"\t\t Fares : First Class - Rs 1900\n";
cout<<"\t\t : Chair Car - Rs 1650\n";
break;
case 7:cout<<"\n\n\n";
cout<<"\t\tTimings : 15:30 - Chennai to Mumbai\n";
cout<<"\t\t : 20:30 - Mumbai to Chennai\n\n";
cout<<"\t\t Fares : First Class - Rs 2900\n";
cout<<"\t\t : Sleeper - Rs 2400\n";
break;
case 8:cout<<"\n\n\n";
cout<<"\t\tTimings : 10:00 - Goa to Mumbai\n";
cout<<"\t\t : 6:00 - Mumbai to Goa\n\n";
cout<<"\t\t Fares : First Class - Rs 1250\n";
cout<<"\t\t : Sleeper - Rs 750\n";
break;
case 9:cout<<"\n\n\n";
cout<<"\t\tTimings : 10:00 - Amritsar to Jaipur\n";
cout<<"\t\t : 17:00 - Jaipur to Amritsar\n\n";
cout<<"\t\t Fares : First Class - Rs 1000\n";
14
cout<<"\t\t : Chair Car - Rs 650\n";
break;
case 10:cout<<"\n\n\n";
cout<<"\t\tTimings : 11:00 - Gandhi Nagar to Pune\n";
cout<<"\t\t : 17:30 - Pune to Gandhi Nagar\n\n";
cout<<"\t\t Fares : First Class - Rs 1300\n";
cout<<"\t\t : Sleeper - Rs 750\n";
break;
default:
cout<<"\n\n\t\tWrong Choice!!";
delay(1000);
break;
}
cout<<"\n\n\tPress any key to go to MAIN MENU..!!";
getch();
}
void book()
{
clrscr();
ofstream fout;
fout.open("book.bin",ios::in|ios::app|ios::binary);
bt.getdata();
fout.write((char*)&bt,sizeof(bt));
getch();
fout.close();
}
void show(int m)
{
clrscr();
ifstream fin("book.bin",ios::binary);
fin.seekg(0);
if(m==0)
{
cout<<"\n\n\n\n\t\tNo ticket is reserved yet.";
cout<<"\n\n\t\tPress any key to go to MAIN MENU..!!";
}
else
{
cout<<"\t\tBooking Satatus :-";
for(int i=0;i<m;i++)
{
cout<<"\n\n";
fin.read((char*)&bt,sizeof(bt));
bt.putdata();
}
cout<<"\n\n\tPress any key to go to MAIN MENU..!!";
}
fin.close();
getch();
}
15
void search(int m)
{
int x=m;
clrscr();
long pn;
char found='n';
ifstream fin("book.bin",ios::in|ios::binary);
cout<<"\n\n\nEnter the PNR-number of the passenger to be searched:";
cin>>pn;
for(int i=0;i<x;i++)
{
fin.read((char*)&bt,sizeof(bt));
if(bt.getpnr()==pn)
{
bt.putdata();
found='y';
break;
}
}
if(found=='n')
{
cout<<"\n\n\tPassenger not found on the list..!!";
}
cout<<"\n\n\tPress any key to go to MAIN MENU..!!";
fin.close();
getch();
}
void modify(int m)
{
clrscr();
int x=m;
fstream finout("book.bin",ios::in|ios::out|ios::binary);
long pn,pos;
char found='f';
cout<<"\n\n\tEnter the PNR-number of the ticket to be modified : ";
cin>>pn;
for(int i=0;i<x;i++)
{
pos=finout.tellg();
finout.read((char*)&bt,sizeof(bt));
if(bt.getpnr()==pn)
{
bt.modify();
finout.seekg(pos);
finout.write((char*)&bt,sizeof(bt));
found='t';
break;
}
}
if(found=='f')
16
cout<<"\n\n\tPassenger not found on the list..!!";
finout.close();
ifstream fin("book.bin",ios::binary);
if(x==0)
{
cout<<"\n\n\tThere is no ticket to be modified..!!";
cout<<"\n\n\tPress any key to go to MAIN MENU..!!";
}
getch();
}
int cancel(int m)
{
clrscr();
int x=m;
book_ticket bti;
ifstream fin("book.bin",ios::in|ios::binary);
ofstream fout("temp.bin",ios::out|ios::binary);
long pn;
char found='f',confirm='n';
cout<<"\n\n\tEnter the PNR-number of the ticket to be cancelled : ";
cin>>pn;
for(int i=0;i<x;i++)
{
fin.read((char*)&bt,sizeof(bt));
if(bt.getpnr()==pn)
{
bt.putdata();
found='t';
cout<<"\n\n\n\t\tAre You Sure(Y/N):";
cin>>confirm;
if(confirm=='n'||confirm=='N')
break;
}
else
fout.write((char*)&bt,sizeof(bt));
}
if(found=='f')
{
cout<<"\n\n\tPassenger not found on the list..!!";
cout<<"\n\n\tPress any key to go to MAIN MENU..!!";
}
else
{
fin.close();
fout.close();
remove("book.bin");
rename("temp.bin","book.bin");
fin.open("book.bin",ios::in|ios::binary);
if(confirm=='y'||confirm=='Y')
x=x-1;
17
if(x!=0)
{
cout<<"\n\nNow the reserved tickets are..!!";
for(int j=0;j<x;j++)
{
fin.read((char*)&bti,sizeof(bti));
bti.putdata();
if(fin.eof())
break;
}
}
cout<<"\n\n\tYour ticket is succesfully cancelled.";
cout<<"\n\n\tPress any key to go to MAIN MENU..!!";
fin.close();
}
getch();
return x;
}
18
19
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
TTTTT OOO
T O O
T O O
T O O
T OOO
RRR A IIIII L W W A Y Y
R R A A I L W W AA Y Y
RRR A A I L W W W A A Y
R R AAAA I L W W W W AAAAA Y
R RA A IIIII LLLLL W W A A Y
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
LOADING ....
20
/ / / / / /
/ / / /AMRITSAR / 0
/ / / / JAIPUR / 0
/ / 0 /SHATABDI / /
/ / 0 /__________/ /
/ / / | | 0
/ / / | * * | 0
/ / / | * | /
/ / 0 | *** |/
/ / 0 |_________|/
/ / / 00 00
/ / /
/ MUMBAI / 0
/ GOA / 0
/ EXPRESS / /
/________ _/ /
| | 0
| * * | 0
| * | /
| *** |/
|_________|/
00 00
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
LOADING….
21
Hi ,Vikas Kr. Soni Welcome to the VIRTUAL RAILWAY RESERVATION
COUNTER(VRRC)
VRRC takes away all the hassle of going from agents to agents.
Here you can browse and book your tickets very quickly.
22
-*-*-*-*-*-*-*-Main Menu-*-*-*-*-*-*-*-*-
7.Cancellation
8.Exit
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
23
Processing...
24
-*-*-*-*-*-*-*-Main Menu-*-*-*-*-*-*-*-*-
7.Cancellation
8.Exit
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
25
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
1.Delhi-Mumbai Rajdhani
2.Delhi-kolkata Garibrath
3.Delhi-Chennai Rajdhani
4.Delhi-Goa Express
5.Delhi-Patna Shatabdi
6.Mumbai-Kolkata Garibrath
7.Mumbai-Chennai Rajdhani
8.Mumbai-Goa Express
9.Amritsar-Jaipur Shatabdi
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
26
-*-*-*-*-*-*-*-Main Menu-*-*-*-*-*-*-*-*-
7.Cancellation
8.Exit
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
27
Enter your Name : VIKAS
Age : 18
Sex(M/F) : M
____________________________________________________
| Ticket |
| |
| NAME SEX AGE |
| VIKAS M 18 Adult |
| |
| AMOUNT : 2700 |
| PNR-NUMBER : 1234 |
|___________________________________________________|
28
Enter your Name : JAI
Age : 25
Sex(M/F) : M
____________________________________________________
| Ticket |
| |
| NAME SEX AGE |
| JAI M 25 Adult |
| |
| AMOUNT : 2700 |
| PNR-NUMBER : 1235 |
|___________________________________________________|
29
-*-*-*-*-*-*-*-Main Menu-*-*-*-*-*-*-*-*-
7.Cancellation
8.Exit
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
30
Booking Satatus :-
NAME : VIKAS
AGE : 18
CATEGORY : Adult
SEX : M
PNR-NUMBER : 1234
AMOUNT PAID : 2700
NAME : JAI
AGE : 25
CATEGORY : Adult
SEX : M
PNR-NUMBER : 1235
AMOUNT PAID : 2700
31
-*-*-*-*-*-*-*-Main Menu-*-*-*-*-*-*-*-*-
7.Cancellation
8.Exit
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
32
Enter the PNR-number of the passenger to be searched:1234
NAME : VIKAS
AGE : 18
CATEGORY : Adult
SEX : M
PNR-NUMBER : 1234
AMOUNT PAID : 2200
33
*-*-*-*-*-*-Main Menu-*-*-*-*-*-*-*-*-
7.Cancellation
8.Exit
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
34
Enter the PNR-number of the ticket to be modified : 1234
Name : AYUSH
Age : 17
Sex(M/F) : M
Amount Paid : 3000
PNR number : 9876
35
-*-*-*-*-*-*-*-Main Menu-*-*-*-*-*-*-*-*-
7.Cancellation
8.Exit
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
36
Enter the PNR-number of the ticket to be cancelled : 9876
NAME : AYUSH
AGE : 17
CATEGORY : Minor
SEX : M
PNR-NUMBER : 9876
AMOUNT PAID : 3000
37
-*-*-*-*-*-*-*-Main Menu-*-*-*-*-*-*-*-*-
7.Cancellation
8.Exit
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Exiting…..
38
BIBLIOGRAPHY
- www.indianrail.gov.in
- Computer Science Textbook for class XII - Sumita Arora
- OOP in Turbo C++ - Robert Lafore
39