The software program that will be used throughout this topic is scratch. As an introduction to the program we were asked to put into practice three different types of controls/functions that we have recently learnt about. these functions were sequence, selection and repetition. here are some pictures of my practice using scratch whilst experimenting with these three components.

Sequence: simply placing the scratch blocks one after the other
repetition: an example supplied by scratch would be the forever block

selection: the if block makes selections based on various situations which it is faced with.
upon learning these instructions we were allowed to experiment with scratch using them. my algorithm looked something like this:
When the mouse is down the picture turns clockwise, while if the space bar is pressed it will turn anti-clockwise.
No comments:
Post a Comment