Monday 2 May 2011

Project three Ideas

I have choosen to go for the IF/ELSE statments. My first idea was to make a video of the traffic lights for people, for example if the lights are green then walk, else stop. But it will need to be a loop with if/else statments within it. An example would be. IF the lights are green walk and break the loop, ELSE IF the lights are blank stop then push button, ELSE stop reload loop.


The processing discription of  IF/ELSE:

IF;                                                                      ELSE;


Allows the program to make a decision about which code to execute. If the test evaluates to true, the statements enclosed within the block are executed and if the test evaluates to false the statements are not executed. Extends the if() structure allowing the program to choose between two or more block of code. It specifies a block of code to execute when the expression in if() is false.      



No comments:

Post a Comment