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