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