Solution:
- Find out how much travel time is now remaining, store as a variable called ‘remainingTripTime’
- Find out all remaining available landing times, store as a variable called ‘availableLandingTimes’
- Compare ‘remainingTripTime’ to all ‘availableLandingTimes’
- If ‘availableLandingTimes’ is greater than or equal to ‘remainingTripTime’, store answer as ‘landingCourtenay’
- If ‘availableLandingTimes’ is less than ‘remainingTripTime’, store answer as ‘landingSmits’
- Find out landing time, and store as variable called ‘landingTime’
- If answer equals ‘landingCourtenay’, input 20 minutes as ‘travelTime’
- If answer equals ‘landingCourtenay’, input book taxi as ‘bookTransport’
- If answer is not ‘landingCourtenay’, input 45 minutes as ‘travelTime’
- If answer is not ‘landingCourtenay’, input book loaner car as ‘bookTransport’
- Add ‘travelTime’ to ‘landingTime’, store as ‘dinnerReservationTime’
- Output ‘bookTransport’
- Output ‘dinnerReservationTime’
To be honest, if it wasn’t entirely obvious, I was really lost in this lesson. If there is more reading, or any other available resources, you could recommend I would greatly appreciate it. I understand it when it is presented to me, but creating my own was/is a real struggle for me to comprehend.
If there is a possibility to try this again at a later time, for a chance to improve my grade, please let me know.
mwilson
This works.
Here is my version: https://docs.google.com/document/d/1Mv4ZhDj3SjXL3M5hE1gY2XjY9Kb_1EUrU0-dg3abN14/edit?usp=sharing