110 likes | 236 Views
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.
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