Expressions

Category: Expressions
Author: Marty Stepp
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 and capitalization. e.g., 7 for an int, 7.0 for a double, "hello" for a String, true or false for a boolean.
1) -(6 + 3 - 2 * 3)
2) 15 % 6 + 5 % 5 + 12 % 7 % 3
3) 9 / 2 / 2.0 + 9 / 2.0 / 2
4) 5 + 6 + "7" + 8 + 9 + 2 * 3
5) !(3 < 7 && -1 != 8)