/home/ssingh6/NetBeansProjects/CS1/src/expressions/ExpressionsThing.java
 1 /*
 2  * To change this license header, choose License Headers in Project Properties.
 3  * To change this template file, choose Tools | Templates
 4  * and open the template in the editor.
 5  */
 6 package expressions;
 7 
 8 /**
 9  *
10  * @author ssingh6
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         //the above two are incorrect
23         double three = (3.14*(5+5)); //Fully Parenthesized
24         System.out.println("three="+three);
25         int four;
26         four=2*3;
27         System.out.println("four="+four);
28         double five;
29         five=(0.5*55);
30         System.out.println("five=" +five);
31         double six= ((1/3)*65);
32         System.out.println("six="+six);
33         double seven=((double)1/3)*65+(55*((double)1/2));
34         System.out.println("seven=" +seven);
35         double eight= (3.14*(11.3*11.3));
36         System.out.println("eight" +eight);
37         double nine= (27.7*27.7);
38         System.out.println("nine=" +nine);
39         double ten= ((eight+nine)/2);
40         System.out.println("ten="+ten);
41         
42         double eleven=(((double)17/243.5)*100);
43         System.out.println("eleven=" +eleven);
44         int twelve= (3/3);
45         System.out.println("twelve="+twelve);
46         int thirteen= ((4*2)-7);
47         System.out.println("thirteen="+thirteen);
48         int fourteen= (9+3)-(7+1);
49         System.out.println("fourteen="+fourteen);
50         int fifteen= ((((4*2)+8)-6)/2);
51         System.out.println("fifteen="+fifteen);
52         
53         
54     }
55     
56 }
57