CS 0007 Lecture Notes - Lecture 5: Boolean Expression, Ampersand
Document Summary
Rules that allow for a program to have multiple laths of execution. Rules follow the way we think about different scenarios. If a student is a freshman, schedule for new student orientation. If a s student is a freshman, schedule for new student orientation. Else if a student is a senior, welcome them and remind them of graduation requirements paperwork. Conditional execution based on a boolean expression. A boolean expression is an expression that evaluates to true or false. If the expression"s conditions are not met, the program will jump to the end of the block. Can have many else ifs, but only one else. You can nest if statements within each other. X and y are primitive types (int, byte, double) Join two or more relational operations into a single operation (see truth tables in powerpoint) Logical, relational and arithmetic operation have a complex precedence structure.