Expressions
Category: Expressions
Author: Jessica Miller
Book Chapter: 2.1
Problem: Expressions
For each expression at left, indicate its value in the right column. List a value 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) 11 - 7 * 2 + 3 * 4
2) 10 / (5 / 2) + 1.5 * 6 / 2
3) 115 / 10 + 115 % 10 + 11 / 7 * 3.5
4) "0" + 10 * 5 + "0" + 5 + 6
5) (4 <= 9 / 2) && !(2 != 10)