Writing the program is called coding. In this step, you use the logic you develop in the program design stage to actually write the program. The coding can be done in any kind of languages (i.e. low level or high level languages).
As in other areas of life there are many ways to get the same places, in programming also there are various ways to get things done. Here are some of the qualities of a good program:
- It should be easily readable and understandable by people other than the original programmer. This is accomplished by including comments within the program.
- It should be efficient, increasing the programmer’s productivity.
- It should be reliable, able to work under all reasonable conditions and always get the correct output.
- It should be able to detect unreasonable or error conditions and indicate them to the programmer or user without stopping all operations – crashing the system.
- It should be easy to maintain and support after installation.
Three factors that make programs efficient are:
- The statements can be arranged into patterns that enhance readability.
- The variables – variables are symbolically named entities to which values are assigned – used are carefully and descriptively named.
- Comments can be inserted into the program to document the logic patterns and program flow.