Jeet10b'Scomputer Project
Jeet10b'Scomputer Project
APPLICATION
PROJECT WORK
SESSION: 2023-2024
TOPIC – TRAIN
RESERVATION
SYSTEM
NAME : JEET KUMAR DAWN
CLASS : 10”B”
ROLL NO. : 21
ACKNOWLEDGEMEN
T
I would like to express my special thanks of
gratitude to my teacher “ MR. GAUTAM
GORAI ” as well as our principal “
FR.DR.P.ANTHONY RAJ .S.J ” who gave me
the golden opportunity to do this wonderful
project on the topic “ TRAIN RESERVATION
SYSTEM”, which also helped me in doing a
lot of Research and I came to know about so
many new things I am really thankful to
them.
Secondly I would also like to thank my
parents and friends who helped me a lot in
finalizing this project within the limited time
frame.
JEET KUMAR DAWN
10”B”
21 Page Page 2
CONTENT
S.L NO. TOPICS PAGE NO.
1 Introduction 4
to JAVA
2 Introduction 5
to Topic
3 Coding 6-13
4 Output 14-21
5 Variable 22
Description
6 Conclusion 23-24
7 Bibliography 25
INTRODUCTION TO
TOPIC
Indian Railway reservation system is a
system where a traveler reserves his seat
before travelling. This facility has many
windows and categories , which provides an
ease to passengers. By giving a few details
and some payments , a traveler an choose
among their favorite coaches between
general, sleeper or AC coaches.
Passengers who wish to travel in Indian
railways train must reserve his seat in
advance for all classes of travel except for
general. Unreserved coaches. The railways
CODING OF THE
TRAIN RESERVATION
SYSTEM
import java.util.*;
class train
{
public static void main(String args[])
{
Scanner sc=new Scanner (System.in);
int amont1;
int totamount;
JEET KUMAR DAWN
10”B”
21 Page Page 6
System.out.println("********WELCOME
TO INDIAN RAILWAYS********");
System.out.println("Enter your
name:");
String name=sc.nextLine();
System.out.println("Enter your mobile
number :");
long mobno=sc.nextLong();
System.out.println("Enter the total
number of passenger inclding yourself:");
int tno=sc.nextInt();
System.out.println("Enter the names
of all the passengers and the details to be
needed :");
for(int i=1;i<=tno;i++)
{
2
You have selected 2AC coach.
Additional amount needed is Rs.500.00
Total amount for one person : 1000
JEET KUMAR DAWN
10”B”
21 Page Page 17
Total amount for all the passengers : 1000
For the payment purpose a OTP will be sent
to your registered mobile number
through which you can make the payment .
3
JEET KUMAR DAWN
10”B”
21 Page Page 18
You have selected 3AC coach.
Additional amount needed is Rs.250.00
Total amount for one person : 750
Total amount for all the passengers : 750
For the payment purpose a OTP will be sent
to your registered mobile number
through which you can make the payment .
4
You have selected sleeper coach.
No Additional amount is needed .
Total amount for one person : 500
Total amount for all the passengers : 500
For the payment purpose a OTP will be sent
to your registered mobile number
through which you can make the payment .
VARIABLE
DESCRIPTION
JEET KUMAR DAWN
10”B”
21 Page Page 21
DATA VARIAB DESCRIPTION
TYPE LE
String For storing the name
Name
long mob For storing the mobile
number
int tno For storing the total no. of
passengers
int i For conducting loop
String name1 For storing the name of
the passengers
int age For storing the age
String Destinati For storing the
on destination
int seatamt For storing the amount of
one seat
int op For storing the no. of
option
int amont1 For storing the amount
and option
int totamou For storing the total
nt amount
int pin For storing the pin
JEET KUMAR DAWN
10”B”
21 Page Page 22
CONCLUSION
Java is a popular programming language,
created in 1995. It is owned by Oracle, and more
than 3 billion devices run Java. It is used for:
Mobile applications (specially Android apps)
Desktop applications.
Java is a multi-platform, object-oriented, and
network-centric language that can be used as
a platform in itself. It is a fast, secure, reliable
programming language for coding everything from
mobile apps and enterprise software to big data
applications and server-side technologies.
Developers use Java to construct applications
in laptops, data centres, game consoles,
scientific supercomputers, cell phones, and
other devices. Java is the world's third most