Page 89 - Computer Genius Class 06
P. 89
Complete your homework
Program End
Possible combinations of the example 2:
Condition 1 Condition 2 Decision
a e you completed your home or s the time past hould you go to play
es es es
es No es
No es es
No No No
NOT Operator
T operator is used to re erse or negate a condition.
n T operator
the condition is T it ill return F or o.
the condition is F it ill return T or es.
Example 3: ou can go to play outside only o you ha e completed your home or other ise you
must stay indoors.
Condition: a e you completed your home or
Decision: o out to play
Answer: ou can go to play outside only i you ha e completed your home or other ise you
should not.
Pseudocode:
Program Start
IF NOT (Completed your homework)
THEN
Stay indoors
ELSE
Go out to play
Program End
Possible combinations of the example 3:
Have you completed your homework Go out to play?
es No
No es
Using MakeCode Arcade 87

