Take a look at this little web-progarm
http://galileo.phys.virginia.edu/classes/109N/more_stuff/Applets/ProjectileMotion/jarapplet.html
I know that it uses the following equation to calculate the range of the projectile without air resistance
R = (v^2 sin2(theta))/g
R - Range
v - intial...