This is a screen cap of the code and visual for the "Magic 8 Ball" program
Monday, 27 August 2012
Tuesday, 21 August 2012
TOE Chart and Pseudo Code for Magic 8 Ball
Object
|
Event
|
Task
|
Pseudo
Code
|
Textbox
|
None
|
None
|
|
Answer Label
|
None
|
None
|
|
Exit Button
|
Click
|
Close program
|
|
Shake Button
|
Click
|
Generate a random response in the answer
label
|
On button “shake’ click
Generate random number between 1-3
If the random number = 1
Display “Not Sure” in label answer
“answer”
If random number = 2
Display “OK” in label “answer”
If random number = 3
Display “Maybe” in label “answer”
|
Heading
|
None
|
Display Title
|
A TOE chart is a charting mechanism that displays the "Obejcts, Events and Tasks" of a specific program, it's used so that the programmer can easily depict what everything does.
The TOE is relevant to the layout diagram diagram because it portrays what each element of the layout diagram does.
This TOE chart also displays Pseudo Code
Monday, 20 August 2012
Layout Diagram for Magic 8 Ball
This 'Magic 8 Ball' program will answer any question
All you have to do is type in your question, press 'shake' and your answer will magically appear
This has been designed in this format to it can be simplistic and easy to use
Subscribe to:
Posts (Atom)