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