Professional Documents
Culture Documents
LG3 - Examples of Evaluation of Operators
LG3 - Examples of Evaluation of Operators
Subtraction - 8-1 7
Multiplication * 8*8 64
Division / 8/4 2
Exponentiation ^ 8^2 64
Negation - -8 -8
Classifications of operators
When multiple operations are involved in a problem, the order of the operators
will be as follows:
1st: Negation
2nd: Exponentiation
3rd: Multiplication, Division
4th: Addition, Subtraction
5th: Modulus
Example: 5 + (4 * 2 / 2) - 3 = 6
= 5 + (8 / 2 ) - 3
= (5 + 4) - 3
= 9- 3
= 6
Classifications of operators
2. Relational Operators - operators that are used to compare two values based on a certain
condition
- Yields a true or false result
A>=B B<=A
AND True
(True) (True)
Classifications of operators
Conditions of OR Operator
A>=B B<=A
OR True
(True) (True)
Classifications of operators
Conditions of NOT Operator
False True
Classifications of operators
Conditions of OR Operator Condition NOT Condition
True False
Examples: False True
A = 100 B = 50
B>A
NOT (B > A) True
(False)
Evaluation of different types of operators
1. Arithmetic Operators
2. Relational Operators
3. Logical Operators
819 > 900 AND NOT 27 < = 48 OR 419 < > 238 False OR True
False True True
True
3. Logical Operators
Answer is True
819 > 900 AND False OR 419 < > 238
False True
Evaluation of different types of operators
Example:
(10*40) (55/5) + 629 < 444 AND 1047 > = 1047 OR NOT 476 < > 476
1. Arithmetic Operators False AND True OR True
(10*40) (55/5) + 629
False
= 400 * 11 + 629
= 4400 + 629 False OR True
= 5029 True
2. Relational Operators
Answer is True
5029 < 444 AND 1047 > = 1047 OR NOT 476 < > 476
False True False
3. Logical Operators
False AND True OR NOT False
True
Evaluation of different types of operators
Example:
NOT 1076 < > 1077 OR 1177 > = 1177 AND 786 > 5 + (52 * 7 / 4) - 25
1. Arithmetic Operators 3. Logical Operators
5 + (52 * 7 / 4) - 25 NOT True OR True AND True
= 5 + (364 / 4) - 25 False
= 5 + 91 - 25
False OR True AND True
= 71
True
2. Relational Operators
False OR True
NOT 1076 < > 1077 OR 1177 > = 1177 AND 786 > 71
True True True True
Answer is True