Commit 3074efdd authored by daniel.tang's avatar daniel.tang

Update assessment_finalised

parent e3ead24e
......@@ -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++) { // Columns14
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment