Common Computer Science References
At the end of this lesson, you will be able to:
understand and use an if ... then ... elseif ... else statement
if ... then ... else statements
review random numbers
go over "Traffic Lights" program (see below)
create a "Positive / Negative / 0" program
suppose we need a program to read an integer and display its sign
more precisely, if it is positive, it states the number is positive
if it is negative, it states the number is negative
otherwise, is tates it is zero
use a 3 level If...Then...ElseIf...Else... Statements
recreate the same above program in C
NOTE: You can turn on "Closed Captions" to see a printout of what is being said by selecting the "CC" button.
You can also have it translate the closed captions by going to "Settings, Subtitles/CC, Auto-translate" and then pick your prefered language.