{"id":466,"date":"2010-01-20T09:31:54","date_gmt":"2010-01-20T16:31:54","guid":{"rendered":"https:\/\/actionsnippet.com\/?p=2631"},"modified":"2010-01-20T09:31:54","modified_gmt":"2010-01-20T16:31:54","slug":"as-quiz-8","status":"publish","type":"post","link":"https:\/\/actionsnippet.com\/?p=466","title":{"rendered":"AS Quiz #8"},"content":{"rendered":"<p>Today&#8217;s quiz is not multiple choice. Instead, your task is to write a function that draws stairs that look like this:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/actionsnippet.com\/wp-content\/stairs.gif\" \/><\/p>\n<p>Your function should have the following arguments:<\/p>\n<pre>\r\ndrawStairs(graphics, stairNum);\r\n\/\/ you may include additional arguments for size, depth etc.. \r\n<\/pre>\n<p>Feel free to post your solution in the comments. <\/p>\n<p>I&#8217;ll post my solution for this in the comments tomorrow. There is also another multiple choice quiz in the pipeline for tomorrow&#8230;<\/p>\n<p><i>BONUS: Try to use as few Graphics class method calls as possible.<\/i><\/p>\n<p>You can see my solutions <a href=\"http:\/\/www.actionsnippet.com\/quiz_answers\/quiz_8.html\" target=\"blank\">here<\/a>. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s quiz is not multiple choice. Instead, your task is to write a function that draws stairs that look like this: Your function should have the following arguments: drawStairs(graphics, stairNum); \/\/ you may include additional arguments for size, depth etc.. Feel free to post your solution in the comments. I&#8217;ll post my solution for this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,146],"tags":[3,14,4,147],"class_list":["post-466","post","type-post","status-publish","format-standard","hentry","category-graphics","category-quiz","tag-actionscript","tag-as3","tag-flash","tag-quiz"],"_links":{"self":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=466"}],"version-history":[{"count":0,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/466\/revisions"}],"wp:attachment":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}