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":20270,"date":"2015-09-02T09:10:20","date_gmt":"2015-09-02T14:10:20","guid":{"rendered":"http:\/\/mferprogr.wordpress.com\/?p=29"},"modified":"2015-09-02T09:10:20","modified_gmt":"2015-09-02T14:10:20","slug":"guess-the-number","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/guess-the-number\/","title":{"rendered":"Guess the number"},"content":{"rendered":"
\"The<\/a>
The man who always smiles! by Adnan Sharbaji<\/figcaption><\/figure>\n

I moved forward to #WSQ06. I really enjoyed doing it. It was kind of a challenge but I think I am already developing more programming skills. I had to make a code that would choose a random number from 1 to 100 for the user to guess. My main problem was that when I ran it, the program would always choose number 8. I first asked to a friend of mine, who studies Sistems Engineering, but he could no help me. So I asked Ken. He told me that the problem was the seed. I found this webpage that gave me the last hint:<\/p>\n

http:\/\/stackoverflow.com\/questions\/3693511\/rand-seeding-with-time-problem<\/a><\/p>\n

And now, here’s my code:<\/p>\n

#include <iostream>
\n#include <stdlib.h>
\nusing namespace std;
\nint main()
\n{
\nint number,guess, count=0;
\ncout<<“I have a number between 1 and 100″<<endl;
\nsrand((int)time(NULL));
\nnumber= rand() % 100 + 1;
\ncout<<“Try to guess the number:”;
\ncin>>guess;
\ncount = count + 1;<\/p>\n

while(guess != number){
\nif (guess>number)
\ncout<<“Too high”<<endl;
\nif (guess<number)
\ncout<<“Too low”<<endl;
\ncout<<“Try to guess the number:”;
\ncin>>guess;
\ncount = count + 1;
\n}
\ncout<<“That’s it! you guessed right.”<<endl<<cout<<“The number of times it took you to guess is:”<<count<<endl;<\/p>\n

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

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

I moved forward to #WSQ06. I really enjoyed doing it. It was kind of a challenge but I think I am already developing more programming skills. I had to make a code that would choose a random number from 1 to 100 for the user to guess. My main problem was that when I ran […]\"\"<\/p>\n","protected":false},"author":252,"featured_media":20269,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[167,39],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/20270"}],"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=20270"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/20270\/revisions"}],"predecessor-version":[{"id":20271,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/20270\/revisions\/20271"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media\/20269"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=20270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=20270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=20270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}