ExpressionsThing.java
1    /* 
2     * This program affords opportunities to explore the construction of arithmetic 
3     * expressions in the context of some very simple problem solving. 
4     */
5    
6    package expressions;
7    
8    public class ExpressionsThing {
9    
10       public static void main(String[] args) {
11           double one = 3.14 * 5 + 5;
12           System.out.println("one = " + one);
13           double two = 3.14 * (5+5);
14           System.out.println("two = " + two);
15           double three = (3.14 * (5+5));
16           System.out.println("three = " + three);
17           int four = (2 * 3);
18           System.out.println("four = " + four);
19           double five = (0.5 * 55);
20           System.out.println("five = " + five);
21           double six = (65 * (1.0 / 3));
22           System.out.println("six = "  + six);
23           double seven = ((55 * 0.5) + (65 * (1.0 / 3)));
24           System.out.println("seven = " + seven);
25           double eight = (3.14 * (11.3 * 11.3));
26           System.out.println("eight = " + eight);
27           double nine = (27.7 * 27.7);
28           System.out.println("nine = " + nine);
29           double ten = (((3.14 * (11.3 * 11.3)) + (27.7 *27.7)) / 2.0);
30           System.out.println("ten = " + ten);
31           double eleven = (243.5 * .17);
32           System.out.println("eleven = " + eleven);
33           int twelve = (3 / 3);
34           System.out.println("twelve = " + twelve);
35           int thirteen = ((4 * 2) -7);
36           System.out.println("thirteen = " + thirteen);
37           int fourteen = ((7 - (9 / 3)) / 1);
38           System.out.println("fourteen = " + fourteen);
39           int fifteen = (int) ((4.0 + 6.0) * ((2.0 + 2.0) / 8.0));
40           System.out.println("fifteen = " + fifteen);
41   
42   
43   
44   
45   
46   
47       }
48   }
49