1 /* 2 *Exploring arithemtic expressions in the context of simple problem solving 3 */ 4 5 package expressions; 6 7 8 public class ExpressionsThing { 9 public static void main(String[] args){ 10 double one = 3.14 * 5 + 5; 11 System.out.println("one ="+one); 12 double two = 3.14 * (5 + 5); 13 System.out.println("two ="+two); 14 double three = (3.14 * (5 + 5)); 15 System.out.println("three ="+three); 16 int four = (2 * 3); 17 System.out.println("four = " + four); 18 double five = 55 * .5; 19 System.out.println("five= " + five); 20 double six = (.33333333 * 65 ); 21 System.out.println("six =" + six); 22 double seven = (.5 * 55) + (.333333 * 65); 23 System.out.println("seven = " + seven); 24 double eight = (3.14 * (11.3 * 11.3)); 25 System.out.println("eight =" + eight); 26 double nine = (27.7 * 27.7); 27 System.out.println("nine =" + nine); 28 double ten = ((27.7 * 27.7) + (3.14 * (11.3 * 11.3)) / 2); 29 System.out.println("ten = " + ten); 30 double eleven = .17 * 243.5; 31 System.out.println("eleven = " + eleven); 32 int twelve = (3 / 3); 33 System.out.println("twelve =" + twelve); 34 int thirteen = ((7 - 4) - 2); 35 System.out.println("thirteen = " + thirteen); 36 int fourteen = ((3 + 9) - (7 + 1)); 37 System.out.println("fourteen = " + fourteen); 38 int fifteen = 8 - 6 + 4 - (2/2); 39 System.out.println("fifteen = " + fifteen); 40 41 } 42 }