Commit 8d83a49c authored by LoomyGames's avatar LoomyGames

Seat occupying is working, finally

parent 5766c901
......@@ -36,13 +36,15 @@ public class Yeyey1 {
while(bookAgain == 1)
{
System.out.println("");
System.out.println("For First Class please input 1");
System.out.println("For Business Class please input 2");
System.out.println("For Economy Class please input 3");
classRead = input.nextInt();
BookSeats(classRead);
ShowBoardingPass();
System.out.println("");
System.out.println("Would you like to book another seat? 0 = no / 1 = yes");
bookAgain = input.nextInt();
}
......@@ -50,7 +52,6 @@ public class Yeyey1 {
if(bookAgain == 0)
{
System.out.println("Have a good day!");
ShowBoardingPass();
}
}
......@@ -163,13 +164,15 @@ public class Yeyey1 {
public static void ShowBoardingPass()
{
System.out.println("");
System.out.println(" -------------BOARDING PASS-----------------");
System.out.println(" Name: " + personName + " ------------------");
System.out.println(" Current City: " + currentCity + " ---------");
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(" -------------------------------------------");
System.out.println("");
}
......
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