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":2929,"date":"2015-02-02T08:05:14","date_gmt":"2015-02-02T14:05:14","guid":{"rendered":"http:\/\/kenscourses.com\/tc101winter2015\/?page_id=2929"},"modified":"2015-02-02T08:05:14","modified_gmt":"2015-02-02T14:05:14","slug":"wsq07-sum-of-numbers","status":"publish","type":"page","link":"https:\/\/kenscourses.com\/tc101winter2015\/course-home-page-for-tc1014\/wsqs-tc1014\/wsq07-sum-of-numbers\/","title":{"rendered":"WSQ07 – Sum of Numbers"},"content":{"rendered":"

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

https:\/\/www.flickr.com\/photos\/wisamallami\/2478134485\/<\/p><\/div>\n

Write a program that asks for a range of integers and then prints the sum of the numbers in that range (inclusive).<\/p>\n

You can use a formula to calculate this of course but what we want you to do here is practice using a loop to do repetitive work.<\/p>\n

For example, the sum from 6 to 10 would be 0 + 6 + 7 + 8 + 9 + 10.<\/p>\n

Notice our sum starts with zero (why?) and then we add each number in the range provided by the user. Just for fun, what is the mathematical formula to do this calculation?<\/p>\n

Example Run<\/h2>\n

We will calculate the sum of integers in the range you provide.
\nPlease give us the lower bound:\u00a0 1
\nPlease give us the upper bound: 10
\nThe sum from 1 to 10 (inclusive) is: 55<\/p>\n

Thoughts<\/h2>\n

How would you change your program to handle the user giving you the upper and lower bound in the wrong order? Or perhaps some other “user input error”?<\/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 WSQ07 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 asks for a range of integers and then prints the sum of the numbers in that range (inclusive). You can use a formula to calculate this of course but what we want you … Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"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\/2929"}],"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=2929"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/pages\/2929\/revisions"}],"predecessor-version":[{"id":2931,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/pages\/2929\/revisions\/2931"}],"up":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/pages\/331"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=2929"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=2929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}