Calculates distance an object falls

Assignment instructions: http://www.cs.duke.edu/csed/newapt/gravity.html