3.) Solution ( in English)

  • Find the currentTime and store it in a variable known as ‘currentTime’.
  • We have to kept the time till the plane lands and store it in a variable called ‘remainingLength’.
  • And now, calculate remaininglength + currentTime and store it in a variable known as ‘landingTime’.
  • Ater that, find available landing times and store them in a variable known as ‘availableTimes’, then compare them.
  • If landingTime is earlier than availableTime. Output= ‘land in Courtenay’.
  • If landingTime is later than availableTime. Output= ‘land in Smits field’.