Computer Science Discoveries Unit 3 Chapter 2 Lesson 19: Functions (18-19)

  Classroom Resource Information  

Title:

Computer Science Discoveries Unit 3 Chapter 2 Lesson 19: Functions (18-19)

URL:

https://studio.code.org/s/csd3-2018/stage/19/puzzle/1

Content Source:

Code.org
Type: Lesson/Unit Plan

Overview:

This lesson covers functions as a way to organize code, make it more readable, and remove repeated blocks of code. The class learns that higher level or more abstract steps make it easier to understand and reason about steps, then begins to create functions in Game Lab. At the end of the lesson, the class uses these skills to organize and add functionality to the final version of their side scroller game.

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: 6
2) Define a process as a function.

Example: Functions or sets of steps combined to produce a process: turning off your alarm + getting out of bed + brushing your teeth + getting dressed = morning routine.

Digital Literacy and Computer Science
DLIT (2018)
Grade: 6
5) Identify algorithms that make use of sequencing, selection or iteration.

Examples: Sequencing is doing steps in order (put on socks, put on shoes, tie laces); selection uses a Boolean condition to determine which of two parts of an algorithm are used (hair is dirty? True, wash hair; false, do not); iteration is the repetition of part of an algorithm until a condition is met (if you're happy and you know it clap your hands, when you're no longer happy you stop clapping).

Digital Literacy and Computer Science
DLIT (2018)
Grade: 6
21) Identify varying data structures/systems and methods of classification, including decimal and binary.

Examples: Difference between a bit and a byte, bit representation, pixels.

Digital Literacy and Computer Science
DLIT (2018)
Grade: 7
1) Create a function to simplify a task.

Example: Get a writing utensil, get paper, jot notes can collectively be named "note taking".

Digital Literacy and Computer Science
DLIT (2018)
Grade: 7
4) Design a complex algorithm that contains sequencing, selection or iteration.

Examples: Lunch line algorithm that contains parameters for bringing your lunch and multiple options available in the lunch line.

Digital Literacy and Computer Science
DLIT (2018)
Grade: 7
5) Solve a complex problem using computational thinking.

Digital Literacy and Computer Science
DLIT (2018)
Grade: 8
1) Design a function using a programming language that demonstrates abstraction.

Example: Create a program that utilizes functions in an effort remove repetitive sequences of steps.

Digital Literacy and Computer Science
DLIT (2018)
Grade: 8
5) Discuss the efficiency of an algorithm or technology used to solve complex problems.

Digital Literacy and Computer Science
DLIT (2018)
Grade: 8
7) Create a program that includes selection, iteration, or abstraction, and initializes, and updates, at least two variables.

Examples: Make a game, interactive card, story, or adventure game.

Tags: background, calling, debug, functions, ifstatements, order, randomize, reorder
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