{"id":32203,"date":"2016-02-17T23:30:01","date_gmt":"2016-02-18T05:30:01","guid":{"rendered":"http:\/\/rhcpalmarichiewordpresscom.wordpress.com\/?p=275"},"modified":"2016-02-18T00:06:18","modified_gmt":"2016-02-18T06:06:18","slug":"quiz-iii","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2016\/2016\/02\/quiz-iii\/","title":{"rendered":"Quiz III"},"content":{"rendered":"<p>Brace yourselves,\u00a0the partial is coming. Meanwhile, we have to answer a third quiz.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-280\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/01c7a5e186f11c0aca72c779691c9221.jpg\" alt=\"quiz3instructions.png\"   \/><\/p>\n<p>At the first point we had to find the distance between two points. If you represent this as an a triangle, it would be like Image 1 where A is (x1,y1) and B is (x2,y2), so we had to find the value of h.<\/p>\n<figure data-shortcode=\"caption\" id=\"attachment_284\" style=\"width: 178px\" class=\"wp-caption alignleft\"><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-284 alignleft\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/66232d588d75829f0b6e807aff350527.jpg#038;h=184\" alt=\"2000px-trigonometry_triangle-svg\" width=\"178\" height=\"184\" \/><figcaption class=\"wp-caption-text\">Image 1<\/figcaption><\/figure>\n<p>At first I tried to find the distance between each axis. This means what is the difference of x1 and x2 and what is the difference between y1 and y2. This got complicated to me since distance is absolute, yet the answer was given as negative in some occasions. This got fixed when I used a conditional to multiply it by -1 to make it positive.<\/p>\n<p>&nbsp;<\/p>\n<p>Then I got to the point to find h. I used the basic pythagoras theorem (C^2=A^2+B^2) \u00a0and then use the squareroot to get the answer. Ken teached me that there was a simplier way: use the distance command. Yet, It have me errors when running so I kept it at my mode since it works. Of course this does not means I am not going to fix what Ken helped me with. The code and how it runs looks like this:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-301\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/54ad1bfb395b0cc8e18e4a336213308c.jpg\" alt=\"pythagoras\"   \/><\/p>\n<p>For the second part of the quiz I had \u00a0a big time learning what to do. Firstly because I did not even know what the Fibonacci Numbers are. After I knew what they are, I searched all over the internet to see how to do it.\u00a0<a href=\"https:\/\/technobeans.wordpress.com\/2012\/04\/16\/5-ways-of-fibonacci-in-python\/\" >Technobeans<\/a>\u00a0showed me 5 different methods of how to do it; however, Naren&#8217;s method in the comments helped me better.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-311\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/bf7c4426e61202f7217eef32fe0250c7.jpg\" alt=\"fabonacci\"   \/><\/p>\n<p>Remember to keep checking my\u00a0<a href=\"https:\/\/github.com\/RichiePalma\/CoderRichie\">GitHub<\/a>\u00a0to see the code clearer.<\/p>\n<p>Time for you to meet Bloc Party&#8217;s &#8220;Helicopter&#8221;. I got into this band because of <\/p>\n<div class=\"post-limited-image\"><img decoding=\"async\" class=\"alignnone size-full wp-image-325\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/220a3098d299c2801661655ab2709702.jpg\" alt=\"helicopter\"   \/><\/div>\n<div class=\"post-limited-image\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/c288b34b65758b5ddd5b926b10ae1361.jpg\" \/><\/div>\n<div class=\"post-limited-image\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/ed8abdd26222189d2415087e7e5f0bbc.jpg#038;blog=105330260&#038;%23038;post=275&#038;%23038;subd=rhcpalmarichiewordpresscom&#038;%23038;ref=&#038;%23038;feed=1\" width=\"1\" height=\"1\" \/><\/div>\n<p><!--more--> Modern Love&#8221; at the end of the Season one of How I Met Your Mother, I will reference this show several times for your information, when Marshall Eriksen and Ted Mosby met a different faith at love. \u00a0When I heard this song, I remember hearing it somewhere.It was in Guitar Hero III, sorry.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-325\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/220a3098d299c2801661655ab2709702.jpg\" alt=\"helicopter\"   \/><\/p>\n<p>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/rhcpalmarichiewordpresscom.wordpress.com\/275\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/c288b34b65758b5ddd5b926b10ae1361.jpg\" \/><\/a> <img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/ed8abdd26222189d2415087e7e5f0bbc.jpg#038;blog=105330260&#038;%23038;post=275&#038;%23038;subd=rhcpalmarichiewordpresscom&#038;%23038;ref=&#038;%23038;feed=1\" width=\"1\" height=\"1\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Brace yourselves,\u00a0the partial is coming. Meanwhile, we have to answer a third quiz. At the first point we had to find the distance between two points. If you represent this as an a triangle, it would be like Image 1 where A is (x1,y1) and B is (x2,y2), so we had to find the value &hellip; <a href=\"https:\/\/kenscourses.com\/tc101winter2016\/2016\/02\/quiz-iii\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Quiz III<\/span><\/a><\/p>\n","protected":false},"author":33,"featured_media":32205,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[124,20,179],"class_list":["post-32203","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-ironfromice","tag-quiz","tag-quiz3"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/32203","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\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/comments?post=32203"}],"version-history":[{"count":3,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/32203\/revisions"}],"predecessor-version":[{"id":32217,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/32203\/revisions\/32217"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media\/32205"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media?parent=32203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/categories?post=32203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/tags?post=32203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}