Can you guys help me with this problem. I have no idea how to even start it.
The Babylonian method to calculate the square root of a positive number n is as follows:
1. make a guess at the answer (you can pick n/2 as your initial guess).
2. Compute r = n / guess.
3. Set guess = (guess + r) / 2.
4. Go back to step 2.
For part 1, you just need to repeat 5 times and stop (you could do it without a loop, but use one anyway.) For part 2, repeat until the guess is within 1% of the previous guess. You may want to start with just 5 loops to test whether it is working properly, then change it to work until the error gets small.