Solution (English)

  • Find out when they left Seattle (input) and store in leaveTime (variable)
  • Find how long it will take to travel to Courtenay (input) store in travelTime (Variable)
  • Add leaveTime with travelTime and store in arrivalTime(variable)
  • Find the available booking times (input) store in bookTime (variable)
  • Compare arrivalTime to bookTime
    • If it’s less or equal to then she can land at Courtenay Airfield with this booking time
    • else is there another booking time?
      • If yes then move to next booking time and compare
      • If no then she can land at Smits Field

Solution (Flowchart)