Contact PSVM   (Q & A)  |  Notes Below   Audio  |  [toc]   [prev] Slide 8 of 21 [next]
SIJLesson10 Slide08
1, 2, 3, 4, 5, 6, 7, [8 (top)], 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, [Lab]

Notes for Slide 08
Since the program's statements are run from the
top to the bottom, it is possible that you could
write a program containing conditions that will never
be checked, or conditions that could be checked but
would never be true. The above program shows one
such example. The condition in the first elseif-statement
could be checked, but if it was checked it would never
never be true.
If this does not make sense to you,
take a close look at the program and run it from the
top to the bottom; otherwise,
if this does not make sense to you,
take a close look at the program and run it from the
top to the bottom.
(Above sentence purposely written that way...it
might help to think of the words "else if" as the
word "otherwise".)


1, 2, 3, 4, 5, 6, 7, [8 (top)], 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, [Lab]