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