Search engine

Question by Dana:
Can anyone help with a math equation and Java script?

I’m taking a personal class and our group has been given this problem:

The discussion assignment assumes that we have an earth that is a perfectly round and smooth sphere with a rope going around it at the equator such that it fits very snugly. Your group is to define a JavaScript web site that will prompt for a height of a wall in terms of feet. The program then should compute how many feet must be added to the rope so that if a wall of that height were constructed around the equator, the rope will then snugly fit on top of the wall.

Our group has pondered for days and we cannot even come up with the math equation let alone writing a java script code for it.

Please help with the math and Java!


——————————————

Answer by spoxox
Here’s all the Java you need:

Now, as for the javascript that you need, that is different. Try the homework yourself first if you want to have any hope of passing the course.

Mathwise: Picture concentric circles. The inner circle is the original earth. The outer circle is the earth plus fence. The difference in RADIUS is the height of the fence. Clue ends here. :) good luck!

——————————————
Know better? Leave your own answer in the comments!