Wednesday, 12 September 2012

TOE Chart



The Lucky pizza TOE shows various objects and their functions. The "Exit" button, the most straight-forward function. The various radio buttions enables the user to enter their selection. The calculate button calculates the total amount due. The clear button resets the program. The label displays the amount due. Finally the text-box enables the user to enter the amount of pizzas desired.
 
 
 

Monday, 3 September 2012

Lucky Pizza Layout Diagram


                               My layout diagram for the "Lucky Pizza" application.
                                  

Magic 8 Ball Program


I learned how the program uses randomised answers for different questions. The program enables the user to enter a question, and recieve a random "yes" "no" or "maybe". When the "skake" button is pressed, the program will produce a random answer. The interface has a textbox to enter a question, a "skake" button, a label that will display the answer, as well as an "Exit" button to exit the application. 

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.