{"id":569,"date":"2023-02-28T15:24:02","date_gmt":"2023-02-28T15:24:02","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/es\/software\/?page_id=569"},"modified":"2023-02-28T15:26:20","modified_gmt":"2023-02-28T15:26:20","slug":"pseudocode","status":"publish","type":"page","link":"https:\/\/blogs.glowscotland.org.uk\/es\/software\/software-design-and-development\/week-6\/pseudocode\/","title":{"rendered":"Pseudocode"},"content":{"rendered":"\n<p>Pseudocode is a plain language description of the steps in an algorithm or another system. Pseudocode often uses structural conventions of a normal programming language but is intended for human reading rather than machine reading. This allows programmers to share the logic of an algorithm even if each programmer is working in a different programming language. When writing pseudocode, it is important to remember:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>To define the steps of the main algorithm<\/li><li>To refine the main steps where possible (not all main steps need refined)<\/li><li>That there is no need to declare variables<\/li><li>Indentation should be used to help identify use of loops and selection statements<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>REPEAT UNTIL USER INPUTS AN X\n  ASK THE USER FOR THEIR AGE\n  IF AGE &gt;= 16\n    PRINT \"You are old enough to vote\"\n  ELSE\n    PRINT \"Sorry, you must wait until you are older\"<\/code><\/pre>\n\n\n\n<p class=\"nextlink\"><a href=\"https:\/\/blogs.glowscotland.org.uk\/es\/software\/software-design-and-development\/week-6\/refinements\/\" data-type=\"page\" data-id=\"573\">Next: Refinements<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pseudocode is a plain language description of the steps in an algorithm or another system. Pseudocode often uses structural conventions of a normal programming language but is intended for human reading rather than machine reading. This allows programmers to share the logic of an algorithm even if each programmer is working in a different programming&hellip; <a class=\"more-link\" href=\"https:\/\/blogs.glowscotland.org.uk\/es\/software\/software-design-and-development\/week-6\/pseudocode\/\">Continue reading <span class=\"screen-reader-text\">Pseudocode<\/span><\/a><\/p>\n","protected":false},"author":5710,"featured_media":0,"parent":24,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-569","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/es\/software\/wp-json\/wp\/v2\/pages\/569","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=569"}],"version-history":[{"count":3,"href":"https:\/\/blogs.glowscotland.org.uk\/es\/software\/wp-json\/wp\/v2\/pages\/569\/revisions"}],"predecessor-version":[{"id":575,"href":"https:\/\/blogs.glowscotland.org.uk\/es\/software\/wp-json\/wp\/v2\/pages\/569\/revisions\/575"}],"up":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/es\/software\/wp-json\/wp\/v2\/pages\/24"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/es\/software\/wp-json\/wp\/v2\/media?parent=569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}