{"id":1502,"date":"2017-11-24T16:57:17","date_gmt":"2017-11-24T05:57:17","guid":{"rendered":"http:\/\/education.dennis.net.au\/wordpress\/?p=1502"},"modified":"2017-11-24T16:57:17","modified_gmt":"2017-11-24T05:57:17","slug":"welcome-class-of-2018","status":"publish","type":"post","link":"http:\/\/education.dennis.net.au\/wordpress\/?p=1502","title":{"rendered":"Welcome, Class of 2018!"},"content":{"rendered":"<body><p>This site is where our weekly goals, homework and programming tasks will be posted.<\/p>\n<p>Make sure you bookmark it!<\/p>\n<p>Your task for our second double period, leading into holiday homework, is as follows:<\/p>\n<p>1. Build a \u201cmagic eight-ball\u201d program that will respond with random predictions when asked a question.<\/p>\n<p>Here is a sample:<br>\n<code><br>\nHello! I'm a magic eight ball! What's your name?<br>\nYour Name: Nina<br>\nWelcome, Nina! Please ask your question!<br>\nYour Question: Do you like pie?<br>\nYour question was:<br>\nDo you like pie?<br>\nMy response is:  Most likely.<br>\nWould you like to ask another question? (y\/n)<br>\n<\/code><\/p>\n<p>TIP: Remember to use a <i>while<\/i> loop so the eight-ball asks if you\u2019d like to ask another question.  You will also need to use the <i>random<\/i> package (<b>import random<\/b>) that was demonstrated to you in class.<\/p>\n<p>2. Extension: Write a \u2018choose your own adventure\u2019 game, where players are presented with a scenario and then given options at each turn to choose their path.<\/p>\n<li>Example:<br>\n<code><br>\nYou are on a planet full of dragons. In the north and east you see two caves. In one cave, the dragon is friendly and will share his treasure with you. The other dragon is greedy and hungry, and will eat you on sight.<br>\nWhich cave will you go into? (north or east)<br>\n<strong>&gt; north<\/strong><br>\nYou approach the northern cave...<br>\nIt is dark and spooky...<br>\nA large dragon jumps out in front of you! He opens his jaws and...<br>\n            gobbles you down in one bite!<br>\nDo you want to play again? (yes or no)<br>\n<strong>&gt; no<\/strong><br>\n<\/code>\n<p>The first program is due first week back \u2013 if you get stuck, send me an email!<\/p><\/li>\n<\/body>","protected":false},"excerpt":{"rendered":"<p>This site is where our weekly goals, homework and programming tasks will be posted. Make sure you bookmark it! Your task for our second double period, leading into holiday homework, is as follows: 1. Build a \u201cmagic eight-ball\u201d program that will respond with random predictions when asked a question. Here is a sample: Hello! I&#8217;m &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/education.dennis.net.au\/wordpress\/?p=1502\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Welcome, Class of 2018!&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1502","post","type-post","status-publish","format-standard","hentry","category-curriculum"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/education.dennis.net.au\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1502"}],"collection":[{"href":"http:\/\/education.dennis.net.au\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/education.dennis.net.au\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/education.dennis.net.au\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/education.dennis.net.au\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1502"}],"version-history":[{"count":0,"href":"http:\/\/education.dennis.net.au\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1502\/revisions"}],"wp:attachment":[{"href":"http:\/\/education.dennis.net.au\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/education.dennis.net.au\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1502"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/education.dennis.net.au\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}