A Balanced Introduction to Computer Science
For Introduction to Computing and the Web courses in departments of Math and Computer Science.
Bridge Page: www.prenhall.com/reed
Author Website: www.dave-reed.com/book
Results 1-3 of 19
The simplest form of conditional statement involves only one possible action.For
example,if your program employs a variable to represent a student's grade on a
test, you might want to include code that recognizes a failing grade and warns the
The third example adds an else case to the if statement, ensuring that a message
is generated regardless of grade's value.If the grade is less than 60,the browser
will compute and display the difference between a passing grade and the ...
For instance, the first if statement example in Figure 11.2 displayed a message in
cases where the value stored invariable grade was less than 60, but did nothing
otherwise.When an if statement includes an else case, the statement decides ...
Internet and the Web
HTML and Web Pages
The Internet and the Web
19 other sections not shown