package expressions; //programs for the construvtion of the arithmethic expression in the context of some very simple problrm solving public class ExpressionsThings { public static void main(String[] args){ double one = 3.14 * 5 + 5; System.out.println("one = " + one); double two = 3.15 * ( 5 + 5 ); System.out.println("two = " + two); double three = ( 3.14 * ( 5 + 5)); System.out.println("three = " + three); int four = (2 * 3); System.out.println("four = " + four); double five = (55.0/2); System.out.println("five = " + five); double six = (65.0/3); System.out.println("six = " + six); double seven = five + six; System.out.println("Seven = " +seven); double eight = ( 3.14 * (11.3*11.3)); System.out.println("eight = " + eight); double nine = (27.7*27.7); System.out.println("nine = " + nine); double ten = ((eight+nine)/2); System.out.println("ten = " + ten); double eleven = ((17.0/100)*243.5); System.out.println("eleven = " + eleven); int twelve = (3/3); System.out.println("twelve = " + twelve); int thirteen = (7-(4+2)); System.out.println("thirteen = " + thirteen); int fourteen = (3+((9-7)-1)); System.out.println("fourteen = " + fourteen); int fifteen = ((4+6)/(8/(2*2))); System.out.println("fifteen = " + fifteen); } } // in the expression (3.14 * (5+5)); it doesnot produce expected result // (3.14 * (5+5)) is fully parenthesized