Pseudocode: Difference between revisions
No edit summary |
|||
Line 17: | Line 17: | ||
Print "passed" | Print "passed" | ||
else | |||
Print "failed" | Print "failed" | ||
</ | </syntaxhighlight> | ||
== What you must know == | == What you must know == | ||
Revision as of 11:50, 4 May 2016
This is an important concept you should fully understand this.
Pseudocode is an informal high-level description of the operating principle of a computer program or other algorithm. It uses the structural conventions of a normal programming language, but is intended for human reading rather than machine reading.[1]
Pseudocode is a simple way of writing programming code in English. Pseudocode is not actual programming language. It uses short phrases to write code for programs before you actually create it in a specific language. Once you know what the program is about and how it will function, then you can use pseudocode to create statements to achieve the required results for your program.[2]
Examples of pseudocode[edit]
If student's grade is greater than or equal to 60
Print "passed"
else
Print "failed"
What you must know[edit]
You must be able to correctly answer the following questions:
Why is this so important?[edit]
When you are first building a program, we don't really care about the actual LANGUAGE or SYNTAX you will use. Rather, we care about your logic. Pseudocode helps you by showing logic rather than syntax.