ALEX Classroom Resource

  

Computer Science Fundamentals Unit 7 Course F Lesson 10: Conditionals With Cards (2018)

  Classroom Resource Information  

Title:

Computer Science Fundamentals Unit 7 Course F Lesson 10: Conditionals With Cards (2018)

URL:

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

Content Source:

Code.org
Type: Lesson/Unit Plan

Overview:

This lesson demonstrates how conditionals can be used to tailor a program to specific information. We don’t always have all of the information we need when writing a program. Sometimes you will want to do something different in one situation than in another, even if you don't know what situation will be true when your code runs. That is where conditionals come in. Conditionals allow a computer to make a decision, based on the information that is true any time your code is run.

One of the best parts of teaching conditionals is that students already understand the concept from their everyday lives. This lesson merges computer science into the real world by building off of their ability to tell if a condition is true or false. Students will learn to use if statements to declare when a certain command should be run, as well as if / else statements to declare when a command should be run and what do run otherwise. Students may not recognize the word conditionals, but most students will understand the idea of using "if" to make sure that some action only occurs when it is supposed to.

Students will be able to:
- define circumstances when certain parts of a program should run and when they shouldn't.
- determine whether a conditional is met based on criteria.
- traverse a program and predict the outcome, given a set of input.

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
2) Create an algorithm to solve a problem while detecting and debugging logical errors within the algorithm.

Examples: Program the movement of a character, robot, or person through a maze.
Define a variable that can be changed or updated.

Unpacked Content
Evidence Of Student Attainment:
Students will:
  • create an algorithm to solve a problem.
  • detect and debug logical errors within an algorithm.
Teacher Vocabulary:
  • algorithm
  • debug
  • detect
  • logical errors
Knowledge:
Students know:
  • an algorithm is a logical set of steps to solve a problem.
  • detecting and debugging logical errors within an algorithm will ensure the algorithm serves to solve a problem successfully.
Skills:
Students are able to:
  • create an algorithm to solve a problem while detecting and debugging logical errors within the algorithm.
Understanding:
Students understand that:
  • debugging an algorithm is searching for logical errors within the algorithm.
  • an algorithm is a set of steps to solve a problem.
  • how to create an algorithm to solve a problem while detecting and debugging logical errors within the algorithm.
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 block
  • based visual programming environment.
  • create a program in a block
  • based visual programming environment using arithmetic operators such as AND, OR, and NOT.
  • create a program in a block
  • based visual programming environment using conditionals such as IF, THEN, and/or ELSE.
  • create a program in a block
  • based visual programming environment using repetition or loops.
Teacher Vocabulary:
  • program
  • block-based visual programming
  • environment
  • arithmetic operators
  • conditionals
  • repetition
Knowledge:
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.
Tags: coding, conditionals, if, if else, 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