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