I have decided to explain the loop. My metephor I've chosen to explain the loop is a marble track. I'm planning to make an interactive model, whereby you choose how many times you want the loop to run by putting x number of marbles at the top of the track. Then when you run the application it will send one marble down through a series of "functions", like spirals and jumps. When the first marble gets to the bottom it triggers the next marble to start the track and so on.
I think this is a perfect  way to explain a loop to a layman. It is a function where you define the number of iterations and each time it runs throught it excecutes the same application. A loop!
No comments:
Post a Comment