0203

Solution

  1. Find out (input) original travel time estimate, store as “timeEst_old”
  2. Find out (input) new travel time estimate, store as “timeEst_new”
  3. Find out (input) the previously scheduled landing time, store as “landingTime_old”
  4. Calculate the difference between the old and new travel time estimates. Store as “timeDiff”
  5. Calculate timeDiff plus landingTime_old. Store value as “landingTime_new”
  6. Find out (input) the list of available landing times at Courtenay airfield. Store as “availableTimes”
  7. Check if the list is Empty.
  8. If empty, output landing destination as Smit’s field.
  9. If list is not emtpy, Read the 1st item in the list and store as “landingWindow”
  10. Compare each landingWindow against the the landingTime_new
  11. If the landingWindow is past the landingTime_new, Output the Courtenay airfield
  12. If the landingWindow is earlier than landingTime_new, repeat checking the list until no items remain.

 

← Previous Post

Next Post →

2 Comments

    • Looking at yours helped a lot, being able to see how you broke things down. This particular skill of computational thinking is definitly what I have been missing all these years in my algorithms. As I get more time available I will definitly practicing this in addition to using it while I’m learning here. Your example document has even made my bedroom wall, much to the dismay of my wife. haha

Leave a Reply

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