PROGRAM DEVELOPMENT LIFE CYCLE
A program is needed to instruct the computer about the way a task is to be performed. The instructions in a program have three essential parts:
1. Instructions to accept the input data that needs to be processed,
2. Instructions that will act upon the input data and process it, and
3. Instructions to provide the output to user
The instructions in a program are defined in a specific sequence. Writing a computer program is not a straightforward task. A person who writes the program (computer programmer) has to follow the Program Development Life Cycle.
Let’s now discuss the steps that are followed by the programmer for writing a program:
Problem Analysis—The programmer first understands the problem to be solved. The programmer determines the various ways in which the problem can be solved, and decides upon a single solution which will be followed to solve the problem.
Program Design—The selected solution is represented in a form, so that it can be coded. This requires three steps—
- An algorithm is written, which is an English-like explanation of the solution.
- A flowchart is drawn, which is a diagrammatic representation of the solution. The solution is represented diagrammatically, for easy understanding and clarity.
- A pseudo code is written for the selected solution. Pseudo code uses the structured programming constructs. The pseudo code becomes an input to the next phase.
The algorithm is coded using suitable programming languages.
The coded algorithm or program is compiled for any syntax errors. Syntax errors arise due to the incorrect use of programming language or due to the grammatical errors with respect to the programming language used. During compilation, the syntax errors, if any, are removed.
The successfully compiled program is now ready for execution.
Testing -The executed program generates the output result, which may be correct or incorrect. The program is tested with various inputs, to see that it generates the desired results. If incorrect results are displayed, then the program has semantic error (logical error). The semantic errors are removed from the program to get the correct results.
The successfully tested program is ready for use and is installed on the user’s machine.
Program Documentation and Maintenance—The program is properly documented, so that later on, anyone can use it and understand its working. Any changes made to the program, after installation, forms part of the maintenance of program. The program may require updating, fixing of errors etc. during the maintenance phase.
Comments
Post a Comment