1B-3

Solution (in English):

  • Find out new departure time. Store it in variable called “Dep time”.
  • Find out new flight time. Store it in variable called “Flight time”.
  • Calculate departure time plus flight time. Store as variable “Arrival time”.
  • Find out available landing times in Courtenay. Store as variable called “Avail time”.
  • Compare “Arrival time” to “Avail time”.
  • If arrival time is earlier than the available landing time, then book available time.
  • If arrival time is equal or later than the available landing time, then must book landing in Smits Field.

Solution (Flowchart):