VB Lecture Notes - Evaluating Expressions
Objective #1: Evaluate mathematical expressions.Use the order of operations to evaluate expressions and to write proper expressions.
- is the negative sign
^ is the exponent operator. For example, 2 ^ 3 evaluates to 8 since 2 to the third power is 8. Later in this course, you will learn how to use the Pow method to perform exponentiation.
* is the multiplication operator since the letter x would be confusing to use for multiplication
/ is the division operator
Mod is the modulus operator. See the notes below.
+ is the addition operator
- is the subtraction operator
Objective #2: Use Mod appropriately to compute the remainder of a division problem.
Objective #3: Use the order of operations to evaluate expressions.
Objective #4: Write proper mathematical expressions.
2 * 10 / 5 + 4
10 / 5 * 2 + 4
which both simplify to 8
Objective #5: Evaluate string expressions.