Start with the algorithm you are using, and phrase it using words that are easily transcribed into computer instructions.
Indent when you are enclosing instructions within a loop or a conditional clause. A loop is a set of instructions that is repeated. A conditional clause is formed by a comparison and what to do if that comparison succeeds or fails. This technique makes sure it's easy to read.
Avoid words associated with a certain kind of computer language.
It turns out that there are some fairly standard words you can use. These include standard looping structures like the following:
FOR … ENDFOR
WHILE…ENDWHILE
There are also some terms for standard conditional clauses:
IF … ENDIF
WHILE … ENDWHILE (this is both a loop and a conditional clause by the way)
CASE … ENDCASE
There are more, but that's enough for us to present some examples.
Pseudocode is the expression of an algorithm in plain English (or French or German or Swedish or what have you) describing the logical steps in sequence and including any conditional execution or iterative execution. It reflects your understanding of the algorithm. There is nothing to learn (unless you are illiterate and have no knowledge of any natural language). found this article on Internet, here author describes the best way about the Pseudocode.
Answers
Writing pseudocode is pretty easy actually:
It turns out that there are some fairly standard words you can use. These include standard looping structures like the following:
There are also some terms for standard conditional clauses:
There are more, but that's enough for us to present some examples.
source: https://study.com/academy/lesson/writing-pseudocode-algorithms-examples.html
https://www.geeksforgeeks.org/how-to-write-a-pseudo-code/
@pallav
April 23,2020 At 04:56 AM
Solution #1
Pseudocode is the expression of an algorithm in plain English (or French or German or Swedish or what have you) describing the logical steps in sequence and including any conditional execution or iterative execution. It reflects your understanding of the algorithm. There is nothing to learn (unless you are illiterate and have no knowledge of any natural language). found this article on Internet, here author describes the best way about the Pseudocode.
@gulshannegi
June 07,2021 At 06:43 PM
Solution #2