1 ///Through the use of expressions and the Crypto Program, 2 ///this program presents the opportunity to learn how to better problem solve 3 /// and how to create fully parenthesized arithmetic expressions 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)); ///Fully Parenthesized and correct 13 System.out.println("three= " + three); 14 15 int four = (2 * (3)); 16 System.out.println("four = " + four); 17 18 double five = (55.0 / (2.0)); 19 System.out.println("five = " + five); 20 21 double six = (65.0 / (3.0)); 22 System.out.println("six =" + six); 23 24 double seven = (55.0 / (2.0)) + (65.0 / (3.0)); 25 System.out.println("seven =" + seven); 26 27 double eight = (3.14 * (11.3 * 11.3)); 28 System.out.println("eight =" + eight); 29 30 double nine = (27.7 * 27.7); 31 System.out.println("nine =" + nine); 32 33 double ten = (3.14 * (11.3 * 11.3)) / (2.0) + (27.7 * 27.7) / (2.0); 34 System.out.println("ten =" + ten); 35 36 double eleven = (.17 * 243.5); 37 System.out.println("eleven =" + eleven); 38 39 int twelve = (3 / 3); 40 System.out.println("twelve = " + twelve); 41 42 int thirteen = (7 - 4) - (2); 43 System.out.println("thirteen =" + thirteen); 44 45 int fourteen = (9 - 1) + (3 - 7); 46 System.out.println("fourteen =" + fourteen); 47 48 int fifteen = (8 / 4) / (2) - (2) + (6); 49 System.out.println("fifteen =" + fifteen); 50 } 51 } 52