Problem 4:

  • Find out (input) delayed leave time due to wind conditions. Store it in a variable called ‘leaveTime’
  • Find out (input) additional time it took for the time. Store it in a variable called ‘tripLength’
  • Calculate leaveTime + tripLength. Store it in a variable called ‘arriavalTime’
  • If availableTime equals new arrivalTime, land at Courtenay
  • If availableTime is not equal to arrivalTime, land at Smith Falls
  • If arriving in Courtenay, add 20 minutes. Store it in a variable called ‘reservationC’
  • If arriving at Smith Falls, add 45 minutes. Store it in a variable called ‘reservationSF’