Raspberry_Pi_Education_Manual

Notes:

Click on Operators once more in the Script block and you’ll see that there are other operator blocks there too: for subtraction, multiplication and division.

add

subtract

multiply

divide

If you want the cat to take away then simply swap the “add” block in the script above for a “subtract” block, and so on until the cat has done all you homework for you.

What a helpful cat!

Over to you

Task: Program the Maths Cat to do the rest of the homework sheet – you will have to change the operator each time so that the cat does the right kind of sum.

To see a working example of this script, open RPiScratch/Projects/maths_cat.

A beginner’s guide to Scratch

28

Made with FlippingBook flipbook maker