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) 1 + 2 * (4 + 3) - 5 * 2
2) 11 % 6 + 20 % 3 % 2 + 1 % 2
3) 3 * 2 + 1 + 13 / 3 / 2 * 2
4) 0.5 + 2 / 4 - 0.25 * 2 + "7"