Expressions
Category: Expressions
Author: Marty Stepp
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) 3 + 4 * 5 / 2
2) 13 % 5 + 43 % (11 % 3)
3) 1.5 * 3.0 + 25.0 / 10.0
4) 5 / 2 + 123 / 10 / 10.0
5) 5 + 2 + "(1 + 1)" + 4 + 2 * 3