SlideShare a Scribd company logo
1 of 20
Download to read offline
A Project Report On
“Railway Ticket Reservation”
Submitted By
SHAHBAN ALI
Class: XII Science
Under the Guidance of
Mr. M.K Singh
PGT (Computer Science)
Department of Computer Science
Kendriya Vidyalaya Khagaria.
Department of Computer Science
Kendriya Vidyalaya Khagaria.
C E R T I F I C A T E
This is to certify that SHAHBAN ALI of Class XII Science has
prepared the report on the Project entitled “Railway Ticket
Reservation”. The report is the result of his efforts & endeavors.
The report is found worthy of acceptance as final project report for
the subject Computer Science of Class XII. He has prepared the
report under my guidance.
(Mr. M.K Singh)
PGT (Computer Science)
Department of Computer Science
Kendriya Vidyalaya Khagaria.
Department of Computer Science
Kendriya Vidyalaya Khagaria
C E R T I F I C A T E
The project report entitled
“Railway Ticket Reservation”,
Submitted by SHAHBAN ALI of Class XII Science for the
C.B.S.E Senior Secondary Examination class XII of
Computer Science at Kendriya Vidyalaya Khagaria has
been examined.
SIGNATURE OF EXAMINER
D E C L A R A T I O N
I hereby declare that the project work entitled “Railway
Ticket Reservation”, submitted to Department of
Computer Science, Kendriya Vidyalaya Khagaria is
prepared by me. All the coding are result of my personal
efforts.
SHAHBAN ALI
Class XII Science
A C K N O W L E D G E M E N T
I would like to express a deep sense of thanks & gratitude to my
project guide Mr. M.K Singh Sir for guiding me immensely through
the course of the project. He always evinced keen interest in my work.
His constructive advice & constant motivation have been responsible
for the successful completion of this project.
My sincere thanks goes to Shri Yeshdeep Rohilla, Our principal
sir, for his co-ordination in extending every possible support for the
completion of this project.
I also thanks to my parents for their motivation & support. I
must thanks to my classmates for their timely help & support for
compilation of this project.
Last but not the least; I would like to thank all those who had
helped directly or indirectly towards the completion of this project.
SHAHBAN ALI
Class: XII Science
CONTENTS
1. HEADER FILES USED. . . . . . . . . . . . . . . . .
2. FILES GENERATED. . . . . . . . . . . . . . . . . . .
3. WORKING DESCRIPTION. . . . . . . .. . . . .
4. CODING. . . . . . . . . .. . . . . . . . . . . . . . . . .
5. OUTPUT SCREENS. . . . . . . . . . . . . . . . . . .
6. CONCLUSION. . . . . . . . . . . . . . . . . . . . . .
. . . .
7. BIBLIOGRAPHY. . . . . . . . . . . . . . . . . . . . .
HEADER FILES USED
1. FSTREAM.H – for file handling, cin and cout
2. PROCESS.H – for exit() function
3. CONIO.H – for clrscr() and
getch() function
4. STDIO.H – for standard I/O operations
5. STRING.H – for string handling
6. MATH.H–for doing mathematical operations
FILES GENERATED
DATA FILES
TRAIN.DAT
PROGRAM FILE
RAILWAY TICKET RESERVATION.CPP
OBJECT FILE
TRAIN.OBJ
EXECUTION FILE
TRAIN.EXE
WORKING DESCRIPTION
This program is designed to keep the Railway record.
This program consists of FIVE options as follows
1. TO ADD NEW RAILWAY STATION
2. TO BOOK TICKET
3. TO CHANGE PER KM RATES
4. TO MODIFY DATABASE OF TRAIN
5. TO EXIT
CODING
#include<fstream.h>
#include<conio.h>
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<process.h>
char from[30],to[30];
void detail()
{
cout<<"From"<<endl;
gets(to);
cout<<"To"<<endl;
gets(from);
}
class railways
{
char station[30];
unsigned int
distance; float fare;
public:
void ad_data()
{
cout<<"Enter Railway Station
name"<<endl; gets(station);
cout<<"enter its distance from
Jammu Tawi"<<endl; cin>>distance;
}
void amount(int a,int b,int c)
{
cout<<"total distance="<<fabs((a-b))<<"ncharges
per/km="<<c; fare=fabs((a-b))*c;
cout<<"nticket cost ="<<fare;
}
unsigned int dist()
{
return distance;
}
char* station_v()
{
return station ;
}
void modify()
{
cout<<"nEnter new railway stationn";
gets(station);
cout<<"nenter its distance from
jammu tawin"; cin>>distance;
}
}tr;
void main()
{
clrscr();
unsigned int per_km=5,choice,
d1=0,d2=0,i; char station_searched[30];
while(1)
{
clrscr();
cout<<"ntttWELCOME TO INDIAN RAILWAYSn";
for(i=0;i<80;i++)
{
cout<<"-";
}
cout<<"Enter your choice nt1:->Add new railway
stationnt2:->Book ticket"<<endl;
cout<<"t3:->Change per km ratesnt4:->modify database
of trainnt5:->exitn";
for(i=0;i<80;i++)
{
cout<<"-";
}
cin>>choice;
while(choice==1)
{
ofstream
of1("train.dat",ios::binary|ios::app);
tr.ad_data();
of1.write((char*)&tr,sizeof(tr));
of1.close();
break;
}
while(choice==2)
{
ifstream
of1("train.dat",ios::binary); detail();
while(of1)
{
of1.read((char*)&tr,sizeof(tr));
if(0==stricmp(from,tr.station_v()))
{
d1=tr.dist();
}
if(0==stricmp(to,tr.station_v()))
{
d2=tr.dist();
}
if(d1 && d2)
{
tr.amount(d1,d2,per_km);
getch();
break;
}
if(of1.eof())
{
cout<<"nstations not found check your spellingn";
getch();
}
}
of1.close();
break;
}
if(choice==3)
{
cout<<"Enter new per km
rates"; cin>>per_km;
}
if(choice==4)
{
cout<<"enter the railway station to be changed";
gets(station_searched);
ifstream f1("train.dat",ios::binary);
while(f1 )
{
f1.read((char*)&tr,sizeof(tr));
long pos=f1.tellg();
if(0==strcmp(station_searched,tr.station_v()))
{
f1.seekg((-1*sizeof(tr),ios::cur));
tr.modify();
f1.close();
ofstream f1("train.dat",ios::app);
f1.seekp(pos,ios::beg);
f1.write((char*)&tr,sizeof(tr));
cout<<"record modified";
f1.close();
break;
}
else if(f1.eof())
{
cout<<"nStation not
foundn"; getch();
}
}
}
if(choice==5)
{
cout<<"nTHANK YOU FOR
USING INDIAN RAILWAYS ";
getch();
exit(0);
}
if(choice!=1&&choice!=2&&choice!=3&&cho
ice!=4&&choice!=5)
{
cout<<"entered wrong choice
PROGRAM IS ABORTING!!!!!!"; getch();
exit(0);
}
}
getch();
}
OUTPUT
1. WELCOME SCREEN
2. ADD NEW RAILWAY STATION
3. TO BOOK TICKET
4. TO CHANGE PER KM RATES
5. TO MODIFY DATABASE OF TRAIN
6. TO EXIT
BIBLIOGRAPHY
1 http://www.google.com
2 http://en.wikipedia.org
3 Computer Science with C++ by Sumita Arora
4 Object Oriented Programming by Robert Lafore
5 www.bOtskOOL.com

