CS 0007 Lecture Notes - Lecture 5: Boolean Expression, Ampersand

37 views2 pages
10 Oct 2017
School
Course

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.

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