// The program computes the equation // Sin(1.0) + Cos(2.0) + Tan(3.0) + Square Root (15); // Liang-Jun Zhang ////////////////// class Eq { public static void main(String[] args) { double result; result = Math.sin(1.0) + Math.cos(2.0) + Math.tan(3.0) + Math.sqrt(15.0); System.out.println("The result of the equation is " + result); System.out.printf("The result (with two decimal places) is %.2f", result); } }