ALEX Classroom Resource

  

Computer Science Fundamentals Unit 4 Course C Lesson 7: Getting Loopy (2018)

  Classroom Resource Information  

Title:

Computer Science Fundamentals Unit 4 Course C Lesson 7: Getting Loopy (2018)

URL:

https://curriculum.code.org/csf-18/coursec/7/

Content Source:

Code.org
Type: Lesson/Unit Plan

Overview:

As we start to write longer and more interesting programs, our code often contains a lot of repetition. In this lesson, students will learn about how loops can be used to more easily communicate instructions that have a lot of repetition by looking at the repeated patterns of movement in a dance.

At this point in the course, students should have developed comfort with programming a set of linear instructions. Frequently the linear set of instructions includes patterns that are repeated multiple times and as students want to write more complex and interesting programs, manually duplicating that code becomes cumbersome and inefficient. To enable students to write more powerful programs, we'll need to rely on structures that break out of that single linear list. Loops allow for students to structure their code in a way that repeats. In this lesson, we will focus on identifying patterns in physical movement before moving back onto the computer to look for patterns in our code.

Students will be able to:
- repeat actions initiated by the instructor.
- translate a picture program into a real-world dance.
- convert a series of multiple actions into a single loop.

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: 2
2) Create an algorithm for other learners to follow.

Examples: Unplugged coding activities, illustrate sequence of a process such as baking a cake.

Unpacked Content
Evidence Of Student Attainment:
Students:
  • will develop a sequence of events related to a task that others can follow.
Teacher Vocabulary:
  • sequence
Knowledge:
Students know:
  • the sequence of events for a tasks are important.
  • sequence of events may be read and interpreted by other people or machines.
Skills:
Students are able to:
  • develop a sequence of events for a task that others can follow.
Understanding:
Students understand that:
  • a task can be broken down into a sequence of smaller events or steps.
Digital Literacy and Computer Science
DLIT (2018)
Grade: 2
3) Construct elements of a simple computer program using basic commands.

Examples: Digital block-based programming, basic robotics.

Unpacked Content
Evidence Of Student Attainment:
Students:
  • will drag and drop blocks of code to complete a task.
  • will run a program they develop using block based coding.
Teacher Vocabulary:
  • program
  • code
Knowledge:
Students know:
  • programming blocks represent a set of codes.
  • block based programs can be used to design a task.
  • block based programs can be interpreted by machines.
Skills:
Students are able to:
  • drag and drop blocks of code.
  • drag and drop blocks of code to complete a tasks.
  • run a block based program after sequencing tasks to complete a desired process.
Understanding:
Students understand that:
  • blocks of code can be moved around and combined into an order that completes a task or process.
  • sets of block coding can be run to perform the task/process.
Digital Literacy and Computer Science
DLIT (2018)
Grade: 2
4) Identify bugs in basic programming.

Examples: Problem-solving, trial and error.

Unpacked Content
Evidence Of Student Attainment:
Students:
  • will run a sequence of block based code and determine where there is an error.
  • will correct an error in block based code once it is identified.
Teacher Vocabulary:
  • debug
  • problem-solve
  • error
Knowledge:
Students know:
  • if sequence of code is not correct the task will not complete.
  • incorrect code can be identified and corrected.
Skills:
Students are able to:
  • create a small section of code for a task.
  • run the program to ensure the task is completed.
  • identify when there is an error in the code.
  • correct an error in the code through trial and error.
Understanding:
Students understand that:
  • when sets of block coding are combined to perform a task occassionally an error may occur.
  • when an error in code is identified the code may be rearranged, edited, or removed to correct the error.
Tags: algorithm, debug, loops, problem solving, program, unplugged
License Type: Custom Permission Type
See Terms: https://code.org/tos
For full descriptions of license types and a guide to usage, visit :
https://creativecommons.org/licenses
Accessibility
Comments
  This resource provided by:  
Author: Aimee Bates