Problem 3

Problem 3: 

 

  • (input) Calculate estimated arrival time and put it in a variable called arriveTime. 
  • (input) Find out Available Landing Times. Store in a variable called availLanding.
  • (Calculate) Compare estimated arrival with available landing times. 
  • (Decision) If the estimated arrival time is greater than last available landing time, change flight plan to land at Simms Airport. 
  • (Decision) If the estimated arrival time is less than the last available landing time proceed to Courtenay Airfield.

← Previous Post

Next Post →

1 Comment

  1. mwilson

    Calculating the estimated arrival time is more than one step – you need to find the current time plus the remaining air time and add them together.

    Otherwise, good.

Leave a Reply

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