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