用常用的运算符和表达式,并熟练地进行计算和判断。声明下列变量并赋值,计算下列表达式的值,用布尔型变量Result和Double型变量Total存放结果,运行并观察计算结果。

a=3,b-4,c-"hello",d "bye"
表达式为
c.Length+15*2/4^2
(!(b = 3 + 1) &&(2 <b)) |(d = "N")((b=3+1)||(2<b)) /|(d ="N")

    Double a=3d;
    Double b=4d;
    String c="hello",d="bye";
    Boolean Result = (!(b == 3d + 1d) &&(2d <b)) ||("N".equals(d))&&((b == 3d + 1d)||(2d<b)) ||("N".equals(d));
    Double Total = c.length()+Math.pow(15*2/4,2);
    //或者Double Total = c.length()+(15*2/4)*(15*2/4);
    System.out.print("Result="+Result);
    System.out.print(",Total="+Total);