public class Problem3 { public static void main(String[] args) { double c=2, d=1, q=0.2, x=5, y=3; double z; // (a) z = x*x + y*y*y; System.out.println("(a) z = " + z); // (b) z = 1/(1+ 1/c); System.out.println("(b) z = " + z); // (c) z = 5 / (4*(d+50)); System.out.println("(c) z = " + z); // (d) z = Math.sqrt(1 - Math.pow(Math.cos(q), 2)); System.out.println("(d) z = " + z); // (e) z = Math.abs(x*x*x - 5*x*x +x-3); System.out.println("(e) z = " + z); } }