ExpresionsThing.java
1    /* 
2     *Exploration of the construction of arithmetic expressions in the context of some very simple problem solving. 
3     */
4    package expressions;
5    
6    public class ExpresionsThing {
7        public static void main (String[] args){
8            double one = 3.14 * 5 + 5;
9            System.out.println("one = " + one);
10           double two = 3.14 * (5 + 5);
11           System.out.println("two = " + two);
12           double three = (3.14 * (5 + 5));
13           System.out.println("three = " + three);
14   // the one expression is incorrect because it is not fully parenthesized and the system does not know where to start working
15   // the two expression is not fully parenthesized but it works because the system know where to start
16   // the three expression is fully parenthesized
17           //Arithmetic expressions from english
18           int four = (2 * 3);
19           System.out.println("four = " + four);
20           double five = (0.5 * 55);
21           System.out.println("five = " + five);
22           double six = ((1/3.0) * 65.0);
23           System.out.println("six = " + six);
24           double seven = (five + six);
25           System.out.println("seven = " + seven);
26           //Computations based on simple geometric/algebraic conceptions
27           double eight = (3.14 * (11.3 * 11.3));
28           System.out.println("eight = " + eight);
29           double nine = (27.7 * 27.7);
30           System.out.println("nine = " + nine);
31           double ten = ((eight + nine)/2);
32           System.out.println("ten = " + ten);
33           double eleven = (0.17 * 243.5);
34           System.out.println("eleven = " + eleven);
35           //simple computations to solve Crypto problems
36           int twelve = (3/3);
37           System.out.println("twelve = " + twelve);
38           int thirteen = (7-(4+2));
39           System.out.println("thirteen = " + thirteen);
40           int fourteen = ((9+3)-(7+1));
41           System.out.println("fourteen = " + fourteen);
42           int fifteen = ((2+4)-((6+2)/8));
43           System.out.println("fifteen = " + fifteen);
44       }
45   
46   }