Skip to main content
- Create a variable called bookedTime
- Check that booked landing time was no later than 5:45pm
- Create a variable called checkTime which is initially equal to booked time
- If bookedTime was at 5:45 or later then land at Smits
- If booked time was earlier check 15 mins (checkTime) after bookedTime to see if it is available, if it is then book it
- If checked time + 15 mins is not available, check 15 mins after new checkTime
- When checkedTime reaches 6:00 and no times are available then she must land at Smits
mwilson
You’ve got the gist of it. You need to start with the current time + the remaining trip time, then compare against available times and then output to either smit or courtenay.