Computer Programming |
||
.-.. --- L o g i c --. .. -.-. |
||
|
LOGIC FLOW As of the writing of this page, there are only three types of logic operation exist to create any computer program flow
Sequential is the standard flow of executing a program with one command at a time. In general programming languange, this can be refered as function sequence, command sequence, etc that refers to an order of going between one line of source code to the next line of source code Repetition is the flow in which the command being executed are repeated for certain block of functions. Many programming language refer this as loop Selection is the flow in which the command being executed are going through certain command path after certain logical conditions met. There are two types of selection: true-false or multiple selection True-false or known as boolean operation requires certain command to be executed if one of the conditions are met, which is ture or false Typical boolean oeprations in many programming languange are refered as if ... or if ... else ... Multiple selection is in use for operation that requires more than two possible choice of conditions. Common method in programming language refer this as case LOGIC OPERATION Click here to learn abouth Logical Operator from Wikipedia Here are several types of logic operation that involved in computer programming and widely used:
AND logic operation are going through the following rules: if both operand are true, then it is true. Else, it is false OR logic operation are going through the following rules: if either one of the operand are true, then it is true. Else, it is false NOT logic operation are going through the following rules: if the condition is true, then change it to false. If the condition is false, then change it to true. NOT also known as negation in mathematical terms. |
|
|
| 19-Jun-2005 |