Question: 1. Worth 15 points: Write a recursive function that accepts two arguments into the parameters x and y. The function should return the value of
1. Worth 15 points: Write a recursive function that accepts two arguments into the parameters x and y. The function should return the value of x times y. Remember, multiplication can be performed as repeated addition as follows: 7* 4+4+4+4+4+4+4+4 Submit java file 2. Worth 15 points: Write a method that uses recursion to raise a number to a power. The method should accept two arguments: the number to be raised and the exponent. Assume that the exponent is a nonnegative integer. Demonstrate the method in a program. Check this video for help: https://mediaplayer.pearsoncmg.com/assets/NwKg77B BbPnRp1K/1vmZeknyGeNsTy1 Submit java file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
