Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AirlineReservation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alexandru.radulescu
AirlineReservation
Commits
8d83a49c
Commit
8d83a49c
authored
Nov 02, 2019
by
LoomyGames
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Seat occupying is working, finally
parent
5766c901
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Yeyey1.java
src/Yeyey1.java
+6
-3
No files found.
src/Yeyey1.java
View file @
8d83a49c
...
@@ -36,13 +36,15 @@ public class Yeyey1 {
...
@@ -36,13 +36,15 @@ public class Yeyey1 {
while
(
bookAgain
==
1
)
while
(
bookAgain
==
1
)
{
{
System
.
out
.
println
(
""
);
System
.
out
.
println
(
"For First Class please input 1"
);
System
.
out
.
println
(
"For First Class please input 1"
);
System
.
out
.
println
(
"For Business Class please input 2"
);
System
.
out
.
println
(
"For Business Class please input 2"
);
System
.
out
.
println
(
"For Economy Class please input 3"
);
System
.
out
.
println
(
"For Economy Class please input 3"
);
classRead
=
input
.
nextInt
();
classRead
=
input
.
nextInt
();
BookSeats
(
classRead
);
BookSeats
(
classRead
);
ShowBoardingPass
();
System
.
out
.
println
(
""
);
System
.
out
.
println
(
"Would you like to book another seat? 0 = no / 1 = yes"
);
System
.
out
.
println
(
"Would you like to book another seat? 0 = no / 1 = yes"
);
bookAgain
=
input
.
nextInt
();
bookAgain
=
input
.
nextInt
();
}
}
...
@@ -50,7 +52,6 @@ public class Yeyey1 {
...
@@ -50,7 +52,6 @@ public class Yeyey1 {
if
(
bookAgain
==
0
)
if
(
bookAgain
==
0
)
{
{
System
.
out
.
println
(
"Have a good day!"
);
System
.
out
.
println
(
"Have a good day!"
);
ShowBoardingPass
();
}
}
}
}
...
@@ -163,13 +164,15 @@ public class Yeyey1 {
...
@@ -163,13 +164,15 @@ public class Yeyey1 {
public
static
void
ShowBoardingPass
()
public
static
void
ShowBoardingPass
()
{
{
System
.
out
.
println
(
""
);
System
.
out
.
println
(
" -------------BOARDING PASS-----------------"
);
System
.
out
.
println
(
" -------------BOARDING PASS-----------------"
);
System
.
out
.
println
(
" Name: "
+
personName
+
" ------------------"
);
System
.
out
.
println
(
" Name: "
+
personName
+
" ------------------"
);
System
.
out
.
println
(
" Current City: "
+
currentCity
+
" ---------"
);
System
.
out
.
println
(
" Current City: "
+
currentCity
+
" ---------"
);
System
.
out
.
println
(
" Destination: "
+
destination
+
" ----------"
);
System
.
out
.
println
(
" Destination: "
+
destination
+
" ----------"
);
System
.
out
.
println
(
" Seat: "
+
seat
[
mainSeatNumber
]
+
" --------"
);
System
.
out
.
println
(
" Seat: "
+
mainSeatNumber
+
" --------"
);
System
.
out
.
println
(
" Flight: "
+
planeName
[
0
]
+
" -----------------"
);
System
.
out
.
println
(
" Flight: "
+
planeName
[
0
]
+
" -----------------"
);
System
.
out
.
println
(
" -------------------------------------------"
);
System
.
out
.
println
(
" -------------------------------------------"
);
System
.
out
.
println
(
""
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment