Revision Questions (Computer) Ch 6 & 7 What is an algorithm? An algorithm is a step-by-step instruction given to the computer to solve a problem or perform a task. Steps to develop an algorithm Step 1 : Start Step 2 : Describe the problem. Step 3 : Develop the main step for an algorithm. Step 4 : Add detailed steps for each main step. Step 5 : Review and refine the algorithm if required. Step 6 : Stop/End. Characteristics of a good algorithm. Each instruction should be clear and have only one meaning. One step should have only instruction. Each instruction should be performed in finite time. No instruction should be repeated infinitely, i.e. the algorithm must end. After the instructions are executed, the user should get the results. Examples of algorithm Write an algorithm to find whether a number is odd or even. Step 1 : Start Step 2 : Enter a number N Step 3 : Check if the number is divisible by 2. Step 4 : If yes, than print N is an even number, else print N is an odd number.