Exercises

September 13 - September 18, 2006

  1. Implement and test a method that uses tail recursion to convert an array of integers into their absolute values.
  2. Design a recursive program to produce the following output:
    0
    0 1
    0 1 2
    0 1 2 3
    0 1 2 3 4
    0 1 2 3
    0 1 2
    0 1
    0

Sami Rollins