{"id":33891,"date":"2016-03-10T09:19:33","date_gmt":"2016-03-10T15:19:33","guid":{"rendered":"http:\/\/kenscourses.com\/tc101winter2016\/?p=33891"},"modified":"2016-03-10T09:20:07","modified_gmt":"2016-03-10T15:20:07","slug":"quiz-06","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2016\/2016\/03\/quiz-06\/","title":{"rendered":"Quiz 06"},"content":{"rendered":"<h2>Weekly Quiz<\/h2>\n<p>Write your code for the quiz, then:<\/p>\n<ul>\n<li>email your answers (as file attachments) to Ken.<\/li>\n<li>Most important: blog about your answers. You should explain the code, your process and link to code on GitHub.<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h2>The Quiz (same for both C++\/Python)<\/h2>\n<ol>\n<li>Write a function to calculate the greatest common denominator of two positive integers using Euclid\u2019s algorithm.<\/li>\n<\/ol>\n<h2>What to Do<\/h2>\n<p>The function should receive two integers and return an integer.Obviously you should test your function, so create a main program that asks the user for two values, calculates the gcd and displays that. \u00a0This page may help\u00a0<a href=\"https:\/\/www.khanacademy.org\/computing\/computer-science\/cryptography\/modarithmetic\/a\/the-euclidean-algorithm\">https:\/\/www.khanacademy.org\/computing\/computer-science\/cryptography\/modarithmetic\/a\/the-euclidean-algorithm<\/a><\/p>\n<h2>Get Creative, put style in your Blog Posts<\/h2>\n<p>Make the posts your expression, be good internet citizens but also have fun!<\/p>\n<figure id=\"attachment_33892\" aria-describedby=\"caption-attachment-33892\" style=\"width: 640px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.flickr.com\/photos\/waxesstatic\/2335673197\" rel=\"attachment wp-att-33892\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-33892\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/03\/2335673197_9375ff6b3f_z.jpg\" alt=\"flickr photo by waxesstatic https:\/\/flickr.com\/photos\/waxesstatic\/2335673197 shared under a Creative Commons (BY) license\" width=\"640\" height=\"480\" srcset=\"https:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/03\/2335673197_9375ff6b3f_z.jpg 640w, https:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/03\/2335673197_9375ff6b3f_z-300x225.jpg 300w, https:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/03\/2335673197_9375ff6b3f_z-144x108.jpg 144w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><figcaption id=\"caption-attachment-33892\" class=\"wp-caption-text\">flickr photo by waxesstatic https:\/\/flickr.com\/photos\/waxesstatic\/2335673197 shared under a Creative Commons (BY) license<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Weekly Quiz Write your code for the quiz, then: email your answers (as file attachments) to Ken. Most important: blog about your answers. You should explain the code, your process and link to code on GitHub.<\/p>\n","protected":false},"author":2,"featured_media":33892,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,154],"tags":[],"class_list":["post-33891","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-instructor","category-quizzes"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/33891","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/comments?post=33891"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/33891\/revisions"}],"predecessor-version":[{"id":33893,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/33891\/revisions\/33893"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media\/33892"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media?parent=33891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/categories?post=33891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/tags?post=33891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}