Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":23609,"date":"2015-10-22T16:10:21","date_gmt":"2015-10-22T21:10:21","guid":{"rendered":"http:\/\/saldabal.wordpress.com\/?p=76"},"modified":"2015-10-22T16:10:21","modified_gmt":"2015-10-22T21:10:21","slug":"on-to-functions-9","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/on-to-functions-9\/","title":{"rendered":"On to functions"},"content":{"rendered":"

For this task we were meant to create a programm that performs the same as the WSQ03. This means the programm would have to calculate the addition, substraction, multiplication, division and reminder of two INTEGERS given by the user, but this tame we had to declare one function for each calculation.<\/p>\n

To define a function you must type the special word “def” and then write the name of the function and after tht you can decide to put o or no to put parameters inside parenthesis, like this:<\/p>\n

def sum(a,b)<\/em><\/p>\n

The code i wrote is this:<\/p>\n

#Jorge Fernando Salda\u00f1a Cabal
\n# A01350730<\/p>\n

def add(x,y):
\nz = x+y
\nreturn z
\ndef sus(x,y):
\nz = x-y
\nreturn z
\ndef mul(x,y):
\nz = x*y
\nreturn z
\ndef div(x,y):
\nz = x\/\/y
\nreturn z
\ndef rem(x,y):
\nz = x%y
\nreturn z
\nprint ()<\/p>\n

print (‘Hey!, Do you want to make some math’)
\nprint(‘Lets make the basic operations: Addition, Sustraction, Multiplication and’)
\nprint(‘Division’)
\nprint()
\nx = int(input(‘Please enter your firste integer: ‘))
\nprint()
\ny = int(input(‘Please enter your second integer: ‘))
\nprint(‘The addition of your two numbers is: ‘, add(x,y), ‘, the sustracion is: ‘, sus(x,y))
\nprint(‘the multiplication is: ‘, mul(x,y), ‘, the division is: ‘, div(x,y))
\nprint(‘and its reminder is: ‘, rem(x,y))
\nprint (‘Thanks for using us.’)<\/p>\n

\n

Which will be seen as this with the values 3 and 6:<\/p>\n

\"Captura<\/a><\/p>\n

\"\"<\/a> \"\"<\/p>\n","protected":false},"excerpt":{"rendered":"

For this task we were meant to create a programm that performs the same as the WSQ03. This means the programm would have to calculate the addition, substraction, multiplication, division and reminder of two INTEGERS given by the user, but… Continue Reading →<\/a>\"\"<\/p>\n","protected":false},"author":202,"featured_media":23608,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[233,288],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/23609"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/users\/202"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=23609"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/23609\/revisions"}],"predecessor-version":[{"id":23610,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/23609\/revisions\/23610"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media\/23608"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=23609"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=23609"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=23609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}