Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/feed-rss2.php on line 8
‘#BabylonianMethod’ Articles at Courses by Ken https://kenscourses.com/tc101winter2015 Facilitator of Learning Experiences Fri, 10 Apr 2015 02:32:42 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ #WSQ13 https://kenscourses.com/tc101winter2015/2015/wsq13-23/ Fri, 10 Apr 2015 02:32:42 +0000 https://taniapardo.withknown.com/2015/wsq13 Continue reading ]]>

Babylonian Method is used to calculate square root, and in this program we implemented that method, if you want to know more about it, you can check this link: http://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method

First, the program asks the user for a float number; then, babylonian method is implemented in a loop that will be executed while the condition is true.

I think that this program is really simple, because you have the formula, and the only thing that you have to do is convert that formula in code.

Here you can see my code and the program working.

Also, you can find my code here:

GitHub: https://github.com/taniaprogram/SolvingProblemsWithProgramming/blob/master/root.cpp

Google Drive: https://drive.google.com/file/d/0B-NM4ghaDXBvT0V0T1hZVDBfWTg/view?usp=sharing

]]>
https://creativecommons.org/licenses/by/4.0/