Lab 2

Due 9:30AM February 12, 2007

  1. Implement and test a method that uses tail recursion to convert an array of integers into their absolute values.
  2. Design and implement 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
    Your program should prompt the user for the total number of rows she wishes to print.


Sami Rollins