Solution (in English)
- Find out the overall travel time. Store it in a variable called ‘overallTime’
- Find out alternative available landing times. Store it in a variable called ‘laterTimes’
- Compare overallTime to each laterTimes
- If laterTime is equal to or later than overallTime, book this time
- If laterTime is earlier than overallTime, move to the next laterTimes
- If no laterTimes is available, land at Smits Field
Solution (flowchart)
Leave a Reply