110 likes | 257 Vues
Scratch: The Numbers Game introduces programming fundamentals through engaging math challenges. In this interactive activity, participants will learn to use Scratch to create a script where a cat generates two random numbers between 1 and 10, multiplies them, and announces the result. The program demonstrates the concept of variables with Num1 and Num2, allowing students to understand how to store numbers. Additionally, there's an extension activity that encourages creativity by enabling other operations like addition and division using keyboard controls. Enjoy coding and math together!
E N D
Scratch: the numbers game ICT RGS
The purpose of this program is… • The Cat will come up with two random numbers between 1 and 10 each. • The Cat will then multiply them in its head and say the answer back.
Variables can temporarily store numbers that the computer’s brain can use in programming.
Drag “pick random” onto the “Set Num1 to” till it snaps in place
This is the finished script, get rid of the element we didn’t use by right-clicking on it and deleting it. Put spaces on either side of the word “times”
Extension Activity • Make the cat perform other operations, such as addition, division, etc. when other keys are pressed. • Remember to duplicate the whole block by right-clicking and choosing “duplicate” and then assigning the block to a different key. • THE END