0202

“While on route, Mary receives a dangerous wind warning for the Courtenay area. She knows that if winds are greater than 12 knots, she can’t land safely because the Courtenay airfield is close to the ocean and has high winds. Smits Field is a nearby airfield that is protected from the wind and allows emergency landings but it’s a 30 minute drive to Courtenay and Louise would need to contact the airstrip marshall to reserve the loaner car they make available for such occasions. Write an algorithm that will tell Mary if she can land in Courtenay or if she has to go to Smits Field”.

  • Input the current wind strength – store in a variable as “windStrength”.
  • Compare “windStrength” to <12.
  • If true then Mary can land in Courtenay as output “landDestination: Courtenay”.
  • If false then Mary has to land at Smit Airfield as output “landDestination: Smit Airfield”.

← Previous Post

Next Post →

1 Comment

  1. Well done.

Leave a Reply

Your email address will not be published. Required fields are marked *