You are on page 1of 17

SIMPLE AIRLINE BOOKING

SYSTEM
Mini Project report submitted at the end of the sixth semester

BACHELOR OF TECHNOLOGY
IN
COMPUTER SCIENCE AND ENGINEERING
By
P.GOWTHAMI S.MASTAN VALI
(Regd No: 19981A05D3) (Regd No: 19981A05F0)

S.SREE HARSHA UMMADI DASU


(Regd No: 19981A05F8) (Regd No: 20985A0521)

Under the esteemed guidance


of

Mr. CH. SESHADRI RAO

Associate Professor

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


RAGHU ENGINEERING COLLEGE
(Autonomous)
Accredited by NAAC and NBA, Affiliated to JNTU-Kakinada
Dakamarri (V), Bheemunipatnam (M),
Visakhapatnam – 531162
2021-2022

1|P age
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
RAGHU ENGINEERING COLLEGE
(Autonomous)

Accredited by NAAC and NBA, Affiliated to JNTU-Kakinada


Dakamarri (V), Bheemunipatnam (M),
Visakhapatnam

CERTIFICATE

This is to certify that this project entitled “SIMPLE AIRLINE BOOKING SYSTEM ” done
by POTRAKANDI GOWTHAMI, SHAIK MASTANVALI, SURUPALLI
SREEHARSHA, UMMADI DASU bearing Regd. No: 1998A05D3, 19981A05F0,
19981A05F8, 20985A0521 the academic year 2021-2022 in partial fulfillment of the
requirements for the completion of 3rd year 2nd semester of Bachelor of Technology in
Computer Science And Engineering under the supervision of Mr. CH. SESHADRI
RAO, CSE.

Internal Guide Head of the Department


Mr. CH. SESHADRI RAO, Mr. S. SRINADH RAJU,
Department of CSE, Department of CSE,
Raghu Engineering College. Raghu Engineering College

EXTERNAL EXAMINER

2|P age
DECLARATION

This is to certify that this project titled “SIMPLE AIRLINE BOOKING

SYSTEM” is bonafide work done by us, in partial fulfilment of the requirements

for the completion of Mini Project in sixth semester of the degree B.Tech and

submitted to the Department of Computer Science & Engineering, Raghu

Engineering College, Dakamarri.

We also declare that this project is a result of ourown effort and that has

not been copied from anyone and we have taken only citations from the sources

which are mentioned in the references.

POTRAKANDI GOWTHAMI SHAIK MASTANVALI

SURUPALLI SREE HARSHA UMMADI DASU

PLACE: REC, Visakhapatnam DATE:

3|P age
TABLE OF CONTENTS

S.NO CONTENT PAGE NUMBER

1 Project statement 5

2 Project description 6

3 Concepts used 7-8

4 Source code 9-14

5 Screen shots 15

6 References 16

4|P age
1. STATEMENT

SIMPLE AIRLINE BOOKING SYSTEM

The Simple Airline Booking System with Source Code is a project


that is coded in java programming to manage your reservation for
airline flight. The system will manage your flight detail such as
Name, Destination, Seat Number. The purpose of the system is to
help you manage and organize the list of all flights.

5|P age
2. DESCRIPTION

Airline ticket system in Java :Airline reservation system is the


system that is designed for the reservation of tickets of the airways.
Sometimes the people will not be able to know about the seat
availability in the airways.

The Simple Airline Booking System was built in a simple console


application, the system is open to be accessed without the use of any
login information. The user has many thing to do in the system in the
system, he/she can add book new flight detail. With the use of the
system it will eventually help you manage and handle efficiently your
booking business. The system can also save your current record as a
file after exiting the application. The Simple Airline Booking
System was created in a simple coding structure of java programming
language that help beginners to learn the system flow.

6|P age
3. CONCEPTS USED
java.utilpackage:

It contains the collections framework, legacy collection classes, event


model, date and time facilities, internationalization, and miscellaneous
utility classes (a string tokenizer, a random-number generator, and a bit
array).

Java User Input:


The Scanner class is used to get user input, and it is found in the java.util
package. To use the Scanner class, create an object of the class and use
any of the available methods found in the Scanner class documentation.
In our example, we will use the nextLine() method, which is used to read
Strings.

Java If-else Statement:


The Java if statement is used to test the condition. It checks boolean
condition: true or false. There are various types of if statement in Java.

if statement
if-else statement
if-else-if ladder
nested if statement

Java if Statement:
The Java if statement tests the condition. It executes the if block if
condition is true.
Syntax:
if(condition){
//code to be executed
}

Java if-else Statement:


The Java if-else statement also tests the condition. It executes the if block
if condition is true otherwise else block is executed.
Syntax:
if(condition){
//code if condition is true
}else{
//code if condition is false
}

7|P age
Java Switch Statement :

 The Java switch statement executes one statement from multiple


conditions. It is like if-else-if ladder statement. The switch statement
works with byte, short, int, long, enum types, String and some wrapper
types like Byte, Short, Int, and Long. Since Java 7, you can use strings in
the switch statement
 In other words, the switch statement tests the equality of a variable
