Computer Science 1026A/B Chapter : Computer Science 1026 Topic 8.docx

85 views2 pages
terubarenuka and 39895 others unlocked
COMPSCI 1026A/B Full Course Notes
26
COMPSCI 1026A/B Full Course Notes
Verified Note
26 documents

Document Summary

Test: a boolean with condition(s) that equate to true or false, occurs before the body of the loop runs. Body of the loop: statements to be executed while the conditions is true, something within the body of the loop must change to change the result of the condition. Relational operators: greater than: , less than: , equal: =, not equal: !, greater than or equal: >, less than or equal: <= Expresses a boolean type condition that evaluates to true or false. When more than one condition needs to be tested, relational operators can be combined with logical operators. Since all conditions need to be true, it is unnecessary to continue if one condition is false: ex. (x > 0) && (x < 100) Since only one condition needs to be true, it is unnecessary to continue if one condition is true. True / false table for && and || in java.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents