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":23549,"date":"2015-10-11T12:20:09","date_gmt":"2015-10-11T17:20:09","guid":{"rendered":"https:\/\/mferprogr.wordpress.com\/?p=88"},"modified":"2015-10-11T12:20:09","modified_gmt":"2015-10-11T17:20:09","slug":"on-to-functions-8","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/on-to-functions-8\/","title":{"rendered":"On to functions"},"content":{"rendered":"
\"by<\/a>
by Tibor Nagy<\/figcaption><\/figure>\n

I just did #WSQ08! I was having a little trouble with functions, but I think I understand now. I used to be the best of my class at\u00a0Prepa TEC programming, but now everyone is good and I felt I was way behind. I just hope I keep learning. As Ken, I think #It’sOkayToFail, since I believe that failure is the most efficient way to learn, and learning is the most efficient way to avoid failing!<\/p>\n

Here’s my code:<\/p>\n

#include <iostream>
\nusing namespace std;<\/p>\n

int sum(int x, int y){
\nint a=x+y;
\nreturn a;
\n}
\nint difference (int x, int y){
\nif (x<y){
\nint b=y-x;
\nreturn b;}
\nelse{
\nint c=x-y;
\nreturn c;}
\n}
\nint product(int x, int y){
\nint d=x*y;
\nreturn d;
\n}
\nint division(int x, int y){
\nif (x<y){
\nint e=y\/x;
\nreturn e;
\n}
\nelse{
\nint f=x\/y;
\nreturn f;
\n}
\n}
\nint remainder(int x, int y){
\nif (x<y){
\nint g=y%x;
\nreturn g;
\n}
\nelse{
\nint h=x%y;
\nreturn h;
\n}
\n}<\/p>\n

int main()
\n{
\nint a,b,c,d,e,f,g;
\ncout <<“write a number: “;
\ncin>>a;
\ncout <<“Write another number: “;
\ncin>>b;
\nc=sum(a,b);
\ncout<<“The sum of both numbers is= “<<c<<endl;
\nd=difference(a,b);
\ncout<<“The difference of both numbers is=”<<d<<endl;
\ne=product(a,b);
\ncout<<“The product of both numbers is= “<<e<<endl;
\nf=division(a,b);
\ncout<<“The result of the division of both numbers is= “<<f<<endl;
\ng=remainder(a,b);
\ncout<<“The remainder is= “<<g<<endl;<\/p>\n

return 0;
\n}<\/p>\n

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

I just did #WSQ08! I was having a little trouble with functions, but I think I understand now. I used to be the best of my class at Prepa TEC programming, but now everyone is good and I felt I was way behind. I just hope I keep learning. As Ken, I think #It’sOkayToFail, since I […]\"\"<\/p>\n","protected":false},"author":252,"featured_media":23548,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[233,39],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/23549"}],"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\/252"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=23549"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/23549\/revisions"}],"predecessor-version":[{"id":23550,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/23549\/revisions\/23550"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media\/23548"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=23549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=23549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=23549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}