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
79ef8741
Commit
79ef8741
authored
Oct 28, 2019
by
LoomyGames
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Stuff, the seats are now viewable yeey
parent
39d9f828
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
101 additions
and
5 deletions
+101
-5
Yeyey1.java
src/Yeyey1.java
+101
-5
No files found.
src/Yeyey1.java
View file @
79ef8741
import
java.util.Scanner
;
public
class
Yeyey1
{
Scanner
input
=
new
Scanner
(
System
.
in
);
//We're just setting up the input for now;
public
static
void
main
(
String
[]
args
)
{
int
[]
seat
=
new
int
[
100
];
int
j
=
0
,
k
=
0
;
// TODO Auto-generated method stub
//hello loomy
//--------------------------------------------------Setup Phase--------------------------------------------------\\
System
.
out
.
println
(
""
);
System
.
out
.
println
(
"---------------FIRST CLASS----------------"
);
System
.
out
.
println
(
""
);
//--------------------------------------------------Actual Code Phase--------------------------------------------------\\
for
(
int
i
=
0
;
i
<
18
;
i
++)
{
seat
[
i
]
=
i
+
1
;
if
(
k
<
9
)
{
if
(
j
<
3
)
{
if
(
i
<
9
)
System
.
out
.
print
(
"[0"
+
seat
[
i
]
+
"]"
);
else
System
.
out
.
print
(
"["
+
seat
[
i
]
+
"]"
);
j
++;
}
if
(
j
==
3
)
{
System
.
out
.
print
(
" "
);
j
=
0
;
}
k
++;
}
if
(
k
==
9
)
{
System
.
out
.
println
(
""
);
k
=
0
;
}
}
System
.
out
.
println
(
""
);
System
.
out
.
println
(
"--------------BUSINESS CLASS--------------"
);
System
.
out
.
println
(
""
);
for
(
int
i
=
18
;
i
<
45
;
i
++)
{
seat
[
i
]
=
i
+
1
;
if
(
k
<
9
)
{
if
(
j
<
3
)
{
System
.
out
.
print
(
"["
+
seat
[
i
]
+
"]"
);
j
++;
}
if
(
j
==
3
)
{
System
.
out
.
print
(
" "
);
j
=
0
;
}
k
++;
}
if
(
k
==
9
)
{
System
.
out
.
println
(
""
);
k
=
0
;
}
}
System
.
out
.
println
(
""
);
System
.
out
.
println
(
"--------------ECONOMY CLASS--------------"
);
System
.
out
.
println
(
""
);
for
(
int
i
=
45
;
i
<
90
;
i
++)
{
seat
[
i
]
=
i
+
1
;
if
(
k
<
9
)
{
if
(
j
<
3
)
{
System
.
out
.
print
(
"["
+
seat
[
i
]
+
"]"
);
j
++;
}
if
(
j
==
3
)
{
System
.
out
.
print
(
" "
);
j
=
0
;
}
k
++;
}
if
(
k
==
9
)
{
System
.
out
.
println
(
""
);
k
=
0
;
}
public
void
AddSeats
()
}
}
public
void
BookSeats
(
int
classNum
)
//Method for adding the seats and displaying them
{
//This method adds all the seats and separates them
//into each different classs
}
}
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