ExpressionsThing.java
1    /* 
2     * This program gives opportunities to explore the constructing of 
3     * arithmetic expressions in the context of problem solving 
4     */
5    
6    package expressions;
7    
8    public class ExpressionsThing {
9        public static void main(String[] args) {
10           double one = 3.14 * 5 + 5;
11           System.out.println("one = " + one);
12           double two = 3.14 * (5 + 5);
13           System.out.println("two = " + two);
14           double three = (3.14 * (5 + 5));
15       // Expression one does not produce the correct result and expression three is fully parenthesized.
16           int four = (5 * 6);
17           System.out.println("four = " + four);
18           double five = (55 / 2);
19           System.out.println("five = " + five);
20           double six = (65 * (0.33333333));
21           System.out.println("six = " + six);
22           double seven = (five + six);
23           System.out.println("seven = " + seven);
24       // Simple geometric & algebraic conceptions below
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 = ((eight + nine) / 2);
30           System.out.println("ten = " + ten);
31           double eleven = (243.5 * .17);
32           System.out.println("eleven = " + eleven);
33       //Crypto Problems below
34           int twelve = (3 / 3);
35           System.out.println("twelve = " + twelve);
36           int thirteen = ((4 * 2) - 7);
37           System.out.println("thirteen = " + thirteen);
38           int fourteen = ((7 + 9) / (3 + 1));
39           System.out.println("fourteen = " +  fourteen);
40           int fifteen = (((8 * 4) - 2) / 6);
41           System.out.println("fifteen = " + fifteen);
42   
43       }
44   }
45