{"id":37380,"date":"2017-03-27T08:09:43","date_gmt":"2017-03-27T14:09:43","guid":{"rendered":"https:\/\/kenscourses.com\/tc1014winter2017\/?p=37380"},"modified":"2017-03-27T08:09:43","modified_gmt":"2017-03-27T14:09:43","slug":"wsq10-babylonian-method","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc1014winter2017\/instructor\/wsq10-babylonian-method\/","title":{"rendered":"WSQ10 &#8211; Babylonian Method"},"content":{"rendered":"<h2>Background<\/h2>\n<p>In this assignment you will write a function to calculate the square root of a number using the Babylonian method. You can search for that method, it will be easy to find.<\/p>\n<h2>What to Do<\/h2>\n<p>The function should receive a number and return floating point number. Obviously you should test your function, so create a main program that asks the user a value, calculates the square root and displays that.<\/p>\n<h2>What to Submit<\/h2>\n<p>As usual, create a blog post explaining what you did, where you found resources (books, videos, web pages, friends) to help you solve this. Remember to put the tag #WSQ10 on your post so our blog hub picks that up.<\/p>\n<p>You should include your code as a link to GitHub.<\/p>\n<p>And of course, leave any questions here as well as asking those questions in our Slack\u00a0channel so we all see your question posted there.<\/p>\n<h2>Feature Image Credit<\/h2>\n<figure id=\"attachment_37381\" aria-describedby=\"caption-attachment-37381\" style=\"width: 640px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.flickr.com\/photos\/brimley\/4156702926\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-37381\" src=\"https:\/\/kenscourses.com\/tc1014winter2017\/wp-content\/uploads\/2017\/03\/4156702926_cdcddb2c88_z.jpg\" alt=\"&lt;a title=&quot;Babylonian Fresco&quot; href=&quot;https:\/\/flickr.com\/photos\/brimley\/4156702926&quot;&gt;Babylonian Fresco&lt;\/a&gt; flickr photo by &lt;a href=&quot;https:\/\/flickr.com\/people\/brimley&quot;&gt;Brimley&lt;\/a&gt; shared under a &lt;a href=&quot;https:\/\/creativecommons.org\/licenses\/by-nc\/2.0\/&quot;&gt;Creative Commons (BY-NC) license&lt;\/a&gt; &lt;\/small&gt;\" width=\"640\" height=\"426\" srcset=\"https:\/\/kenscourses.com\/tc1014winter2017\/wp-content\/uploads\/2017\/03\/4156702926_cdcddb2c88_z.jpg 640w, https:\/\/kenscourses.com\/tc1014winter2017\/wp-content\/uploads\/2017\/03\/4156702926_cdcddb2c88_z-300x200.jpg 300w, https:\/\/kenscourses.com\/tc1014winter2017\/wp-content\/uploads\/2017\/03\/4156702926_cdcddb2c88_z-162x108.jpg 162w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><figcaption id=\"caption-attachment-37381\" class=\"wp-caption-text\"><a title=\"Babylonian Fresco\" href=\"https:\/\/flickr.com\/photos\/brimley\/4156702926\">Babylonian Fresco<\/a> flickr photo by <a href=\"https:\/\/flickr.com\/people\/brimley\">Brimley<\/a> shared under a <a href=\"https:\/\/creativecommons.org\/licenses\/by-nc\/2.0\/\">Creative Commons (BY-NC) license<\/a><\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Background In this assignment you will write a function to calculate the square root of a number using the Babylonian method. You can search for that method, it will be easy to find. What to Do The function should receive a number and return floating point number. Obviously you should test your function, so create &hellip; <a href=\"https:\/\/kenscourses.com\/tc1014winter2017\/instructor\/wsq10-babylonian-method\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WSQ10 &#8211; Babylonian Method<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":37381,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,24],"tags":[],"class_list":["post-37380","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-instructor","category-wsq"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/posts\/37380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/comments?post=37380"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/posts\/37380\/revisions"}],"predecessor-version":[{"id":37382,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/posts\/37380\/revisions\/37382"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/media\/37381"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/media?parent=37380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/categories?post=37380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/tags?post=37380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}