{"id":31272,"date":"2016-02-13T17:10:13","date_gmt":"2016-02-13T23:10:13","guid":{"rendered":"http:\/\/orlando2120.wordpress.com\/?p=253"},"modified":"2016-02-13T17:52:21","modified_gmt":"2016-02-13T23:52:21","slug":"%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84quiz3%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2016\/2016\/02\/%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84quiz3%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84\/","title":{"rendered":"\u2044\u2044\u2044\u2044\u2044\u2044\u2044\u2044\u2044\u2044Quiz3\u2044\u2044\u2044\u2044\u2044\u2044\u2044\u2044\u2044\u2044"},"content":{"rendered":"<p><a href=\"http:\/\/www.proprofs.com\/quiz-school\/story.php?title=health-and-safety-quiz-7\" >Photograph credit<\/a><\/p>\n<p>Hi guys, you know I always make a video about wsq&#8217;s and quizzes. This time we had to make two programs in quiz 3, the distance program and the fibonacci program. Well I decided not to make a video about the distance program because it&#8217;s really not that difficult, instead I made a video about the two ways to make the fibonacci program. First I explain how to do it wit recursion and then with loops. Be sure to take a look at <a href=\"https:\/\/netosanchezb.wordpress.com\/2016\/02\/12\/quiz-03\/comment-page-1\/#comment-1\" >Ernesto&#8217;s Blog<\/a>\u00a0too<\/p>\n<p><a href=\"https:\/\/alexhfoo.wordpress.com\/2016\/02\/13\/quiz-3\/\" >Alexhfoo&#8217;s blog<\/a>: This guys blog is pretty cool, check it out.<\/p>\n<p><a href=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/tc1017quiz3.pdf\" >Link to the Quiz<\/a><\/p>\n<p>code:<\/p>\n<p><a href=\"https:\/\/github.com\/OrlandoLara21\/Coding-on-C-\/blob\/Engineer\/Distance\" >Distance.cpp<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/OrlandoLara21\/Coding-on-C-\/blob\/Engineer\/Fibonacci\" >Fibonacci.cpp<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/OrlandoLara21\/Coding-on-C-\/blob\/Engineer\/Fibloop\" >FibLoop.cpp<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/OrlandoLara21\/Coding-on-C-\/blob\/Engineer\/FibRecur\" >FibRecur.cpp<\/a><\/p>\n<p>Ok for the Distance program I used these images to help visualize what is going on:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-266\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/57eb48ff7cc6cb96b7371910e1ce7282.jpg\" alt=\"images\"   \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-268\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/1692ad55cad29aa9aa8569b84f8bcd59.jpg#038;h=68\" alt=\"images\" width=\"391\" height=\"68\" \/><\/p>\n<p>As you can see, that line is the distance we want to know, it is the hypotenuse if you look at the picture as a right triangle. So in our program we obviously have to use a squared function and a square root function. Those are pow() and sqrt() respectively. I got these functions from\u00a0<a href=\"http:\/\/www.cplusplus.com\/reference\/cmath\/?kw=cmath\" >here<\/a>. It is pretty simple, take a look at my program so you can see one way of doing it.<\/p>\n<p>Here is the video about recursion<\/p>\n<div class=\"jetpack-video-wrapper\"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text\/html' width='700' height='424' src='https:\/\/www.youtube.com\/embed\/4agL-MQq05E?version=3&#038;rel=1&#038;%23038;fs=1&#038;%23038;autohide=2&#038;%23038;showsearch=0&#038;%23038;showinfo=1&#038;%23038;iv_load_policy=1&#038;%23038;wmode=transparent' frameborder='0' allowfullscreen='true'><\/iframe><\/span><\/div>\n<p>And here is my tutorial.<\/p>\n<div class=\"jetpack-video-wrapper\"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text\/html' width='700' height='424' src='https:\/\/www.youtube.com\/embed\/7HdgzuzxnVk?version=3&#038;rel=1&#038;%23038;fs=1&#038;%23038;autohide=2&#038;%23038;showsearch=0&#038;%23038;showinfo=1&#038;%23038;iv_load_policy=1&#038;%23038;wmode=transparent' frameborder='0' allowfullscreen='true'><\/iframe><\/span><\/div>\n<p>Made by Orlando Lara<\/p>\n<p>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/orlando2120.wordpress.com\/253\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/791300373a4d0a0eec39d997af2a33b3.jpg\" \/><\/a> <img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/95d228bda17cd74221f7887d900a7385.jpg#038;blog=105225774&#038;%23038;post=253&#038;%23038;subd=orlando2120&#038;%23038;ref=&#038;%23038;feed=1\" width=\"1\" height=\"1\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Photograph credit Hi guys, you know I always make a video about wsq&#8217;s and quizzes. This time we had to make two programs in quiz 3, the distance program and the fibonacci program. Well I decided not to make a video about the distance program because it&#8217;s really not that difficult, instead I made a &hellip; <a href=\"https:\/\/kenscourses.com\/tc101winter2016\/2016\/02\/%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84quiz3%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84%e2%81%84\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u2044\u2044\u2044\u2044\u2044\u2044\u2044\u2044\u2044\u2044Quiz3\u2044\u2044\u2044\u2044\u2044\u2044\u2044\u2044\u2044\u2044<\/span><\/a><\/p>\n","protected":false},"author":39,"featured_media":31274,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[159,160,62,179],"class_list":["post-31272","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-lara","tag-sciencelife","tag-coding","tag-quiz3"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/31272","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\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/comments?post=31272"}],"version-history":[{"count":4,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/31272\/revisions"}],"predecessor-version":[{"id":31281,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/31272\/revisions\/31281"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media\/31274"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media?parent=31272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/categories?post=31272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/tags?post=31272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}