TRAINING 1
The following script draws an equilateral triangle in Scratch:
Amend this code, so that when ‘b’ is pressed, a square is drawn instead.
What needs to change so that when ‘c’ is pressed, a hexagon is drawn? Make sure that the angle is not hardcoded, but calculated as a fraction of 360.
Generalise your script so that when ‘d’ is pressed it asks for the number of sides and draws the respective polygon.
TRAINING 2
Write a program that recites times tables. The user should be able to choose which tables to see. Use join blocks to output the information as you would when reciting a times table.
TRAINING 3
Write a program that asks the user for a number and then reads out all of that number's factors. A number's factors are those numbers which divide exactly into that number. (The ‘mod’ operator can be useful here, as well as a conditional statement)