Question: Program should be written in Java language and be used with Eclipse. CPS 142 Assignment #4 Due: Thursday, February 28, 2019 tatic non-recursive method that

Program should be written in Java language and be used with Eclipse.
CPS 142 Assignment #4 Due: Thursday, February 28, 2019 tatic non-recursive method that receives, as parameters, two values: base and exponent and computes and returns, using a loop, base raised to the exponent power. The type of base is double and the type of exponent is integer. The method CANNOT call any Java methods to do the computation, just use a loop and basic arithmetic Write a static recursive method that receives, as parameters, two values: base and exponent and computes and returns, using recursion, base raised to the exponent power. The type of base is double and the type of exponent is integer. The method CANNOT call any Java methods to do the computation, just use recursion and basic arithmctic. The method CANNOT contain for, while or do..while statements and cannot use any data structures Each method should throw an IllegalArgumentException if base is zero and exponent is not positive. Each method should have standard Java comments before the method. Each method should return a double value. The methods cannot contain any break, continue, exit or goto statements. Neither method should read any values. Neither method should display anything Create a main method which demonstrates that both of your methods work correctly and produce the same results. Call the methods and displaying th results, including the base and exponent, for MANY (more than ten) test cases including: positive and negative bases and exponents in all possible combinations, large bases, bases close to zero, and zero exponents. Format the result so scientific notation does not get displayed, but show as many decimal places in your result as possible. This is a program to demonstrate that your methods work correctly, so it does not need to be "user friendly" since you are the user. If you go too large with your base and exponent you will get a non-numeric answer or an exception will be thrown, so avoid those in testing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
