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.
Programming & Pathways
Wednesday, 12 September 2012
Monday, 3 September 2012
Magic 8 Ball Program
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).
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).
Subscribe to:
Posts (Atom)