# ALEX Classroom Resource

## Computer Science Fundamentals Unit 7 Course F Lesson 19: For Loops With Bee (2018)

Classroom Resource Information

Title:

Computer Science Fundamentals Unit 7 Course F Lesson 19: For Loops With Bee (2018)

URL:

https://curriculum.code.org/csf-18/coursef/19/

Content Source:

Code.org
Type: Lesson/Unit Plan

Overview:

Featuring Bee, this lesson focuses on `for` loops and using an incrementing variable to solve more complicated puzzles. Students will begin by reviewing loops from previous lessons, then they'll walk through an introduction to `for` loops so they can more effectively solve complicated problems.

Today's concept, `for` loops, are a very important topic in computer science. Not only are they widely used, but the process of learning `for` loops enhances the learning of other important concepts (such as variables and parameters). Students will have plenty of practice critically thinking through problems by determining the starting, ending, and stepping values for each `for` loop. This concept uses plenty of math as well, so feel free to pair it with a math lesson for an even deeper learning experience.

Students will be able to:
- determine starting value, stopping value, and stepping value for a `for` loop.
- recognize when to use a `for` loop and when to use other loops such as `repeat` and `while` loops.

Note: You will need to create a free account on code.org before you can view this resource.

Content Standard(s):
 Digital Literacy and Computer Science DLIT (2018) Grade: 5 6) Create a working program in a block-based visual programming environment using arithmetic operators, conditionals, and repetition in programs. Unpacked Content Evidence Of Student Attainment:Students will: create a working program in a blockbased visual programming environment. create a program in a blockbased visual programming environment using arithmetic operators such as AND, OR, and NOT. create a program in a blockbased visual programming environment using conditionals such as IF, THEN, and/or ELSE. create a program in a blockbased visual programming environment using repetition or loops.Teacher Vocabulary:program block-based visual programming environment arithmetic operators conditionals repetitionKnowledge:Students know: how to create a working program in a block-based visual programming environment. reasons for using arithmetic operators, conditionals, and repetition in programs.Skills:Students are able to: create a working program in a block-based visual programming environment using arithmetic operators, conditionals, and repetition in programs.Understanding:Students understand that: arithmetic operators, conditionals, and repetition in programs make more operations possible and can reduce the complexity or length of code. Digital Literacy and Computer Science DLIT (2018) Grade: 5 7) Identify variables. Unpacked Content Evidence Of Student Attainment:Students will: identify variables in computing and other subject areas.Teacher Vocabulary:variableKnowledge:Students know: a variable is a factor in a program or problem that is likely to change. how to identify variables.Skills:Students are able to: identify variables.Understanding:Students understand that: variables are a part of an algorithm or problem that are likely to change. Digital Literacy and Computer Science DLIT (2018) Grade: 5 8) Demonstrate that programs require known starting values that may need to be updated appropriately during the execution of programs. Examples: Set initial value of a variable, updating variables. Unpacked Content Evidence Of Student Attainment:Students will: demonstrate that programs require known starting values that may need to be updated appropriately during the execution of programs.Teacher Vocabulary:starting value execution of programs initial value updating variablesKnowledge:Students know: that for a program to run properly, the starting value may need to be set when the program begins.Skills:Students are able to: explain a scenario in which starting value is important to a program. Understanding:Students understand that: programs require known starting values that may need to be updated appropriately during the execution of programs.
Tags: bee, debug, decompose, for loop, loops, patterns, problem solving, programming, sequence, variable