{"id":38953,"date":"2016-11-07T17:51:45","date_gmt":"2016-11-07T23:51:45","guid":{"rendered":"http:\/\/angelmendozas.wordpress.com\/?p=199"},"modified":"2016-11-07T17:51:45","modified_gmt":"2016-11-07T23:51:45","slug":"validated-user-input-ensure-correctexpected-data-entry","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/validated-user-input-ensure-correctexpected-data-entry\/","title":{"rendered":"Validated user input (ensure correct\/expected data entry)"},"content":{"rendered":"<p class=\"syndicated-attribution\"><em> --Originally published at <a href=\"https:\/\/angelmendozas.wordpress.com\/2016\/11\/07\/validated-user-input-ensure-correctexpected-data-entry\/\"><a href=\"https:\/\/angelmendozas.wordpress.com\">angelmendozas<\/a><\/a><\/em><br \/><\/p>\n<p>To ensure the expected entry is correct you need to use a nested statement, so the program ensures the user input is exactly how you want it (well&#8230;the program).<\/p>\n<p><img class=\"alignnone size-full wp-image-255\" src=\"https:\/\/angelmendozas.files.wordpress.com\/2016\/11\/captura-de-pantalla-2016-11-07-a-las-17-45-52.png?w=1000\" alt=\"Captura de pantalla 2016-11-07 a las 17.45.52.png\" srcset=\"https:\/\/angelmendozas.files.wordpress.com\/2016\/11\/captura-de-pantalla-2016-11-07-a-las-17-45-52.png 377w, https:\/\/angelmendozas.files.wordpress.com\/2016\/11\/captura-de-pantalla-2016-11-07-a-las-17-45-52.png?w=150 150w, https:\/\/angelmendozas.files.wordpress.com\/2016\/11\/captura-de-pantalla-2016-11-07-a-las-17-45-52.png?w=300 300w\" sizes=\"(max-width: 377px) 100vw, 377px\"   \/><\/p>\n<p>The program uses float bc there\u00a0can be a positive or negative number in the input, then allows the user to write something with the input function, then as the comment says, it checks if the number is positive, negative or zero and prints whatever it is depending on the input.<\/p><br \/>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/angelmendozas.wordpress.com\/199\/\"><img alt=\"\" border=\"0\" src=\"http:\/\/feeds.wordpress.com\/1.0\/comments\/angelmendozas.wordpress.com\/199\/\" \/><\/a> <img alt=\"\" border=\"0\" src=\"https:\/\/pixel.wp.com\/b.gif?host=angelmendozas.wordpress.com&#038;blog=105404537&%23038;post=199&%23038;subd=angelmendozas&%23038;ref=&%23038;feed=1\" width=\"1\" height=\"1\" \/>","protected":false},"excerpt":{"rendered":"<p>&#8211;Originally published at angelmendozas To ensure the expected entry is correct you need to use a nested statement, so the program ensures the user input is exactly how you want it (well&#8230;the program). The program uses float bc there\u00a0can be a positive or negative number in the input, then allows the user to write something &hellip; <a href=\"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/validated-user-input-ensure-correctexpected-data-entry\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Validated user input (ensure correct\/expected data entry)<\/span><\/a><\/p>\n","protected":false},"author":17,"featured_media":255,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[34,370,33],"class_list":["post-38953","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-isc","tag-systems-engineering","tag-tc101"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38953","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/comments?post=38953"}],"version-history":[{"count":11,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38953\/revisions"}],"predecessor-version":[{"id":43027,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38953\/revisions\/43027"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media?parent=38953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/categories?post=38953"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/tags?post=38953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}