More Related Content

What's hot

Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)lokesh meena
 
cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project NIKHIL DWIVEDI
 
To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...
To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...
To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...AnkitSharma1903
 
Presence Of Oxalate Ions In Guava
Presence Of Oxalate Ions In Guava Presence Of Oxalate Ions In Guava
Presence Of Oxalate Ions In Guava adharshvg
 
Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)KushShah65
 
TOPIC-To investigate the relation between the ratio of :- 1. Input and outpu...
TOPIC-To investigate the relation between the ratio of :-1. Input and outpu...TOPIC-To investigate the relation between the ratio of :-1. Input and outpu...
TOPIC-To investigate the relation between the ratio of :- 1. Input and outpu...CHMURLIDHAR
 
“To estimate the charge induced on each one of the two identical Styrofoam (o...
“To estimate the charge induced on each one of the two identical Styrofoam (o...“To estimate the charge induced on each one of the two identical Styrofoam (o...
“To estimate the charge induced on each one of the two identical Styrofoam (o...VanshPatil7
 
Physics Investigatory Project Class 12
Physics Investigatory Project Class 12Physics Investigatory Project Class 12
Physics Investigatory Project Class 12Self-employed
 
Physics Practical File - with Readings | Class 12 CBSE
Physics Practical File - with Readings | Class 12 CBSEPhysics Practical File - with Readings | Class 12 CBSE
Physics Practical File - with Readings | Class 12 CBSESaksham Mittal
 
TO STUDY THE QUANTITY OF CASEIN PRESENT IN DIFFERENT SAMPLES OF MILK
TO STUDY THE QUANTITY OF CASEIN PRESENT IN DIFFERENT SAMPLES OF MILKTO STUDY THE QUANTITY OF CASEIN PRESENT IN DIFFERENT SAMPLES OF MILK
TO STUDY THE QUANTITY OF CASEIN PRESENT IN DIFFERENT SAMPLES OF MILKAnkitSharma1903
 
Maths practical file (class 12)
Maths practical file (class 12)Maths practical file (class 12)
Maths practical file (class 12)Anushka Rai
 
12th CBSE Computer Science Project
12th CBSE Computer Science Project12th CBSE Computer Science Project
12th CBSE Computer Science ProjectAshwin Francis
 
Integration and application of integral ,Project file class 12th Maths
Integration and application of integral ,Project file class 12th MathsIntegration and application of integral ,Project file class 12th Maths
Integration and application of integral ,Project file class 12th Mathsnavneet65
 
BOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in PythonBOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in Pythonvikram mahendra
 
English ASL Project Work - The Enemy - The Conflict of Human Emotions
English ASL Project Work - The Enemy - The Conflict of Human EmotionsEnglish ASL Project Work - The Enemy - The Conflict of Human Emotions
English ASL Project Work - The Enemy - The Conflict of Human EmotionsHarlincoln Singh Thandi
 
Study of quantity of caesin present in different samples of milk
Study of quantity of caesin present in different samples of milkStudy of quantity of caesin present in different samples of milk
Study of quantity of caesin present in different samples of milkNeelanjyan Dutta
 
Factors on which the internal resistance/emf of a cell depends
Factors on which the internal resistance/emf of a cell dependsFactors on which the internal resistance/emf of a cell depends
Factors on which the internal resistance/emf of a cell dependsHarsh Solanki
 

What's hot (20)

Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)
 
ASL/ALS CLASS 12 ENGLISH PROJECT
ASL/ALS CLASS 12 ENGLISH PROJECTASL/ALS CLASS 12 ENGLISH PROJECT
ASL/ALS CLASS 12 ENGLISH PROJECT
 
cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project
 
To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...
To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...
To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...
 
Presence Of Oxalate Ions In Guava
Presence Of Oxalate Ions In Guava Presence Of Oxalate Ions In Guava
Presence Of Oxalate Ions In Guava
 
Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)
 
Transformer(Class 12 Investigatory Project)
Transformer(Class 12 Investigatory Project)Transformer(Class 12 Investigatory Project)
Transformer(Class 12 Investigatory Project)
 
My mother at 66
My mother at 66My mother at 66
My mother at 66
 
TOPIC-To investigate the relation between the ratio of :- 1. Input and outpu...
TOPIC-To investigate the relation between the ratio of :-1. Input and outpu...TOPIC-To investigate the relation between the ratio of :-1. Input and outpu...
TOPIC-To investigate the relation between the ratio of :- 1. Input and outpu...
 
“To estimate the charge induced on each one of the two identical Styrofoam (o...
“To estimate the charge induced on each one of the two identical Styrofoam (o...“To estimate the charge induced on each one of the two identical Styrofoam (o...
“To estimate the charge induced on each one of the two identical Styrofoam (o...
 
Physics Investigatory Project Class 12
Physics Investigatory Project Class 12Physics Investigatory Project Class 12
Physics Investigatory Project Class 12
 
Physics Practical File - with Readings | Class 12 CBSE
Physics Practical File - with Readings | Class 12 CBSEPhysics Practical File - with Readings | Class 12 CBSE
Physics Practical File - with Readings | Class 12 CBSE
 
TO STUDY THE QUANTITY OF CASEIN PRESENT IN DIFFERENT SAMPLES OF MILK
TO STUDY THE QUANTITY OF CASEIN PRESENT IN DIFFERENT SAMPLES OF MILKTO STUDY THE QUANTITY OF CASEIN PRESENT IN DIFFERENT SAMPLES OF MILK
TO STUDY THE QUANTITY OF CASEIN PRESENT IN DIFFERENT SAMPLES OF MILK
 
Maths practical file (class 12)
Maths practical file (class 12)Maths practical file (class 12)
Maths practical file (class 12)
 
12th CBSE Computer Science Project
12th CBSE Computer Science Project12th CBSE Computer Science Project
12th CBSE Computer Science Project
 
Integration and application of integral ,Project file class 12th Maths
Integration and application of integral ,Project file class 12th MathsIntegration and application of integral ,Project file class 12th Maths
Integration and application of integral ,Project file class 12th Maths
 
BOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in PythonBOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in Python
 
English ASL Project Work - The Enemy - The Conflict of Human Emotions
English ASL Project Work - The Enemy - The Conflict of Human EmotionsEnglish ASL Project Work - The Enemy - The Conflict of Human Emotions
English ASL Project Work - The Enemy - The Conflict of Human Emotions
 
Study of quantity of caesin present in different samples of milk
Study of quantity of caesin present in different samples of milkStudy of quantity of caesin present in different samples of milk
Study of quantity of caesin present in different samples of milk
 
Factors on which the internal resistance/emf of a cell depends
Factors on which the internal resistance/emf of a cell dependsFactors on which the internal resistance/emf of a cell depends
Factors on which the internal resistance/emf of a cell depends
 

Viewers also liked

cbse 12 computer science IP
cbse 12 computer science IPcbse 12 computer science IP
cbse 12 computer science IPD. j Vicky
 
Contact Management System
Contact Management SystemContact Management System
Contact Management SystemGopal Bhat
 
Petrol station safety
Petrol station safetyPetrol station safety
Petrol station safetyZay Yar Tun
 
Hotel Management In C++
Hotel Management In C++Hotel Management In C++
Hotel Management In C++Amish Mhatre
 
Computer science Investigatory Project Class 12 C++
Computer science Investigatory Project Class 12 C++Computer science Investigatory Project Class 12 C++
Computer science Investigatory Project Class 12 C++Rushil Aggarwal
 
C++ project on police station software
C++ project on police station softwareC++ project on police station software
C++ project on police station softwaredharmenderlodhi021
 
c++ project on restaurant billing
c++ project on restaurant billing c++ project on restaurant billing
c++ project on restaurant billing Swakriti Rathore
 
Tic tac toe c++ project presentation
Tic tac toe c++ project presentationTic tac toe c++ project presentation
Tic tac toe c++ project presentationSaad Symbian
 
Hotel Management system in C++
Hotel Management system in C++ Hotel Management system in C++
Hotel Management system in C++ Prince Kumar
 
Library Management System
Library Management SystemLibrary Management System
Library Management SystemAditya Shah
 
Computer science project work
Computer science project workComputer science project work
Computer science project workrahulchamp2345
 
12th bst project on marketing management
12th bst project on marketing management   12th bst project on marketing management
12th bst project on marketing management Jasmeet Singh
 

Viewers also liked (15)

cbse 12 computer science IP
cbse 12 computer science IPcbse 12 computer science IP
cbse 12 computer science IP
 
Contact Management System
Contact Management SystemContact Management System
Contact Management System
 
Petrol station safety
Petrol station safetyPetrol station safety
Petrol station safety
 
Hotel Management In C++
Hotel Management In C++Hotel Management In C++
Hotel Management In C++
 
Computer science Investigatory Project Class 12 C++
Computer science Investigatory Project Class 12 C++Computer science Investigatory Project Class 12 C++
Computer science Investigatory Project Class 12 C++
 
C++ project on police station software
C++ project on police station softwareC++ project on police station software
C++ project on police station software
 
School Management (c++)
School Management (c++) School Management (c++)
School Management (c++)
 
c++ project on restaurant billing
c++ project on restaurant billing c++ project on restaurant billing
c++ project on restaurant billing
 
Tic tac toe c++ project presentation
Tic tac toe c++ project presentationTic tac toe c++ project presentation
Tic tac toe c++ project presentation
 
Hotel Management system in C++
Hotel Management system in C++ Hotel Management system in C++
Hotel Management system in C++
 
Project report
Project reportProject report
Project report
 
Hotel Management System
Hotel Management SystemHotel Management System
Hotel Management System
 
Library Management System
Library Management SystemLibrary Management System
Library Management System
 
Computer science project work
Computer science project workComputer science project work
Computer science project work
 
12th bst project on marketing management
12th bst project on marketing management   12th bst project on marketing management
12th bst project on marketing management
 

Similar to Railway Ticket Reservation Project Report

The railway ticket service c++ project class 12
The railway ticket service c++ project class 12The railway ticket service c++ project class 12
The railway ticket service c++ project class 12Sandeep Chandel
 
Railway reservation(c++)
Railway reservation(c++)Railway reservation(c++)
Railway reservation(c++)Pusan Sen
 
Report Card making BY Mitul Patel
Report Card making BY Mitul PatelReport Card making BY Mitul Patel
Report Card making BY Mitul PatelMitul Patel
 
C.S. project report on railway ticket reservation
C.S. project report on railway ticket reservationC.S. project report on railway ticket reservation
C.S. project report on railway ticket reservationVirat Prasad
 
Computer science project
Computer science projectComputer science project
Computer science projectSandeep Yadav
 
Integrated approach to sustainable development of indian railway stations t...
Integrated approach to sustainable development of indian railway stations   t...Integrated approach to sustainable development of indian railway stations   t...
Integrated approach to sustainable development of indian railway stations t...satyalaxmi naidu
 
Student portal system application -Project Book
Student portal system application -Project BookStudent portal system application -Project Book
Student portal system application -Project BookS.M. Fazla Rabbi
 
A project on advanced C language
A project on advanced C languageA project on advanced C language
A project on advanced C languagesvrohith 9
 
Minor project Report (1).docx
Minor project Report (1).docxMinor project Report (1).docx
Minor project Report (1).docxSunilShah57
 
toy car survey report
toy car survey reporttoy car survey report
toy car survey reportDIVAKAR SINGH
 
Te computer-syllabus-2015-course-3-4-17
Te computer-syllabus-2015-course-3-4-17Te computer-syllabus-2015-course-3-4-17
Te computer-syllabus-2015-course-3-4-17abc19789
 
ANSYS Fluent - CFD Final year thesis
ANSYS Fluent - CFD Final year thesisANSYS Fluent - CFD Final year thesis
ANSYS Fluent - CFD Final year thesisDibyajyoti Laha
 
Application of industrial engineering techniques in garments production
Application of industrial engineering techniques      in garments productionApplication of industrial engineering techniques      in garments production
Application of industrial engineering techniques in garments productionMd.Abdur Rahim Al Bahar
 

Similar to Railway Ticket Reservation Project Report (20)

The railway ticket service c++ project class 12
The railway ticket service c++ project class 12The railway ticket service c++ project class 12
The railway ticket service c++ project class 12
 
Railway reservation(c++)
Railway reservation(c++)Railway reservation(c++)
Railway reservation(c++)
 
Report Card making BY Mitul Patel
Report Card making BY Mitul PatelReport Card making BY Mitul Patel
Report Card making BY Mitul Patel
 
C.S. project report on railway ticket reservation
C.S. project report on railway ticket reservationC.S. project report on railway ticket reservation
C.S. project report on railway ticket reservation
 
Computer science project
Computer science projectComputer science project
Computer science project
 
Final Report
Final ReportFinal Report
Final Report
 
Integrated approach to sustainable development of indian railway stations t...
Integrated approach to sustainable development of indian railway stations   t...Integrated approach to sustainable development of indian railway stations   t...
Integrated approach to sustainable development of indian railway stations t...
 
Student portal system application -Project Book
Student portal system application -Project BookStudent portal system application -Project Book
Student portal system application -Project Book
 
cv
cvcv
cv
 
B sc. project_proposal_mss
B sc. project_proposal_mssB sc. project_proposal_mss
B sc. project_proposal_mss
 
Opps manual final copy
Opps manual final   copyOpps manual final   copy
Opps manual final copy
 
OOPs manual final copy
OOPs manual final   copyOOPs manual final   copy
OOPs manual final copy
 
A project on advanced C language
A project on advanced C languageA project on advanced C language
A project on advanced C language
 
himani 2
himani 2himani 2
himani 2
 
Minor project Report (1).docx
Minor project Report (1).docxMinor project Report (1).docx
Minor project Report (1).docx
 
toy car survey report
toy car survey reporttoy car survey report
toy car survey report
 
Te computer-syllabus-2015-course-3-4-17
Te computer-syllabus-2015-course-3-4-17Te computer-syllabus-2015-course-3-4-17
Te computer-syllabus-2015-course-3-4-17
 
1227201 Report
1227201 Report1227201 Report
1227201 Report
 
ANSYS Fluent - CFD Final year thesis
ANSYS Fluent - CFD Final year thesisANSYS Fluent - CFD Final year thesis
ANSYS Fluent - CFD Final year thesis
 
Application of industrial engineering techniques in garments production
Application of industrial engineering techniques      in garments productionApplication of industrial engineering techniques      in garments production
Application of industrial engineering techniques in garments production
 

Recently uploaded

A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)Christopher H Felton
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一Fs
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhimiss dipika
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一Fs
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Paul Calvano
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一Fs
 
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Lucknow
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Roomdivyansh0kumar0
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationLinaWolf1
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012rehmti665
 
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130  Available With RoomVIP Kolkata Call Girl Alambazar 👉 8250192130  Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Roomdivyansh0kumar0
 
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With RoomVIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Roomishabajaj13
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Excelmac1
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Dana Luther
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一z xss
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts servicevipmodelshub1
 

Recently uploaded (20)

A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
 
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhi
 
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
 
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
 
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 Documentation
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
 
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130  Available With RoomVIP Kolkata Call Girl Alambazar 👉 8250192130  Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Room
 
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With RoomVIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
 

Railway Ticket Reservation Project Report

  • 1. A Project Report On “Railway Ticket Reservation” Submitted By SHAHBAN ALI Class: XII Science Under the Guidance of Mr. M.K Singh PGT (Computer Science) Department of Computer Science Kendriya Vidyalaya Khagaria.
  • 2. Department of Computer Science Kendriya Vidyalaya Khagaria. C E R T I F I C A T E This is to certify that SHAHBAN ALI of Class XII Science has prepared the report on the Project entitled “Railway Ticket Reservation”. The report is the result of his efforts & endeavors. The report is found worthy of acceptance as final project report for the subject Computer Science of Class XII. He has prepared the report under my guidance. (Mr. M.K Singh) PGT (Computer Science) Department of Computer Science Kendriya Vidyalaya Khagaria.
  • 3. Department of Computer Science Kendriya Vidyalaya Khagaria C E R T I F I C A T E The project report entitled “Railway Ticket Reservation”, Submitted by SHAHBAN ALI of Class XII Science for the C.B.S.E Senior Secondary Examination class XII of Computer Science at Kendriya Vidyalaya Khagaria has been examined. SIGNATURE OF EXAMINER
  • 4. D E C L A R A T I O N I hereby declare that the project work entitled “Railway Ticket Reservation”, submitted to Department of Computer Science, Kendriya Vidyalaya Khagaria is prepared by me. All the coding are result of my personal efforts. SHAHBAN ALI Class XII Science
  • 5. A C K N O W L E D G E M E N T I would like to express a deep sense of thanks & gratitude to my project guide Mr. M.K Singh Sir for guiding me immensely through the course of the project. He always evinced keen interest in my work. His constructive advice & constant motivation have been responsible for the successful completion of this project. My sincere thanks goes to Shri Yeshdeep Rohilla, Our principal sir, for his co-ordination in extending every possible support for the completion of this project. I also thanks to my parents for their motivation & support. I must thanks to my classmates for their timely help & support for compilation of this project. Last but not the least; I would like to thank all those who had helped directly or indirectly towards the completion of this project. SHAHBAN ALI Class: XII Science
  • 6. CONTENTS 1. HEADER FILES USED. . . . . . . . . . . . . . . . . 2. FILES GENERATED. . . . . . . . . . . . . . . . . . . 3. WORKING DESCRIPTION. . . . . . . .. . . . . 4. CODING. . . . . . . . . .. . . . . . . . . . . . . . . . . 5. OUTPUT SCREENS. . . . . . . . . . . . . . . . . . . 6. CONCLUSION. . . . . . . . . . . . . . . . . . . . . . . . . . 7. BIBLIOGRAPHY. . . . . . . . . . . . . . . . . . . . .
  • 7. HEADER FILES USED 1. FSTREAM.H – for file handling, cin and cout 2. PROCESS.H – for exit() function 3. CONIO.H – for clrscr() and getch() function 4. STDIO.H – for standard I/O operations 5. STRING.H – for string handling 6. MATH.H–for doing mathematical operations
  • 8. FILES GENERATED DATA FILES TRAIN.DAT PROGRAM FILE RAILWAY TICKET RESERVATION.CPP OBJECT FILE TRAIN.OBJ EXECUTION FILE TRAIN.EXE
  • 9. WORKING DESCRIPTION This program is designed to keep the Railway record. This program consists of FIVE options as follows 1. TO ADD NEW RAILWAY STATION 2. TO BOOK TICKET 3. TO CHANGE PER KM RATES 4. TO MODIFY DATABASE OF TRAIN 5. TO EXIT
  • 10. CODING #include<fstream.h> #include<conio.h> #include<stdio.h> #include<math.h> #include<string.h> #include<process.h> char from[30],to[30]; void detail() { cout<<"From"<<endl; gets(to); cout<<"To"<<endl; gets(from); } class railways { char station[30]; unsigned int distance; float fare; public: void ad_data() { cout<<"Enter Railway Station name"<<endl; gets(station); cout<<"enter its distance from Jammu Tawi"<<endl; cin>>distance; } void amount(int a,int b,int c)
  • 11. { cout<<"total distance="<<fabs((a-b))<<"ncharges per/km="<<c; fare=fabs((a-b))*c; cout<<"nticket cost ="<<fare; } unsigned int dist() { return distance; } char* station_v() { return station ; } void modify() { cout<<"nEnter new railway stationn"; gets(station); cout<<"nenter its distance from jammu tawin"; cin>>distance; } }tr; void main() { clrscr(); unsigned int per_km=5,choice, d1=0,d2=0,i; char station_searched[30]; while(1) { clrscr(); cout<<"ntttWELCOME TO INDIAN RAILWAYSn"; for(i=0;i<80;i++) { cout<<"-";
  • 12. } cout<<"Enter your choice nt1:->Add new railway stationnt2:->Book ticket"<<endl; cout<<"t3:->Change per km ratesnt4:->modify database of trainnt5:->exitn"; for(i=0;i<80;i++) { cout<<"-"; } cin>>choice; while(choice==1) { ofstream of1("train.dat",ios::binary|ios::app); tr.ad_data(); of1.write((char*)&tr,sizeof(tr)); of1.close(); break; } while(choice==2) { ifstream of1("train.dat",ios::binary); detail(); while(of1) { of1.read((char*)&tr,sizeof(tr)); if(0==stricmp(from,tr.station_v())) { d1=tr.dist(); }
  • 13. if(0==stricmp(to,tr.station_v())) { d2=tr.dist(); } if(d1 && d2) { tr.amount(d1,d2,per_km); getch(); break; } if(of1.eof()) { cout<<"nstations not found check your spellingn"; getch(); } } of1.close(); break; } if(choice==3) { cout<<"Enter new per km rates"; cin>>per_km; } if(choice==4) { cout<<"enter the railway station to be changed"; gets(station_searched); ifstream f1("train.dat",ios::binary); while(f1 )
  • 15. } } } if(choice==5) { cout<<"nTHANK YOU FOR USING INDIAN RAILWAYS "; getch(); exit(0); } if(choice!=1&&choice!=2&&choice!=3&&cho ice!=4&&choice!=5) { cout<<"entered wrong choice PROGRAM IS ABORTING!!!!!!"; getch(); exit(0); } } getch(); }
  • 16. OUTPUT 1. WELCOME SCREEN 2. ADD NEW RAILWAY STATION
  • 17. 3. TO BOOK TICKET 4. TO CHANGE PER KM RATES
  • 18. 5. TO MODIFY DATABASE OF TRAIN
  • 20. BIBLIOGRAPHY 1 http://www.google.com 2 http://en.wikipedia.org 3 Computer Science with C++ by Sumita Arora 4 Object Oriented Programming by Robert Lafore 5 www.bOtskOOL.com