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