{"id":31514,"date":"2016-02-15T20:51:25","date_gmt":"2016-02-16T02:51:25","guid":{"rendered":"http:\/\/batmantec.wordpress.com\/?p=261"},"modified":"2016-02-15T21:21:37","modified_gmt":"2016-02-16T03:21:37","slug":"quiz-3-6","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2016\/2016\/02\/quiz-3-6\/","title":{"rendered":"Quiz 3"},"content":{"rendered":"<p>Hey there, here is my quiz 3 results and solution, the instructions where the following ones:<\/p>\n<ol>\n<li>Write a function called distance(x1, y1, x2, y2) which receives four numbers which represent two points in the cartesian plane. The function should return the distance between the two points (x1,y1) and (x2,y2).<\/li>\n<li>Write a function called fibonacci which receives a single parameter \u201cn\u201d (a non-negative integer) and returns the nth number in the fibonacci series.<\/li>\n<\/ol>\n<p>Here I leave you a link to the quiz:\u00a0<a href=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/tc1017quiz3.pdf\" >QUIZ3<\/a><\/p>\n<p>For the first one, here I leave you all the pictures:<\/p>\n<p><a href=\"https:\/\/batmantec.wordpress.com\/2016\/02\/16\/quiz-3\/#gallery-261-1-slideshow\">Click to view slideshow.<\/a><\/p>\n<p>You can get access to the code in the following link:<\/p>\n<p><a href=\"https:\/\/gist.github.com\/batmantec\/03e91eda0605eef62746\" >https:\/\/gist.github.com\/batmantec\/03e91eda0605eef62746<\/a><\/p>\n<p>For the second one, it actually took more research, because I didn&#8217;t understand what is the sequence that the Fibonacci use, for it I consult a lot of websites, which I will list here.<\/p>\n<p><a href=\"http:\/\/www.maths.surrey.ac.uk\/hosted-sites\/R.Knott\/Fibonacci\/fib.html\" >http:\/\/www.maths.surrey.ac.uk\/hosted-sites\/R.Knott\/Fibonacci\/fib.html<\/a><\/p>\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Fibonacci_number\" >https:\/\/en.wikipedia.org\/wiki\/Fibonacci_number<\/a><\/p>\n<p><a href=\"http:\/\/platonicrealms.com\/encyclopedia\/Fibonacci-sequence\" >http:\/\/platonicrealms.com\/encyclopedia\/Fibonacci-sequence<\/a><\/p>\n<p>At the end, It was really weird how I did manage to make it, but It did gave me the results I was hoping for.<\/p>\n<p>Here I leave you some pictures of the code and the program running:<\/p>\n<p><a href=\"https:\/\/batmantec.wordpress.com\/2016\/02\/16\/quiz-3\/#gallery-261-2-slideshow\">Click to view slideshow.<\/a><\/p>\n<p>The link to the code is here:<\/p>\n<p><a href=\"https:\/\/gist.github.com\/batmantec\/3ab093f33ee801a6fbdf\" >https:\/\/gist.github.com\/batmantec\/3ab093f33ee801a6fbdf<\/a><\/p>\n<p>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/batmantec.wordpress.com\/261\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/f905f065b90b8411a41226e76e15a88e.jpg\" \/><\/a> <img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/21d77bb9d0c45dc1066b5732f8dbfbd9.jpg#038;blog=105220712&#038;%23038;post=261&#038;%23038;subd=batmantec&#038;%23038;ref=&#038;%23038;feed=1\" width=\"1\" height=\"1\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey there, here is my quiz 3 results and solution, the instructions where the following ones: Write a function called distance(x1, y1, x2, y2) which receives four numbers which represent two points in the cartesian plane. The function should return the distance between the two points (x1,y1) and (x2,y2). Write a function called fibonacci which &hellip; <a href=\"https:\/\/kenscourses.com\/tc101winter2016\/2016\/02\/quiz-3-6\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Quiz 3<\/span><\/a><\/p>\n","protected":false},"author":10,"featured_media":31521,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[58,52,179],"class_list":["post-31514","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-c","tag-education","tag-quiz3"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/31514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/comments?post=31514"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/31514\/revisions"}],"predecessor-version":[{"id":31523,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/31514\/revisions\/31523"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media\/31521"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media?parent=31514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/categories?post=31514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/tags?post=31514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}