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