All of these listed items are to be on separate lines with spaces in between each explanatory item. The same applies to writing technical code.
Try to use scope terminators in your pseudocode and source code too. Each textbook and each individual designer may have their own personal style of pseudocode. In Pseudocode, they are used to indicate common input-output and processing operations.
Every programming language has its own keywords reserved words. Input Parameters: list, if appropriate; else None Returns: List, if appropriate.
Problem: Find all divisor of the number 12 I think you would have done this: Check if 12 is divisible by 1 Check if 12 is divisible by Each of these constructs can be embedded inside any other construct.
Example non-computer. In this case, we could use a while loop to determine that answer: The "pseudocode" for such an algorithm is: while the number is bigger than one keep dividing it by two.
Do not include data declarations in your pseudocode. Initialize total to zero Initialize counter to zero Input the first grade while the user has not as yet entered the sentinel add this grade into the running total add one to the grade counter input the next grade possibly the sentinel endwhile if the counter is not equal to zero set the average to the total divided by the counter print the average else print 'no grades were entered' endif 4.
The causes of this range from improper algorithms to ambiguous program flow.