{"id":35942,"date":"2016-04-09T00:55:19","date_gmt":"2016-04-09T05:55:19","guid":{"rendered":"http:\/\/edmoprogramming.wordpress.com\/?p=448"},"modified":"2016-04-09T01:06:07","modified_gmt":"2016-04-09T06:06:07","slug":"wsq11-lovely-196-not","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2016\/2016\/04\/wsq11-lovely-196-not\/","title":{"rendered":"WSQ11, Lovely 196, not."},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignnone size-full wp-image-509\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/04\/77c2cb37e69d682464a64a8494d30c2d.jpg\" alt=\"maxresdefault\"   \/><\/p>\n<p>Hello people. I am here to post about the new program that I made and that takes me 10000000000 hours of headache. I was lost making this program, until I decided to ask for help to the dream team: Dar\u00edo, Baruquismen and Batmantec and also my teacher Ken, who tolds me that I had to start with a diagram to understand better the logic of the program.<\/p>\n<p>And well, for this program we have\u00a0to create a program that asks the user for two pieces of data:<\/p>\n<ul>\n<li>The lower bound of the sequence<\/li>\n<li>The upper bound of the sequence<\/li>\n<\/ul>\n<div>Then you check the values from the lower bound (inclusive) to the upper bound (inclusive) and make a report of them. During the analysis of each number, if a Lychrel number is found it should be reported immediately with something like \u201cFound a Lychrel number: 196\u201d<\/div>\n<div>The report must show:<\/div>\n<div>\n<ul>\n<li>The range of numbers analysed (lower to upper bound)<\/li>\n<li>The number of natural palindromes (no addition to inverse needed)<\/li>\n<li>The number of non-Lycherels encountered (become palindromes)<\/li>\n<li>The number of Lycherel number candidates (that did not converge to palindrome<\/li>\n<\/ul>\n<p>To make that I use a function called REVERSE to get the palindrome, and then, using conditionals (IF) I sent the result to Lychrel, NonLychrel or Palindrome.<\/p>\n<p>And that is my code:<\/p>\n<p><a href='https:\/\/edmoprogramming.wordpress.com\/2016\/04\/09\/wsq11-lovely-196-not\/c19\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"84\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/04\/412c8947da61faa3b9a5ee4742fb699c.jpg#038;h=84\" class=\"attachment-thumbnail size-thumbnail\" alt=\"c19\" data-attachment-id=\"504\" data-orig-file=\"https:\/\/edmoprogramming.files.wordpress.com\/2016\/04\/c19.png\" data-orig-size=\"1366,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"c19\" data-image-description=\"\" data-medium-file=\"https:\/\/edmoprogramming.files.wordpress.com\/2016\/04\/c19.png?w=300\" data-large-file=\"https:\/\/edmoprogramming.files.wordpress.com\/2016\/04\/c19.png?w=700\" \/><\/a><br \/>\n<a href='https:\/\/edmoprogramming.wordpress.com\/2016\/04\/09\/wsq11-lovely-196-not\/c192\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"84\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/04\/791e1f01a1b3af843e556e04ad65ddcb.jpg#038;h=84\" class=\"attachment-thumbnail size-thumbnail\" alt=\"c192\" data-attachment-id=\"505\" data-orig-file=\"https:\/\/edmoprogramming.files.wordpress.com\/2016\/04\/c192.png\" data-orig-size=\"1366,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"c192\" data-image-description=\"\" data-medium-file=\"https:\/\/edmoprogramming.files.wordpress.com\/2016\/04\/c192.png?w=300\" data-large-file=\"https:\/\/edmoprogramming.files.wordpress.com\/2016\/04\/c192.png?w=700\" \/><\/a><\/p>\n<p>On terminal:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-506\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/04\/8fa19c64b005a61bb42e4fe09ac4e8c1.jpg\" alt=\"g19\"   \/><\/p>\n<p>Thanks to Batmantec, Baruquismen, Dar\u00edo and Alberto (Cerritos sucks).<\/p>\n<p>Check my GitHub or one of the people that I mentioned before.<\/p>\n<p><a href=\"https:\/\/github.com\/eduardomrlsg\/TC101\/blob\/master\/WSQ11%20196\" rel=\"nofollow\">https:\/\/github.com\/eduardomrlsg\/TC101\/blob\/master\/WSQ11%20196<\/a><\/p>\n<p>Regards, EdMo.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<p>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/edmoprogramming.wordpress.com\/448\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/04\/47f3acedafeeaaae8bc87f9d219ebc44.jpg\" \/><\/a> <img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/04\/5ce13db0337e695dc173880b85f9719a.jpg#038;blog=105297467&#038;%23038;post=448&#038;%23038;subd=edmoprogramming&#038;%23038;ref=&#038;%23038;feed=1\" width=\"1\" height=\"1\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello people. I am here to post about the new program that I made and that takes me 10000000000 hours of headache. I was lost making this program, until I decided to ask for help to the dream team: Dar\u00edo, Baruquismen and Batmantec and also my teacher Ken, who tolds me that I had to &hellip; <a href=\"https:\/\/kenscourses.com\/tc101winter2016\/2016\/04\/wsq11-lovely-196-not\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WSQ11, Lovely 196, not.<\/span><\/a><\/p>\n","protected":false},"author":25,"featured_media":35944,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[45],"class_list":["post-35942","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-sin-categoria"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/35942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/comments?post=35942"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/35942\/revisions"}],"predecessor-version":[{"id":35954,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/35942\/revisions\/35954"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media\/35944"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media?parent=35942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/categories?post=35942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/tags?post=35942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}