Program Assignment #2 Final copy

Copy of routine to be submitted for grading.