--Originally published at tc1017 – chivas4ever2009
For this programm we had to create a function to calculate the square of a number using the babylonian method. First, I had to investigate what the heck was the Babylonian Method because I had no clue. It was easy after I found this flowchart that I will post below. Also I included another function that calculated the square root in the traditional way just to verify that the babylonian method was correct.
***Important stuff***
+Functions are everything. Basically this partial was all about functions.
+Remember there are several ways to do the same thing.
+Do your programms by parts.