{"id":34277,"date":"2016-03-22T12:51:27","date_gmt":"2016-03-22T18:51:27","guid":{"rendered":"http:\/\/alexhfoo.wordpress.com\/?p=487"},"modified":"2016-03-22T13:29:10","modified_gmt":"2016-03-22T19:29:10","slug":"quiz-5-6","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2016\/2016\/03\/quiz-5-6\/","title":{"rendered":"Quiz #5"},"content":{"rendered":"<p>Hello everybody, I know that I hadn&#8217;t posted anything for a while but I&#8217;m back! With all the homework and projects, I didn&#8217;t have time to upload my codes even I had them on my computer. So heres is the Quiz #5.<\/p>\n<p>Basically, we are asked to create two\u00a0programs: the first one is supposed to read a string and determine if it is a palindrome or not. It&#8217;s like #YoSoy196 but this one with words. Even though I haven&#8217;t done the #YoSoy196 because there are some things that I&#8217;m not understanding, here is my code for the first program.\u00a0<img decoding=\"async\" class=\"alignnone size-full wp-image-497\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/03\/d3ae97617216698633bb2a5e1726e1f9.jpg\" alt=\"Captura de pantalla 2016-03-22 a las 12.26.42 p.m..png\"   \/><\/p>\n<p>As you can see, now we&#8217;re only working with boolean expressions. The options are just &#8216;It is a palindrome&#8217; or &#8216;It is not a palindrome&#8217;. So in the main function we receive our word, which it is a string. \u00a0Then our function called esPalindromo just compare our string and determine if it&#8217;s palindrome or not.<\/p>\n<p>Here is my code on GitHub. <a href=\"https:\/\/github.com\/AlexFooTC\/TC1017\/blob\/master\/quiz5pro1.cpp\">LINK<\/a><\/p>\n<p>Now, the second program had to print the addition of numbers divisible by 3. The user would type some values and the program had to determine which ones were divisible by 3 and add them. And here is the code for the second program. <a href=\"https:\/\/github.com\/AlexFooTC\/TC1017\/blob\/master\/quiz5pro2.cpp\">LINK2<\/a><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-503\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/03\/f010ddd6b60f21e72a8dc425f1e110e0.jpg\" alt=\"Captura de pantalla 2016-03-22 a las 12.34.16 p.m.\"   \/><\/p>\n<figure data-shortcode=\"caption\" id=\"attachment_52\" style=\"width: 2048px\" class=\"wp-caption alignnone\"><img decoding=\"async\" class=\"alignnone size-full wp-image-52\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/01\/7e37534da177f1b31eb840201b5adc56.jpg\" alt=\"24294566811_7004231734_k\"   \/><figcaption class=\"wp-caption-text\">Another Sunrise over the Alps by Rogg4n Link on Flickr: <a href=\"https:\/\/www.flickr.com\/photos\/128294308@N05\/24294566811\/in\/explore-2016-01-14\/\" rel=\"nofollow\">https:\/\/www.flickr.com\/photos\/128294308@N05\/24294566811\/in\/explore-2016-01-14\/<\/a><\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/alexhfoo.wordpress.com\/487\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/03\/242dcf62837da0c1c2a6206877efba37.jpg\" \/><\/a> <img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/03\/7dbe11fbd2458545908a4f20251e1b76.jpg#038;blog=105359199&#038;%23038;post=487&#038;%23038;subd=alexhfoo&#038;%23038;ref=&#038;%23038;feed=1\" width=\"1\" height=\"1\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello everybody, I know that I hadn&#8217;t posted anything for a while but I&#8217;m back! With all the homework and projects, I didn&#8217;t have time to upload my codes even I had them on my computer. So heres is the Quiz #5. Basically, we are asked to create two\u00a0programs: the first one is supposed to &hellip; <a href=\"https:\/\/kenscourses.com\/tc101winter2016\/2016\/03\/quiz-5-6\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Quiz #5<\/span><\/a><\/p>\n","protected":false},"author":50,"featured_media":34279,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[133],"class_list":["post-34277","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-quizzes"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/34277","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\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/comments?post=34277"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/34277\/revisions"}],"predecessor-version":[{"id":34286,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/34277\/revisions\/34286"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media\/34279"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media?parent=34277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/categories?post=34277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/tags?post=34277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}