Problem: Find an alternate landing time/ location

Solution(in English)

  • Find out how much time there trip delayed and stored it as variable called delay time
  • find out how long does their trip than expected. Stored it as “trip length”.
  • Calculate both delayed time and trip length to find out the original time of landing and stored it as “newest landing time”
  • Find out which time is available for landing. Stored it as variable called “availability of time”
  • Make comparison of newest landing time and the availability of time
  • If availability of time is earlier than the newest landing time, then move to next available time
  • If Availability of time is later than or equal to newest landing time, then book it and land in the Courtenay airpark
  • Calculate both delayed time and trip length to find out their original time of landing and stored it as a “newest landing time”.
  • find out which time is available for landing. Stored it as variable called “availability of time”.
  • make comparison of newest landing time and the availability of time
  • If availability of time is earlier than the newest landing time, then move to next available time
  • If availability of time is later than or equal to newest landing time, then book it and land in the Courtenay airpark
  • If there’s no any availability of time in Courtenay (equal or later than newest landing time), than land in Smiths airfield