IFN501 Study Guide - Final Guide: Switch Statement, Multi-Agent System, Routing Table

66 views32 pages
31 Jul 2018
School
Course
Professor

Document Summary

Flow of control: order of statement execution one statement after the other in sequence (linear, some programming statements that modify that order, allowing us to: Decide whether or not to execute a particular statement. Conditional statements (also known as selection statements: conditional statement lets us choose which statement will be executed next, conditional statements give us the power to make basic decisions, some conditional statements in java are. The if statement used to create a decision structure, which allows a program to have more than one path of execution. If statement is false the condition will be skipped. Logical not (also called logical negation or logical complement) If some boolean condition a is true, then !a is false. Truth tables: shows the possible true/ false combinations of the terms. Logical operators: conditions can use logical operators to form complex expressions. Logical operators have precedence relationships among themselves and with other operators.