Decisions and input in programs
Use input (key presses, mouse clicks, sensors or typed answers) and branching blocks (if ... then, if ... then ... else) with comparison operators to make a visual program respond to the user
Share
Activity
Programs wait for input, then choose a path.
Materials
- Input cards: key A / click / typed yes
- If-then strips
- Two outcome pictures (open door / stay shut)
- Pencil
Steps
- Adult demos: if key A then open door else stay shut.
- Child picks an input card, fills if/then, and acts the matching outcome.
- Child invents a second input→branch pair and tests both branches once.
- Fresh check: adult gives only an input; child states the then/else. Record and stop.
Done
Ask what changes the path. Success: names the input.
Example. “If click green, start. Else wait.”
3 before 2 after
List nearby topics
This concept
Ways to teach
Pick a way to teach this topic. Come back here afterward to record progress.
Code.org
AI+CS education for ages 5 to 11
About this link
Free computing activity hub useful for Decisions and input in programs. An adult picks one activity; not a single graded exam.
Code.org. “AI+CS education for ages 5 to 11.” External page; Gakuva does not copy, host, embed, or redistribute materials.
Unknown — link only
Check understanding and curriculum record
Family records and proof options
Keep a record of your learning
Save photos, notes, and attendance. Export a proof packet for compliance or portfolio reviews.
Check understanding
“Can your child make a simple game in a coding app where pressing the arrow keys moves a character, or a quiz that says 'Correct' or 'Try again'?”
Full curriculum checks
- Program a character to move left and right when the arrow keys are pressed
- Write a quiz question that asks for an answer and uses 'if answer = 12 then say Correct, else say Try again'
- Use a comparison such as 'if score > 5' or 'if touching colour red' to change what the program does and explain the condition
Curriculum record
- Type
- Procedural
- Subject
- Computing
- Domain
- Algorithms & Programming
- Age range
- Ages 8–13
Standards