Home arrow Unit 5 arrow Lesson 22

Lesson 22 - Comparing Numbers


Objective: To learn how to determine whether a number is less than, equal to, or greater than a second number.  

 


Tutorial: Comparing Numbers

Scratch Activity: Reproduce the actions in the tutorial. Experiment by modifying the settings and parameters used in the tutorial. 

  


Extensions:

Experiment by using variables and comparison of numbers to change the background when the sprite moves close to the edges (for example: distance = 40.)

Experiment by using variables and comparison of numbers to play a sound when two moving sprites have the same vertical coordinate.

Experiment by using variables and comparison of numbers to change the size of a sprite if it is smaller than a certain reference.

 
   
Main Menu
Home
Scratch 2
Overview
Unit 1
Unit 2
Unit 3
Unit 4
Unit 5