{"id":31725,"date":"2016-02-16T09:04:59","date_gmt":"2016-02-16T15:04:59","guid":{"rendered":"http:\/\/antonioangelm.wordpress.com\/?p=153"},"modified":"2016-02-16T09:08:00","modified_gmt":"2016-02-16T15:08:00","slug":"wsq08-on-to-the-functions","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2016\/2016\/02\/wsq08-on-to-the-functions\/","title":{"rendered":"WSQ08 \u2013 on to the functions"},"content":{"rendered":"<p>This program should give you the same results as the WSQ03 but using function for each operation.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-156\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/b32d4e51d08ce7b22ea7a20bf44c89bb.jpg\" alt=\"Captura de pantalla 2016-02-16 a las 8.59.42\"   \/><img decoding=\"async\" class=\"alignnone size-full wp-image-157\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/e2451805a7d8fbc3030c702543ac6a6f.jpg\" alt=\"Captura de pantalla 2016-02-16 a las 8.59.47\"   \/>So basically, I write single functions, to the sum, product, difference, and division operations. Using void instead of int. And this was kind of quickly because I just copy the main code from de WSQ03, and then I started to editing what I needed.<\/p>\n<p>Here&#8217;s the link to my GitHub.<\/p>\n<div class=\"embed-tc101winter2016\">\n<blockquote class=\"wp-embedded-content\"><p><a href=\"http:\/\/kenscourses.com\/tc101winter2016\/2016\/02\/wsq08-on-to-function\/\">WSQ08 &#8211; On To Functions<\/a><\/p>\n<\/blockquote>\n<p><script type='text\/javascript'><!--\/\/--><![CDATA[\/\/><!--\t\t!function(a,b){\"use strict\";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf(\"MSIE 10\"),h=!!navigator.userAgent.match(\/Trident.*rv:11.\/),i=b.querySelectorAll(\"iframe.wp-embedded-content\"),j=b.querySelectorAll(\"blockquote.wp-embedded-content\");for(c=0;c<j.length;c++)j[c].style.display=\"none\";for(c=0;c<i.length;c++)if(d=i[c],d.style.display=\"\",!d.getAttribute(\"data-secret\")){if(f=Math.random().toString(36).substr(2,10),d.src+=\"#?secret=\"+f,d.setAttribute(\"data-secret\",f),g||h)a=d.cloneNode(!0),a.removeAttribute(\"security\"),d.parentNode.replaceChild(a,d)}else;}}var d=!1,e=!1;if(b.querySelector)if(a.addEventListener)d=!0;if(a.wp=a.wp||{},!a.wp.receiveEmbedMessage)if(a.wp.receiveEmbedMessage=function(c){var d=c.data;if(d.secret||d.message||d.value)if(!\/[^a-zA-Z0-9]\/.test(d.secret)){var e,f,g,h,i,j=b.querySelectorAll('iframe[data-secret=\"'+d.secret+'\"]'),k=b.querySelectorAll('blockquote[data-secret=\"'+d.secret+'\"]');for(e=0;e<k.length;e++)k[e].style.display=\"none\";for(e=0;e<j.length;e++)if(f=j[e],c.source===f.contentWindow){if(f.style.display=\"\",\"height\"===d.message){if(g=parseInt(d.value,10),g>1e3)g=1e3;else if(200>~~g)g=200;f.height=g}if(\"link\"===d.message)if(h=b.createElement(\"a\"),i=b.createElement(\"a\"),h.href=f.getAttribute(\"src\"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener(\"message\",a.wp.receiveEmbedMessage,!1),b.addEventListener(\"DOMContentLoaded\",c,!1),a.addEventListener(\"load\",c,!1)}(window,document);\/\/--><!]]&gt;<\/script><iframe loading=\"lazy\" sandbox=\"allow-scripts\" security=\"restricted\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/2016\/02\/wsq08-on-to-function\/embed\/\" width=\"600\" height=\"338\" title=\"Embedded WordPress Post\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" class=\"wp-embedded-content\"><\/iframe><\/div>\n\n<br \/>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/antonioangelm.wordpress.com\/153\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/917e9e618e2c494523ff6c1c5fad8567.jpg\" \/><\/a> <img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/327201e32b1f62bd98adc1396dc8245e.jpg#038;blog=105485076&#038;%23038;post=153&#038;%23038;subd=antonioangelm&#038;%23038;ref=&#038;%23038;feed=1\" width=\"1\" height=\"1\" \/>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This program should give you the same results as the WSQ03 but using function for each operation. So basically, I write single functions, to the sum, product, difference, and division operations. Using void instead of int. And this was kind of quickly because I just copy the main code from de WSQ03, and then I &hellip; <a href=\"https:\/\/kenscourses.com\/tc101winter2016\/2016\/02\/wsq08-on-to-the-functions\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WSQ08 \u2013 on to the functions<\/span><\/a><\/p>\n","protected":false},"author":53,"featured_media":31738,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[31,126,105],"class_list":["post-31725","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-tc101","tag-wsq08","tag-just-chilling"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/31725","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\/53"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/comments?post=31725"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/31725\/revisions"}],"predecessor-version":[{"id":31745,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/31725\/revisions\/31745"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media\/31738"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media?parent=31725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/categories?post=31725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/tags?post=31725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}