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