Expressions
Category: Expressions
Author: Stuart Reges
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).
1) 16/3 + 3.2 * 2
2) 8/7 + "5/4" + 8/3
3) 88 % 10 % 3 * 16/10
4) 29/3/2/4.0 + 3.6 * 2
5) 1.4 + (3 + 2 * 6)/(8 - 14/3) * 2.2