Expressions

Category: Expressions
Author: Stuart Reges
Book Chapter: 2.1
Problem: Expressions
For each expression in the left-hand column, indicate its value in the right-hand column. Be sure to list a constant of appropriate type (e.g., 7.0 rather than 7 for a double, Strings in quotes).
1) 5 * 6 - (4 + 3) * 2 - 2 * 3
2) 208 / 20 / 4 + 12 / 10.0 + 0.4 * 2
3) 8 - 2 + "8 - 2" + (8 - 2) + 8
4) 4 * 5 % 6 + 297 % 10 + 4 % 8
5) 13 / 2 * 3.0 + 5.5 * 3 / 2