1 / 11

Scratch: the numbers game

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.

eshana
Download Presentation

Scratch: the numbers game

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Scratch: the numbers game ICT RGS

  2. 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.

  3. Variables can temporarily store numbers that the computer’s brain can use in programming.

  4. We’ll make two variables: Num1 and Num2

  5. Give them names as shown

  6. Get the blocks shown

  7. Drag “pick random” onto the “Set Num1 to” till it snaps in place

  8. Maths blocks come from “Numbers”

  9. Snap these blocks together…

  10. 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”

  11. 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

More Related