{"id":30783,"date":"2016-02-09T14:37:15","date_gmt":"2016-02-09T20:37:15","guid":{"rendered":"http:\/\/josequirogablog.wordpress.com\/?p=206"},"modified":"2016-02-09T15:17:35","modified_gmt":"2016-02-09T21:17:35","slug":"wsq08-functions","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2016\/2016\/02\/wsq08-functions\/","title":{"rendered":"WSQ08 Functions"},"content":{"rendered":"<p>The functions allow to structure programs in segments of code to perform individual tasks.<\/p>\n<p>In this program I\u00b4m going to do the same as in the <a href=\"https:\/\/josequirogablog.wordpress.com\/2016\/01\/22\/wsq03-fun-with-numbers-operators\/\">WSQ03<\/a>, but using functions.<\/p>\n<p>You have to enter two numbers and the program will calculate:<\/p>\n<ul>\n<li>The difference of the two numbers.<\/li>\n<li>The product of the two numbers.<\/li>\n<li>The integer based division of the two numbers (so no decimal point). First divided by second.<\/li>\n<li>The remainder of integer division of the two numbers.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-222\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/db0301cb5e0ee53db6e7c8bcd6e3bde4.jpg\" alt=\"Captura de pantalla 2016-02-09 a las 11.05.07 a.m.\"   \/><img decoding=\"async\" class=\"alignnone size-full wp-image-223\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/55bd547f937d91e81ea77f88a9ce96e5.jpg\" alt=\"Captura de pantalla 2016-02-09 a las 11.05.10 a.m.\"   \/><img decoding=\"async\" class=\"alignnone size-full wp-image-221\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/674be488915c7be010de6e1be795975b.jpg\" alt=\"Captura de pantalla 2016-02-09 a las 11.05.23 a.m.\"   \/><\/p>\n<p>I will leave the code on GitHub, here is the <strong><a href=\"https:\/\/github.com\/Chema1807\/TC101\/blob\/master\/Functions\">link.<\/a><\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-182\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/c5643b1215c66010ecd536ea7e0d32ee.jpg#038;h=383\" alt=\"3dBOlpw_700wa_0\" width=\"479\" height=\"383\" \/><\/p>\n<p>TC101<\/p>\n<p>WSQ08<\/p>\n<p>&nbsp;<\/p>\n<p>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/josequirogablog.wordpress.com\/206\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/3fe73537d9a97d37771bcdd53a66d193.jpg\" \/><\/a> <img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/02\/956bca8066d59eeeefaa5eb2772c11cd.jpg#038;blog=105339983&#038;%23038;post=206&#038;%23038;subd=josequirogablog&#038;%23038;ref=&#038;%23038;feed=1\" width=\"1\" height=\"1\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The functions allow to structure programs in segments of code to perform individual tasks. In this program I\u00b4m going to do the same as in the WSQ03, but using functions. You have to enter two numbers and the program will calculate: The difference of the two numbers. The product of the two numbers. The integer &hellip; <a href=\"https:\/\/kenscourses.com\/tc101winter2016\/2016\/02\/wsq08-functions\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WSQ08 Functions<\/span><\/a><\/p>\n","protected":false},"author":18,"featured_media":30795,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[126,55],"class_list":["post-30783","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-wsq08","tag-programming"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/30783","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\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/comments?post=30783"}],"version-history":[{"count":3,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/30783\/revisions"}],"predecessor-version":[{"id":30807,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/30783\/revisions\/30807"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media\/30795"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media?parent=30783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/categories?post=30783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/tags?post=30783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}