Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101winter2015/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/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/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/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/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/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/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/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/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/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/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/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/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/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/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/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":2922,"date":"2015-02-02T07:48:47","date_gmt":"2015-02-02T13:48:47","guid":{"rendered":"http:\/\/kenscourses.com\/tc101winter2015\/?page_id=2922"},"modified":"2015-02-02T07:54:52","modified_gmt":"2015-02-02T13:54:52","slug":"wsq06-pick-a-number","status":"publish","type":"page","link":"https:\/\/kenscourses.com\/tc101winter2015\/course-home-page-for-tc1014\/wsqs-tc1014\/wsq06-pick-a-number\/","title":{"rendered":"WSQ06 – Pick a Number"},"content":{"rendered":"

What to Do<\/h2>\n
\"https:\/\/www.flickr.com\/photos\/dasprid\/8147975983\/\"<\/a>

https:\/\/www.flickr.com\/photos\/dasprid\/8147975983\/<\/p><\/div>\n

Write a program that picks a random integer in the range of 1 to 100.<\/p>\n

There are different ways to make that happen, you choose which one works best for you.<\/p>\n

\n
\n
\n

It then prompts the user for a guess of the value, with hints of \u2019too high\u2019 or \u2019too low\u2019 from the program.<\/p>\n

The program continues to run until the user guesses the integer. You could do something extra here including telling there user how many guesses they had to make to get the right answer.<\/p>\n

You might want to check that your program doesn’t always use the same random number is chosen and you should also split your problem solving into parts. Perhaps only generate the random number and print that as a first step.<\/p>\n<\/div>\n<\/div>\n<\/div>\n

Example Run<\/h2>\n

I have a number chosen between 1 and 100.
\nPlease guess a number between 1 and 100:\u00a0 50
\nI’m sorry but 50 is too high, try again: 25
\nI’m sorry but 25 is too low, try again: 42
\nYou got it! The right answer is indeed 42.
\nYou made 3 guesses to get the right number.<\/p>\n

What to Submit<\/h2>\n

As usual, create a blog post explaining what you did, where you found resources (books, videos, web pages, friends) to help you solve this. Remember to put the tag WSQ06 on your post so our blog hub picks that up.<\/p>\n

You should include your code either inline in the blog post (best option) and\/or a link to your actual code on Dropbox\/Google Drive\/GitHub.<\/p>\n

You may want to check how to get started on GitHub now, here is a good article to start with: http:\/\/readwrite.com\/2013\/09\/30\/understanding-github-a-journey-for-beginners-part-1<\/a><\/p>\n

And of course, leave any questions here as well as asking those questions on Twitter with the hashtag #TC1014 so we all see your question posted there.<\/p>\n","protected":false},"excerpt":{"rendered":"

What to Do Write a program that picks a random integer in the range of 1 to 100. There are different ways to make that happen, you choose which one works best for you. It then prompts the user for … Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":2926,"parent":331,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"tags":[65],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/pages\/2922"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=2922"}],"version-history":[{"count":3,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/pages\/2922\/revisions"}],"predecessor-version":[{"id":2927,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/pages\/2922\/revisions\/2927"}],"up":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/pages\/331"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media\/2926"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=2922"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=2922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}