Problem #3
English Solution:
- Find out what time Mary left Seattle. Store it in a variable called “trip leave time”.
- Find out how long the total travel time will be, and store it in a variable called “trip travel time”.
- Add trip leave time to trip travel time to find “trip length total” and store it in a variable called “trip length total”
- If trip length total is less than 6:00 pm, call Courtenay to see if there is an available landing time.
- If trip length is later than 6:00 pm, change landing to Smit’s field
If there is an available landing time, land in Courtenay.
Flowchart Solution:
mwilson
More or less, the input would actually be ‘current time’ + ‘remaining trip time’ because they are mid-air, but you’ve got the gist of it.