Lesson 24 - Extra Operations

 

Objective: To learn how to obtain the remainder of the division of two numbers, the absolute value of a number, or the closest integer to a number.

 

 

 


Tutorial: Extra Operations

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 the modulo operator to play different sounds according with the result of a division.

Experiment by using the absolute operator to have two sprites jump the same height but move in opposite directions.

Experiment by using a variable and the round operator to have the sprite move in discrete jumps.