You are on page 1of 8

Shri Chatrapati Shivaji Shikshan Sanstha

Indira Gandhi Poly.Belwandi (su)

Maharashtra State Board of Technical Education

Mumbai(M.S)

SUBJECT:JPR (22412)

PROJECT REPORT ON:

Railway Reservation Managment System

Submitted by:\
RAYKAR S.A RAYKAR S.R

(1900330051) (1900330052)
KUTAL P.A LABADE P.A
(2000330078) (2000330067)

Instructed by: H.O.D : Principal:

Prof. Ithape.P.S Prof. Sayyed J.I Prof.Bhoite P.D.


1
************ ACKNOWLEDGEMENT ***********

It is indeed a matter of great pleasure & privilege to be able to


present this project on “DEVELOP ‘A’ “ Railway Reservation
Managment System under the valuable guidance of Mrs.Ithape.P.S
lecturer, department of computer engineering, for her valuable
guidance, advice and constant aspiration to our work.
Also here we would like to thank our honorable
Principle Mr.Bhoite.P.D Who made all of facilities available for
our collage premises. I am also thankful for our head of
department Mrs. Sayyed J.I and all of my teachers.

2
INTRODUCTION To Java:-

Java is a programming language created by James Gosling from Sun Microsystems


(Sun) in 1991. The target of Java is to write a program once and then run this
program on multiple operating systems. The first publicly available version of Java
(Java 1.0) was released in 1995. Sun Microsystems was acquired by the Oracle
Corporation in 2010. Oracle has now the steermanship for Java. In 2006 Sun started
to make Java available under the GNU General Public License (GPL). Oracle
continues this project called OpenJDK.

Over time new enhanced versions of Java have been released. The current version
of Java is Java 16 which is also known as Java 16.

Java is defined by a specification and consists of a programming language, a


compiler, core libraries and a runtime (Java virtual machine) The Java runtime
allows software developers to write program code in other languages than the Java
programming language which still runs on the Java virtual machine. The Java
platform is usually associated with the Java virtual machine and the Java core
libraries.

Hello world Java program


// a small Java program
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello World");
}
}

3
About Project:

The project Railway Reservation Management System is to develop


an Internet based sale and purchase system for Railway. As Railway
market is increasing very sharply and will increase with boom in near
future. Visualizing the huge opportunity this is an effort to
internationalize the business through Internet. By developing of this
portal and keeping the site searchable on Google henc e increasing
the Passenger base from a local market to all around the globe.

1. Railway Ticket Administration

It provides the user to maintain the Railway Phone Details Like

1. Add a new destiny


2. Search for a railway
3. Save the information
4. Delete a wrong information

2. Passenger Administration

It provides the user to maintain the Passenger Details Like

1. Add a New Passenger


2. Search for a Passenger
3. Update a Passenger Details
4. Delete a Passenger r

3. Bill Administration

It provides the user to maintain the Bill Details Like

1. Generate a Bill
2. Search for a Bill

4
Source Code For Java

import java.util.*;
class Passenger
{
int mob_no;
String name,email;
void get_pass_details()
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter Passenger Railway No");
mob_no=sc.nextInt();
System.out.println("Enter Passenger Name");
name=sc.next();
System.out.println("Enter Passenger Email");
email=sc.next();
}
void disp_cust_details()
{
System.out.println("Passenger Railway No"+mob_no);
System.out.println("Passenger Name"+name);
System.out.println("Passenger Email "+email);
}
}
class Railway extends Passenger
{
5
int reg_no;
String name;
void get_Railway_details()
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter registration Number for
Passenger");
reg_no=sc.nextInt();
System.out.println("Enter Railway Name");
name=sc.next();
}
void disp_Railway_details()
{
System.out.println("Registration Number for
Passenger"+reg_no);
System.out.println("Railway Name"+name);
}
class Railway extends Passenger
{
int Railway_no,bill_payment;
String Railway_name;

void get_Railway_details()
{
Scanner sc=new Scanner(System.in);
System.out.println(" Enter Railway Name for
Passenger");
6
Railway_name=sc.next();
System.out.println(" Enter Brand no of Railway");
Railway_no=sc.nextInt();
System.out.println(" Enter Bill_payment of Railway");
bill_payment=sc.nextInt();
}
void disp_Railway_details()
{
System.out.println("Railway Name for
Passenger"+Railway_name);
System.out.println("Brand No of
Railway"+Railway_no);
System.out.println("Bill_payment of
Railway"+bill_payment);
}
}
class Railwaybill
{
public static void main(String args[])
{
Railway s1=new Railway();
Railway m1=new Railway();
System.out.println("*****************Railway
Railway Managment*******************");
System.out.println("*****************Passenger
Information*******************");
s1.get_pass_details();
7
s1.get_Railway_details();
s1.disp_pass_details();
s1.disp_Railway_details();
System.out.println("*****************Railway
Information*********************");
m1.get_pass_details();
m1.get_Railway_details();
m1.disp_pass_details();
m1.disp_Railway_details();
}
}

Output Of Programme

You might also like