Addition | Guided Practice
Students practice using addition in code by writing and testing simple programs that calculate sums. The lesson emphasizes syntax, variables, and debugging through short guided exercises in a beginner-friendly coding environment.
| Term | Definition |
|---|---|
| operator | A symbol that tells the computer to perform an action, such as + for addition. |
| expression | A combination of values and operators that produces a result. |
| variable | A named storage location used to hold data. |
| syntax | The rules for writing code correctly. |
| debugging | Finding and fixing errors in code. |
Ask students how they would calculate 3 + 4 in a program. Model one simple example on the board and connect the math operation to the plus operator in code.
Respond to questions, predict outputs, and share prior knowledge about operators and variables.
Demonstrate a simple program that adds two numbers and prints the result. Explain each line, emphasizing variables, assignment, and the addition operator.
Follow along, annotate the code, and ask clarifying questions.
Provide short code snippets that use addition. Ask students to predict outputs before running each snippet, then review answers as a class.
Work individually or in pairs to predict outputs and compare results with the program output.
Give students partially completed code with blanks for variable names, values, and the addition expression. Circulate to support syntax and logic.
Complete the code, run it, and revise as needed based on feedback.
Present code with common mistakes such as missing operators, incorrect variable names, or string concatenation issues. Model how to identify and correct errors.
Find and fix errors in pairs, then test corrected code.
Ask a few students to explain how their code works and what changes they made to fix errors. Use this to confirm understanding.
Explain reasoning, describe the role of the addition operator, and answer peer questions.
Summarize the key ideas: addition as an operator, using variables, and testing code carefully.
Write or say one thing they learned and one question they still have.
End with a brief recap that addition in coding uses the + operator, variables can hold numbers to be added, and testing helps confirm the program works correctly.
Formative assessment will be based on student participation in prediction, coding, and debugging tasks, plus the accuracy of the completed guided practice exercises.