Java Micro Project
Java Micro Project
Part-A
Micro project proposal
ON
Flight Reservation System
1. Brief Introduction:
“Flight Reservation System” main aim is to provide the online ticket & seat
reservation of National and International Flights and also give us the information
about flight departures. In this JAVA Major project mainly we are going to
concentrate on ticket booking function, this function will take the user inputs like
their requirements (flight name, flight source & destination, Number of seats, Seat
numbers), after entering all of his/her requirements in this application, it can check
at backend & provide us the total information about flights. When we open the first
page of this project we can find the basic information (basic fair & discounts) about
today flight timings.
The main
G.R.W.P.Tasgaon Page 1
Flight Reservation System
4. Literature review:-
4. Proposed methodology:-
a. Search the topic for micro project.
b. Select the topic for micro project.
c. Search for the project.
d. Collect the information about micro project.
e. Study on the topic of micro project.
f. Create proposal of the project.
g. Submit report of the micro project.
G.R.W.P.Tasgaon Page 2
Flight Reservation System
5. Resources required:-
G.R.W.P.Tasgaon Page 3
Flight Reservation System
Report
ON
Flight Reservation System
1. Rationale:-
Travel agents began pushing for a system that could automate
their side of the process by accessing the various Airline Reservation
Systems directly to make reservations .Fearful this would place too
much power in the hands of agents; American Airlines executive
Robert Crandall proposed creating an industry-wide Computer
Reservation System to be a central clearing house for United States
travels; other airlines demurred, citing fear of antitrust prosecution.
G.R.W.P.Tasgaon Page 4
Flight Reservation System
3. Literature Review:-
5. Resources Required-
4 Reference book 03
6. Skill developed:-
Time and resource management:-
Is able to maximum personal efficiency by setting priorities and
effectively schedule activities an allocate resources .
Project tracking:-
Can efficient use tools and methods to track project progress .In
addition these skill are also important listening , problem solving , decision
making , team building and conflict management presentation , organizational
effectiveness , analysis and conceptual thinking.
G.R.W.P.Tasgaon Page 6
Flight Reservation System
G.R.W.P.Tasgaon Page 7
Flight Reservation System
G.R.W.P.Tasgaon Page 8
Flight Reservation System
default:
System.out.println("Enter choise wrong");
}
}
void display()
{
System.out.println("passenger First Name:\t passenger Last Name:\t Mobile: \t
gender: \tPay: \t Register Date: \t Travel Date:");
System.out.println( fname+ "\t\t " +lname+ "\t\t" +mob+ "\t\t"+gender+
"\t\t"+pay+"\t\t"+rd+"-"+rm+"-"+ry+ "\t\t"+td+"-"+tm+"-"+ty);
}
}
class Flight
{
public String c_name,f_name;//This for city name and Flight name
int flight_no;
void getData()
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter city name you want to go:");
c_name=sc.next();
System.out.println("Enter the Flight name:");
f_name=sc.next();
System.out.println("Enter the Flight No:");
flight_no=sc.nextInt();
}
void putData()
{
System.out.println("City name\t Flight name\t Flight N0 ");
System.out.println(c_name+ "\t"+f_name+ "\t"+flight_no);
}
G.R.W.P.Tasgaon Page 9
Flight Reservation System
}
interface Charge
{
int M=2000;//Militray passenger
int Se=3000;//SeniorCitizen
int C=500;//Children
public void Payment();
}
class Admin implements Charge
{
public int pay,S,age;
int rd,rm,ry;
int td,tm,ty;
public void RegisterDate()
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter Register Date:");
rd=sc.nextInt();
rm=sc.nextInt();
ry=sc.nextInt();
}
public void TravelDate()
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter Travel Date:");
td=sc.nextInt();
tm=sc.nextInt();
ty=sc.nextInt();
}
public void Payment()
{
Scanner sc=new Scanner(System.in);
G.R.W.P.Tasgaon Page 10
Flight Reservation System
n=sc.nextInt();
switch(n)
{
case 1:
p.Accept();
break;
case 2:
p.RegisterDate();
break;
case 3:
p.TravelDate();
break;
case 4:
f.getData();
break;
case 5:
p.Payment();
p.display();
break;
case 6:
f.putData();
break;
default:
}
}while(n<=7);
}
}
G.R.W.P.Tasgaon Page 12
Flight Reservation System
In this output java compiler compile java file and create class file using
this steps:
javac file_name.java
java file_name.
2. Registration of Passenger:
G.R.W.P.Tasgaon Page 13
Flight Reservation System
G.R.W.P.Tasgaon Page 14
Flight Reservation System
5. Registration of Flight
G.R.W.P.Tasgaon Page 15
Flight Reservation System
G.R.W.P.Tasgaon Page 16