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).

Magic 8 Ball Layout Diagram

My Magic 8 Ball layout diagram. The application enables the user to enter a question and recieve a ramdomised answer. I chose this interface because it's easy to use and read.