Solution (in English):
- If there is âavailableTimeâ that match ânewLandingTimeâ, land in Courtenay. Store it in a variable called âlandingCourtenayâ
- If there is no âavailableTimeâ that match with ânewLandingTimeâ, default to Smits Field. Store it in a variable called âlandingSmithsFieldâ
- The extra time for the reservation from Courtenay is 20 minutes. Store in a variable called âreservationTimeCourtenayâ
- The extra time for the reservation from Smiths Field is 45 minutes. Store in a variable called âreservationTimeSmithsFieldâ
- Calculate the âlandingCourtenayâ plus âreservationTimeCourtenayâ. Store in a variable called âtaxiBookingâ
- Calculate âlandingSmithsFieldâ plus âreservationTimeSmithsFieldâ. Store in a variable called âloanerCarBookingâ
Flowchart:

Leave a Reply