# Minecraft Space Center

8-10 yrs old

11-13 yrs old

Computer Science

Science

Technology

Block 2: Lesson 1. Loops and Conditionals

Submitted By: Minecraft Education

June 24, 2020

#### Skills

• Communication
• Critical Thinking

### Learning Objectives

• 1A-AP-09: Model the way programs store and manipulate data by using numbers or other symbols to represent information.
• 1A-AP-12: Develop plans that describe a sequence of events, goals, and expected outcomes.
• 1A-AP-14: Debug, (identify and fix) errors in an algorithm or program that includes sequences and simple loops.
• 1B-AP-10: Create programs that include sequences, events, loops, and conditionals.
• 1B-AP-11: Decompose (break down) problems into smaller, manageable subproblems to facilitate the program development process.

### Guiding Ideas

The lesson will:

• Reinforce use of Repeat Loops

• Teach to use Agent Inspect Block

• Teach to use Agent Detect Block

• Teach to use While Loop Block

• Teach to use If/Else Conditional Block

Overview: Conditionals

Computer programs are made up of instructions that tell the computer how to process input and deliver output. An important part of programming is telling the computer WHEN to perform a certain task. For this, we use something called ‘conditionals’, because a certain condition or rule has to be met before an action is performed.

### Student Activities

Activity 1: Detecting the First Material (Repeat Loop + If Conditional)

Activity 2: Detecting Surroundings (While Loop + If Else Conditional)

Activity 3: Navigating a Spiral (While Loop + If Else Conditional)

Activity 4: Navigating 3D Space (Repeat Loop + While Loop + If Else)

Activity 5: Just Like the Simulations (Bonus)

### Performance Expectations

1. Q.: A While Loop continues until...?

Answer: A condition has been met.

2. Q.: What is a Conditional?

Answer: An action that occurs if something specific happens.

3. Q.:If we are looking for a specific block what do we use?