It is bad practise to write a program without creating an algorithm first. By creating algorithms, you can work out the steps for solving the problem.
Some people create algorithms after writing programs which is a waste of time.
When algorithms are to be represented using flowcharts, make sure that the symbols used are correct.
Real-time processing and online processing are different.
When writing algorithms DO NOT use actual values in place of variable names. For example, if the question is to read three numbers, the statement should be written as Read num1,num2,num3 not Read 3,4,5.
It is important that you use the correct loop statement: if the question has statements like ‘1 to N,’ ‘100 numbers’, etc. use the FOR loop; if the question has statements like ‘a set of numbers’, ‘a group of numbers’, ‘terminated by 0’, ‘stopped by -1’, etc. use the WHILE loop or the REPEAT loop.
Make sure you use the correct logical operator. Many students mix up the > and < signs. Remember that the > sign is for ‘greater than’ and the < sign is for ‘less than’.
Remember that when you are using trace tables, when a new value comes in, the old value is replaced by the new value.
When an output statement is inside the loop, you will have outputs for every time that the loop executes.
When an output statement is outside the loop, you will only have one output.
Remember you MUST declare all variables and constants before their use.