Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write a code in java. Write a recursive function with arguments Aand N, where A

ID: 3612582 • Letter: W

Question

write a code in java. Write a recursive function with arguments Aand N, where A is a double and N is an integer. N is greater thanor equal to zero. The function return A to the N-th power. When yourun the program, it looks like this: floating point number: 5.0integer: 2 answer: 25.0 5.0 and 2 are user input, 25.0 is theprogram's output. write a code in java. Write a recursive function with arguments Aand N, where A is a double and N is an integer. N is greater thanor equal to zero. The function return A to the N-th power. When yourun the program, it looks like this: floating point number: 5.0integer: 2 answer: 25.0 5.0 and 2 are user input, 25.0 is theprogram's output.

Explanation / Answer

please rate - thanks import java.util.*; public class recursivexponent {public static void main(String [] args) {Scanner in=new Scanner(System.in); double base; int exponent; System.out.print("enter a number whose power you want to find:"); base=in.nextDouble(); do { System.out.print("Enter the exponent: "); exponent=in.nextInt(); if(exponent