Pseudocode Purpose
- Is primarily meant for human readers but also has the secondary benefit of being "almost" code (i.e., similar to computer languages)
- Enhances problem solving
- Allows for relatively straightforward translation to (many) programming languages
How to Write Pseudocode
Pseudocode:
- Logic first (higher priority) and syntax later (lower priority)
- Keep it simple (strive for simplicity)
- Reuse logic that is available in the given context