Problem 3 (0203) : Adrian Dhalla
Calculating where to land:
Algorithm in English:
- Start program
- Input bookedLandingTimeCourtenay
- Input windDelayedProjectedLandingTimeCourtenay
- Compare windDelayedProjectedLandingTimeCourtenay to bookedLandingTimeCourtenay
- If windDelayedProjectedLandingTimeCourtenay is later time (greater) than (bookedLandingTimeCourtenay (cannot land at Courtenay, due to airport policy that landing times must be booked 2 weeks in advance; in this case, only option is an emergency landing at Smits Field), output: Land at Smits Field
- If windDelayedProjectedLandingTimeCourtenay is earlier time or same time (less than or equal to) to bookedLandingTimeCourtenay (already stated it will not be but perhaps wind changes at last minute, if so, can land at Courtenay), output: Land at Courtenay
- Stop program
mwilson
In this problem , the input relates to wind conditions. Input – current wind condition. If wind is >12Knots, go to Smit Field, if not, go to Courtenay.
mwilson
Ignore that! I was looking at the wrong post. 🙂
You’ve got it.
Another way is to input the current time, then input the remaining time, add them together, then compare with available landing times …