CS 2401 Quiz #3

Date: Tuesday, February 10, 2009.
Name: ____________________________________________

1. The exponential function exp(a,n) = an can be defined as follows: exp(a,0) = 1 and exp(a,n+1) = exp(a,n) * a. Use this definition to write a recursive method for computing the exponential function, and trace this method for a = 3 and n = 2.