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