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