# ALEX Classroom Resource

## Computer Science Fundamentals Unit 7 Course F Lesson 11: Conditionals With the Farmer (2018)

Classroom Resource Information

Title:

Computer Science Fundamentals Unit 7 Course F Lesson 11: Conditionals With the Farmer (2018)

URL:

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

Content Source:

Code.org
Type: Lesson/Unit Plan

Overview:

This lesson introduces students to `while` loops, `until` loops, and `if / else` statements. While loops are loops that continue to repeat commands as long as a condition is true. While loops are used when the programmer doesn't know the exact number of times the commands need to be repeated, but the programmer does know what condition needs to be true in order for the loop to continue looping. `Until` loops keep going until something specific is true. `If / Else `statements offer flexibility in programming by running entire sections of code only if something is true, otherwise, it runs something else.

A basic understanding of conditionals is a recommended prerequisite for Course E. We created this introduction to give a review for the students already familiar to conditionals and allow practice for the students that are just learning. If you find that the understanding of conditionals varies widely in your classroom, we recommend a strategic pairing of students when completing this online lesson.

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.

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 errorsKnowledge: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 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.
Tags: coding, conditionals, farmer, if else statements, until loops, while loops
See Terms: https://code.org/tos
For full descriptions of license types and a guide to usage, visit :
Accessibility