Question: Airport javPlae javaQusueinterface java Queuelnterface java Runway java import jva.util.Scanner public class Airport{ 2 private static int runtime, timeToLand, timeToTakeoff, maxTimeInLanding; private static double probArrivals,

Airport javPlae javaQusueinterface java Queuelnterface java Runway java import jva.util.Scanner public class Airport{ 2 private static int runtime, timeToLand, timeToTakeoff, maxTimeInLanding; private static double probArrivals, probDepartures: private static Runway simulate public static void main (Stringl args) i String cont; scanner in = new scanner (System.in) ; welcome iSystem.out.println("Welcome to NScC Airport here we will"+ " simulate arrivals and departures to and from a one runway " airport for a given input time frame") 10 do 12 13 1 4 15 1 6 input simulate-new Runway (runtime, timeToLand, .meToTakeoff,probar rivals, probDepartures, maxTimeInLanding); simulate.start) output System.out.println ( System.out.print("WOULD YOU LIKE TO RUN THE SIMULATION AGAIN? (Y/N) cont in.nextLine if (cont.equalsIgnorecase ("Y")) 18 19 20 21 elsel System.out.println ("Thanks for flying the NSCc airlines!" System.exit (0)) 23 24 25 26 27 28 29 30 31 System.out.println while(cont.equalsignoreCase (Y) private static void welcome) Scanner in - new Scanner (System.in); System.out.println ( WELCOME TO THE NSCC AIRPORT nn" 35 36 37 38 39 40 rAn 42 43 System.out.println ) System.out.print ("WoULD YOU LIKE TO RUN THE SIMULATION? (Y/N):" 45 Airport javPlae javaQusueinterface java Queuelnterface java Runway java import jva.util.Scanner public class Airport{ 2 private static int runtime, timeToLand, timeToTakeoff, maxTimeInLanding; private static double probArrivals, probDepartures: private static Runway simulate public static void main (Stringl args) i String cont; scanner in = new scanner (System.in) ; welcome iSystem.out.println("Welcome to NScC Airport here we will"+ " simulate arrivals and departures to and from a one runway " airport for a given input time frame") 10 do 12 13 1 4 15 1 6 input simulate-new Runway (runtime, timeToLand, .meToTakeoff,probar rivals, probDepartures, maxTimeInLanding); simulate.start) output System.out.println ( System.out.print("WOULD YOU LIKE TO RUN THE SIMULATION AGAIN? (Y/N) cont in.nextLine if (cont.equalsIgnorecase ("Y")) 18 19 20 21 elsel System.out.println ("Thanks for flying the NSCc airlines!" System.exit (0)) 23 24 25 26 27 28 29 30 31 System.out.println while(cont.equalsignoreCase (Y) private static void welcome) Scanner in - new Scanner (System.in); System.out.println ( WELCOME TO THE NSCC AIRPORT nn" 35 36 37 38 39 40 rAn 42 43 System.out.println ) System.out.print ("WoULD YOU LIKE TO RUN THE SIMULATION? (Y/N):" 45
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
