Solution (in English):
- Find out (input) how long the trip will take from take off to landing. Store it in a variable called ‘tripLength’
- Find out when Mary and Louise left. Store it in a variable called ‘leaveTime’
- Calculate leaveTime plus tripLength. Store it in a variable called ‘landingTime’
- Find out when the loaner car can get to Courtenay. Store it in a variable called ’carArrival’
- Compare ’landingTime’ with ’carArrival’
- If ’landingTime’ match with ’carArrival’, book the loaner car and land in Smiths Field
- If ’landingTime’ don’t match with ’carArrival’, land in Courtenay
Flowchart:

Leave a Reply