{"id":294,"date":"2023-02-13T10:16:54","date_gmt":"2023-02-13T10:16:54","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/es\/software\/?page_id=294"},"modified":"2023-02-15T09:29:24","modified_gmt":"2023-02-15T09:29:24","slug":"challenge-2","status":"publish","type":"page","link":"https:\/\/blogs.glowscotland.org.uk\/es\/software\/software-design-and-development\/week-1\/challenge-2\/","title":{"rendered":"Challenge 2"},"content":{"rendered":"\n<p>Write a program that checks an integer variable called exam_mark. Start with exam_mark set to 70.<\/p>\n\n\n\n<p>If the variable is less than 0 or more than 100 print \u201cThis isn\u2019t a valid result.\u201d<\/p>\n\n\n\n<p>If the variable is between 0 and 50 (inclusive) print \u201cYou could do a lot better. Keep studying.\u201d<\/p>\n\n\n\n<p>If the variable is between 51 and 80 (inclusive) print \u201cGood work. But don\u2019t stop studying.\u201d<\/p>\n\n\n\n<p>If the variable is between 81 and 99 (inclusive) print \u201cGreat work. You really know your stuff.\u201d<\/p>\n\n\n\n<p>If the variable is 100 print \u201cI think you should be teaching this course now.\u201d<\/p>\n\n\n\n<p>Try changing the value of the variable to check that all your options work correctly.<\/p>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<p class=\"nextlink\"><a href=\"https:\/\/blogs.glowscotland.org.uk\/es\/software\/software-design-and-development\/week-1\/design\/\" data-type=\"page\" data-id=\"298\">Next: Design<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Write a program that checks an integer variable called exam_mark. Start with exam_mark set to 70. If the variable is less than 0 or more than 100 print \u201cThis isn\u2019t a valid result.\u201d If the variable is between 0 and 50 (inclusive) print \u201cYou could do a lot better. Keep studying.\u201d If the variable is&hellip; <a class=\"more-link\" href=\"https:\/\/blogs.glowscotland.org.uk\/es\/software\/software-design-and-development\/week-1\/challenge-2\/\">Continue reading <span class=\"screen-reader-text\">Challenge 2<\/span><\/a><\/p>\n","protected":false},"author":5710,"featured_media":0,"parent":14,"menu_order":10,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-294","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/es\/software\/wp-json\/wp\/v2\/pages\/294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/es\/software\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/es\/software\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/es\/software\/wp-json\/wp\/v2\/users\/5710"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/es\/software\/wp-json\/wp\/v2\/comments?post=294"}],"version-history":[{"count":3,"href":"https:\/\/blogs.glowscotland.org.uk\/es\/software\/wp-json\/wp\/v2\/pages\/294\/revisions"}],"predecessor-version":[{"id":331,"href":"https:\/\/blogs.glowscotland.org.uk\/es\/software\/wp-json\/wp\/v2\/pages\/294\/revisions\/331"}],"up":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/es\/software\/wp-json\/wp\/v2\/pages\/14"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/es\/software\/wp-json\/wp\/v2\/media?parent=294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}