sumTo

Category: Programming
Author: Stuart Reges
Book Chapter: 4.2
Problem: sumTo
Write a method sumTo that takes an integer
   parameter n and that returns the sum of the first n reciprocals.  In other
   words:

	sumTo(n) returns (1 + 1/2 + 1/3 + 1/4 + ... + 1/n)

   For example, sumTo(2) should return the value 1.5 (1 + 1/2).  If sumTo is
   passed the value 0, it should return 0.0 as its result.  You may assume that
   sumTo is never passed a negative value.

   Write your solution to sumTo below.