Computer Science Discoveries Unit 3 Chapter 1 Lesson 12: Keyboard Input (18-19)

Classroom Resource Information

Title:

Computer Science Discoveries Unit 3 Chapter 1 Lesson 12: Keyboard Input (18-19)

URL:

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

Content Source:

Code.org
Type: Lesson/Unit Plan

Overview:

Following the introduction to Booleans and if statements in the previous lesson, students are introduced to a new block called keyDown() which returns a Boolean and can be used in conditionals statements to move sprites around the screen. By the end of this lesson, students will have written programs that take keyboard input from the user to control sprites on the screen.

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: 8 3) Create an algorithm using a programming language that includes the use of sequencing, selections, or iterations. Example: Use a block-based or script programming language Step 1: Start Step 2: Declare variables a, b and c. Step 3: Read variables a, b and c. Step 4: If a>b       If a>c          Display a is the largest number.      Else          Display c is the largest number.    Else       If b>c          Display b is the largest number.       Else          Display c is the greatest number. Step 5: Stop 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: animate, Boolean expression, key, move, position