I\'ve been working on a program for a class that uses mass and diameter to calculate a planet\'s gravity according to the equation g = (G*m)/0.5d^2. I keep getting one digit val