Expressions

Category: Expressions
Author: Benson Limketkai
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"). If the expression is illegal, then write "error". 
1) 0.5 + 3 / 2.0 * 1 - 5 / 10
2) 5 + 11 % 6 + 34 % 4 % 8
3) 2 * 10 + 3 / 2 / 1.0
4) 6 - 5 + 4 * 3 - 2 + 1
5) 8 + 2 * -10 + 102 + "2" + 5 * 2