{"id":36771,"date":"2017-02-09T09:34:45","date_gmt":"2017-02-09T15:34:45","guid":{"rendered":"https:\/\/kenscourses.com\/tc1014winter2017\/?p=36771"},"modified":"2017-02-09T09:35:11","modified_gmt":"2017-02-09T15:35:11","slug":"wsq-05-on-to-functions","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc1014winter2017\/instructor\/wsq-05-on-to-functions\/","title":{"rendered":"WSQ 05 &#8211; On To Functions"},"content":{"rendered":"<h2>What to Do<\/h2>\n<figure id=\"attachment_19212\" class=\"wp-caption alignleft\"><a href=\"http:\/\/kenscourses.com\/tc101fall2015\/wp-content\/uploads\/2015\/02\/8435953365_c4e01b3635_o.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-19212\" src=\"http:\/\/kenscourses.com\/tc101fall2015\/wp-content\/uploads\/2015\/02\/8435953365_c4e01b3635_o-300x200.jpg\" alt=\"creative commons licensed (BY) flickr photo by kevin dooley: http:\/\/flickr.com\/photos\/pagedooley\/8435953365\" width=\"300\" height=\"200\" \/><\/a><figcaption class=\"wp-caption-text\">creative commons licensed (BY) flickr photo by kevin dooley: http:\/\/flickr.com\/photos\/pagedooley\/8435953365<\/figcaption><\/figure>\n<p>You will go back and do WSQ01 \u2013 Fun with Numbers again.<\/p>\n<p>But this time, write a function for each calculation. Each function should define two parameters (in this example of type int) and return the correct value as an integer as well.<\/p>\n<p>You main program needs to ask the user for the input and then call each function to calculate the answer for each of the parts.<\/p>\n<h2>What to Submit<\/h2>\n<p>As usual, create a blog post explaining what you did, where you found resources (books, videos, web pages, friends) to help you solve this. Remember to put the tag #WSQ05 on your post so our blog hub picks that up.<\/p>\n<p>You should include your code either inline in the blog post (best option) and\/or a link to your actual code on Dropbox\/Google Drive\/GitHub.<\/p>\n<p>If you have not seen my video yet about the GUI tutorial for GitHub, go check that out: http:\/\/youtu.be\/YQmlksGFZWY<\/p>\n<p>And of course, leave any questions here as well as asking those questions on Twitter with the hashtag #TC1014 so we all see your question posted there.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What to Do creative commons licensed (BY) flickr photo by kevin dooley: http:\/\/flickr.com\/photos\/pagedooley\/8435953365 You will go back and do WSQ01 \u2013 Fun with Numbers again. But this time, write a function for each calculation. Each function should define two parameters (in this example of type int) and return the correct value as an integer as &hellip; <a href=\"https:\/\/kenscourses.com\/tc1014winter2017\/instructor\/wsq-05-on-to-functions\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WSQ 05 &#8211; On To Functions<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":19212,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,24],"tags":[],"class_list":["post-36771","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-instructor","category-wsq"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/posts\/36771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/comments?post=36771"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/posts\/36771\/revisions"}],"predecessor-version":[{"id":36772,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/posts\/36771\/revisions\/36772"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/media?parent=36771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/categories?post=36771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/tags?post=36771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}