ENCMP100 Study Guide - Final Guide: Matlab, Row And Column Vectors, Flowchart
Document Summary
The programs we have looked at so far are fairly limited. They will always perform the same series of instructions in the same order. Cannot make decisions about whether or not to perform an action. Can calculate via expression, but cannot use those results to effect what they do. List of command executed in the order that they are placed within the program. Execute one set of comments if some criterion is true, the other set is the criterion is false. A group of statements is executed multiple times. A group of statements can be invoked (by a call) at any place in the program. The selection and repetition statements depend on relational and logical operator. The result of the comparison is either true (1) or false (0) Relational statements can also be used for arrays, the true/false result will also display as an array of the same size.