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":23606,"date":"2015-10-22T16:42:40","date_gmt":"2015-10-22T21:42:40","guid":{"rendered":"http:\/\/aureliemartinette.wordpress.com\/?p=74"},"modified":"2015-10-22T16:42:40","modified_gmt":"2015-10-22T21:42:40","slug":"wsq09-tc101-2","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/wsq09-tc101-2\/","title":{"rendered":"WSQ09 #TC101"},"content":{"rendered":"Hi ,<\/p>\n
Here is my three factorial programs:<\/p>\n
I asked to the user a number then I created a function to display the value of the factorial.<\/p>\n
I used three method: first of all with the recursive solution then with the loops while and for !<\/p>\n
According to me, recursive solution was the easiest because you have to write in first the both special case with 0 and 1, then you add the formula that you know since you are younger.<\/p>\n
With the loops I used the same formula but I reasoned in the different way for each other :\u00a0With the for loop you have to know how many times you want to execute your code whereas with the while loop you have to find the good precondition.<\/p>\n
Then, I created a common menu to ask to the user if he wants to start\u00a0again or quit the program.<\/p>\n
I used the while loop. First, I asked the number, then I called my method. Then I ask the question y\/n.<\/p>\n
My\u00a0stop condition is when the user answers « no ».<\/p>\n
Have a good day !<\/p>\n