Thursday 30 August 2012

Pseudo Code

On button “shake” click


Generate random number between 1-5


If the random number=1


Display “Not sure” in label answer





If random number=2


Display “Ok” in label “answer”





If random number=3


Display “Yes” in label “answer”





If random number=4


Display “No” in label “answer”





If random number=5


Display “Maybe” in label “answer”



Pseudo code is a description on the key aspects of the program. I have chosen to display the "Shake!" button properties (the "yes" "no" and "maybe" answers).

No comments:

Post a Comment