against multiple values
 There can be one or N number of case values for a switch expression.
 The case value must be of switch expression type only. The case value
must be literal or constant. It doesn't allow variables.
 The case values must be unique. In case of duplicate value, it renders
compile-time error.
 The Java switch expression must be of byte, short, int, long (with its
Wrapper type), enums and string.
 Each case statement can have a break statement which is optional. When
control reaches to the break statement, it jumps the control after the
switch expression. If a break statement is not found, it executes the next
case.

Break:

If break is used inside loop then it will terminate the loop. If break is used
inside the innermost loop then break will terminate the innermost loop only
and execution will start from the outer loop. If break is used in switch case
then it will terminate the execution after the matched case.

8|P age
4. SOURCE CODE

import java.util.*;

class Main

public static void main(String args[])

Scanner covid=new Scanner(System.in);

System.out.println("Enter your covid test result here: 1.positive


2.negative");

int result= covid.nextInt();

if (result==1)

System.out.println("Your not eligible to fly");

else

System.out.println("Enter the flight name:");

//System.out.println("1.covid+ 2.covid-");

Scanner scan = new Scanner(System.in);

String s= scan.nextLine();

System.out.println("Enter your current location:");

9|P age
//System.out.println("1.covid+ 2.covid-");

Scanner ascf = new Scanner(System.in);

String ght= ascf.nextLine();

System.out.println("Enter your Name:");

Scanner fu = new Scanner(System.in);

String xi= scan.nextLine();

System.out.println("Enter your Mobile number:");

Scanner mub = new Scanner(System.in);

String num = mub.nextLine();

System.out.println("Select your destination from the following: ");

System.out.println("1.HYDERABAD 2.DELHI 3.GOA");

Scanner sc = new Scanner(System.in);

int val=sc.nextInt();

switch(val)

case 1:

System.out.println("which type of seat do you need for HYD:");

//System.out.println("3.Arrival time 4.Departure");

System.out.println("1.Economy class 2.Business class ");

//System.out.println("3.Arrival time 4.Departure");

Scanner a = new Scanner(System.in);

10 | P a g e
int i = a.nextInt();

System.out.println("How many seats you want to book:");

Scanner b = new Scanner(System.in);

int ccount = b.nextInt();

switch(i)

case 1:

//System.out.println("Arrival time:- 12:45pm || Departure:-


1:15pm");

System.out.println("Cost you need to pay\t" +(7000*ccount));

break;

case 2:

System.out.println("Cost you need to pay\t" +(9000*ccount));

System.out.println("Arrival time:- 12:45pm || Departure:-


1:15pm");

System.out.println("Your ticket is Confirmed");

System.out.println("##### THANK YOU #####");

break;

// System.out.println("Arrival time:- 12:45 || Departure:- 1:15");

break;

case 2:

System.out.println("3.Economy class 4.Business class ");

Scanner c = new Scanner(System.in);

int m=c.nextInt();

11 | P a g e
System.out.println("How many seats you want to book:");

Scanner d = new Scanner(System.in);

int mcount=d.nextInt();

switch(m)

case 3:

System.out.println("Cost you need to pay:-\t"


+(5000*mcount));

System.out.println("Arrival time:- 9:45am || Departure:-


11:15am");

System.out.println("Your ticket is confirmed");

System.out.println("##### THANK YOU #####");

break;

case 4:

System.out.println("Cost you need to pay:-\t"


+(9000*mcount));

System.out.println("Arrival time:- 9:45am || Departure:-


11:15am");

System.out.println("Your ticket is confirmed");

System.out.println("##### THANK YOU #####");

break;

break;

case 3:

System.out.println("5.Economy class 6.Business class ");

12 | P a g e
Scanner e = new Scanner(System.in);

int f = e.nextInt();

System.out.println("How many seats you want to book:");

Scanner g = new Scanner(System.in);

int lcount = g.nextInt();

switch(f)

case 5:

System.out.println("Cost you need to pay:-\t"


+(12000*lcount));

System.out.println("Arrival time:- 11:45am || Departure:-


1:15pm");

System.out.println("Your ticket is confirmed");

System.out.println("##### THANK YOU #####");

break;

case 6:

System.out.println("Cost you need to pay:-\t"


+(18000*lcount));

System.out.println("Arrival time:- 11:45am || Departure:-


1:15pm");

System.out.println("Your ticket is confirmed");

System.out.println("##### THANK YOU #####");

13 | P a g e
//System.out.println("Arrival time:- 11:45am || Departure:-
1:15pm");
break;

//System.out.println("Arrival time:- 11:45am || Departure:-


1:15pm");

break;

// System.out.println("Arrival time:- 11:45am || Departure:-


1:15pm");

default:

System.out.println("Choose a valid option could you please check


it .....");

break;

14 | P a g e
5. SCREEN SHOTS

15 | P a g e
6. REFERENCES
 https://www.codeblah.com/airline-reservation-system-in-java/
 https://afteracademy.com/blog/difference-if-while-and-else-
system
 https://www.geeksforgeeks.org/util.*//
 Java: The Complete Reference” by Herbert Schildt

16 | P a g e
17 | P a g e

You might also like