Answer:
import java.lang.Math;
public class MathLab {
public static void main(String[] args) {
double x = 2.0;
double y = 3.0;
double z = 4.0;
double power1 = Math.pow(x, z);
System.out.println("x to the power of z: " + power1);
double power2 = Math.pow(x, Math.pow(y, z));
System.out.println("x to the power of (y to the power of z): " + power2);
double absY = Math.abs(y);
System.out.println("Absolute value of y: " + absY);
double power3 = Math.pow(x * y, z);
double sqrt = Math.sqrt(power3);
System.out.println("Square root of (xy to the power of z): " + sqrt);
}
}