In Exercise: Run Once Each Morning, your Good Morning button passed its last test. The devices start together, the report names every device that let the Lindqvists down, the kettle gives up at its deadline, Snooze stops what’s still running, and two taps share one run. The tests show that your routine works. They don’t show whether you could explain why or change it safely when the household asks for something new.
In this conversation with the mentor, you’ll walk through your three project steps and explain where your routine waits, fails, stops, and lets another run in. Then you’ll add a fifth device to your own startMorning() and run it. The conversation takes about twenty minutes, plus a few minutes of setup beforehand, so start it when you have time for both parts.
Gather Your Three Steps
In the first part of the review, the mentor asks about the routine you wrote, so it needs your code. Open each of the three project exercises and copy your finished code from its editor into one file or note:
- Exercise: Start the Routine and Report:
startDevice()andreportMorning() - Exercise: Add the Deadline and Snooze:
startMorning() - Exercise: Run Once Each Morning:
makeGoodMorning()
You’ll paste them when the mentor asks. Your code doesn’t have to match anyone else’s. The tests accepted any working approach, and the mentor asks about the lines you wrote.