Solution 4 in English

  • Find out when they are going to land now and input as the variable ‘landingTimeon each side of the flowchart
  • Put value of 20 minutes to the ‘land in Courtenay’ output channel from previous flowchart and store as ‘courtenayResTime’
  • Put value of 45 minutes to the land in Smits Field output channel from previous flowchart and store as ‘SmitsResTime’
  • Calculate the travel time by adding the appropriate resTime to landingTime and store as ‘earliestResTime’
  • Find out all the available reservation times and input list as the variable ‘reservationTimes
  • Compare the earliestResTime to each time on the reservationTimes list
  • If the earliestResTime is less than or equal to the time on the reservationTimes list, then output is ‘book this reservation time