Separate Returning a Value from Printing It
Track the caller’s returned value separately from visible output.
About 18 minutes, plus any extended practice
Open lesson 1Design a paper helper for doubling a nonnegative integer count. State its contract, distinguish return from printing and give a valid example without modifying shared state.
Choose by skill rather than age alone. Read with an adult when useful, revisit a lesson, or explore another grade.
Track the caller’s returned value separately from visible output.
About 18 minutes, plus any extended practice
Open lesson 1Distinguish a local temporary, returned result and stated external side effect.
About 18 minutes, plus any extended practice
Open lesson 2Assign each helper a coherent responsibility with a stated input and result.
About 18 minutes, plus any extended practice
Open lesson 3Match the requested documentation element to its role in the contract.
About 18 minutes, plus any extended practice
Open lesson 4After the lessons, try 4 new review cases and a practical task. Each answer has an explanation and a link back to the related lesson.
Open the unit reviewGuest answers are temporary. Keep your own paper or document; this unit does not certify completion or record a school grade.
These references informed the topic selection. They do not certify complete standards alignment.