/*

* Using a recursive algorithm, calculates the result of x raised to an integer power.

*

* @param x The base number

* @param y The exponent

* @return x raised to the y power

*/

public int exponent(int x, int y)

{

 

 

 

 

 

 

 

 

}

 

 

 

 

/*

* Using a recursive algorithm, calculates the the sum of the digits from 1..n

*

* @param n The base number

* @return sum of digits from 1..n

*/

public int sum(int n)

{

 

 

 

 

 

 

 

 

}