Thursday 26 May 2011

Project 3: Showing the flow of a program

My piece shows how a program runs “IF/else” statements in a program, and is displayed through the medium of water.

In an “IF/else” statement, a series of true or false questions are asked, if the statement is true, the program does something, or else it asks another question and the process is repeated.

My piece uses a series of clear hoses that have water flowing through it, by deciding which path the water takes (left or right), shows whether the statement is true or false. To explain in more depth and to relate my piece back to the programming foundation; the variable (in code) is substituted by water, and each junction in the water flow system is the “IF” statement. The hoses that go off to the right, without coming to a junction again, are the true outputs and the ones that go off to the left are the false statements.


Alastair Gray

No comments:

Post a Comment