Expressions
Category: Expressions
Author: Victoria Kirst
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
1) 3 + 3 * 8 - 2
2) 109 % 100 / 2 + 3 * 3 / 2.0
3) 1 - 3 / 6 * 2.0 + 14 / 5
4) 1 + "x" + 11 / 10 + " is" + 10 / 2
5) 10 % 8 * 10 % 8 * 10 % 8