4.) Solution (in English)

  • Store output of 3a variable known as ‘location of landing’.
  • If location of landing is ‘Courtenay’ +20 mins to the location of landing.
  • If location of landing is ‘Courtenay’ then book a taxi car.
  • If location of landing is not ‘Courtenay’ +45 mins to the location of landing.
  • If location of landing is not ‘Courtenay’ then book a loaner car.
  • Find the open reservationTime of atlas Cafe and store it in a variable known as ‘reservationTimes’.
  • Compare both input and output term.
  • If landingTime is later than reservationTime, move to next number in RT.
  • If landingTime is earlier than reservationTime , book that time.