Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Airline Reservation
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
daniel.tang
Airline Reservation
Commits
3074efdd
Commit
3074efdd
authored
Nov 04, 2019
by
daniel.tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update assessment_finalised
parent
e3ead24e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
assessment_finalised
assessment_finalised
+10
-7
No files found.
assessment_finalised
View file @
3074efdd
...
...
@@ -224,7 +224,6 @@ class assessment_part_1 {
//int x, y;
System.out.println();
System.out.print("Please enter your seat > ");
System.out.println("");
System.out.println("Note if you want seats 1 - 9, please enter,"
+ "0 1 to have seat 1.");
...
...
@@ -305,7 +304,6 @@ class assessment_part_1 {
//int x, y;
System.out.println();
System.out.print("To enter your seat > ");
System.out.println("");
System.out.println("");
System.out.println("");
...
...
@@ -339,7 +337,7 @@ class assessment_part_1 {
while(true) {
if(board2[x][y] == "[XX]") { // if user type 0 3 it will break
board2[x][y] = "
";
board2[x][y] = "
[XX]
";
break; }
}
...
...
@@ -399,10 +397,9 @@ class assessment_part_1 {
public static void economyClass() {
//Scanner input = new Scanner(System.in);
int x, y;
//
int x, y;
System.out.println();
System.out.print("To enter your seat > ");
System.out.println("");
System.out.println("");
System.out.println("");
...
...
@@ -442,7 +439,7 @@ class assessment_part_1 {
while(true) {
if(board3[x][y] == "[XX]") { // if user type 0 3 it will break
board3[x][y] = "
";
board3[x][y] = "
[XX]
";
break; }
}
...
...
@@ -454,7 +451,7 @@ class assessment_part_1 {
public static void display3(String board3[][]) { // Displays board
for(int q=0; q<14; q++) { // Columns
for(int q=0; q<14; q++) { // Columns
14
for(int w=0; w<12; w++) { // Rows
System.out.print( board3[q][w] + "");
}
...
...
@@ -493,5 +490,11 @@ class assessment_part_1 {
System.out.println("");
}
// Check fully booked overall
//public static boolean bookedPlan(String z, String board4[][]) {
//if( z.equals(((board4[1][1])))
//}
}
\ No newline at end of file
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