OVERVIEW OF PROGRAMMING
Before learning to program in the language, BASIC, it is helpful to establish some context for the productive part of the entire programming effort. This context comprises the understanding and agreement that there are four funda-mental and discrete steps involved in solving a problem on a computer. The four steps are:
1. State, analyze, and define the problem.
2. Develop the program logic and prepare a program flowchart or decision table.
3. Code the program, prepare the code in machine readable form, prepare test data, and perform debug and test runs.
4. Complete the documentation and prepare operator procedures for implementation and production.
Programming can be complicated, and advance preparation is required before you can actually start to write or code the program. The first two steps, problem understanding/definition and flowcharting, fall into the advance planning phase of programming. It is important at this point to develop
Figure 1-1.—Evolution of a Program.
correct habits and procedures, since this will prevent later difficulties in pro-gram preparation.
Whether you are working with a systems analyst, a customer, or solving a problem of your own, it is extremely important that you have a thorough understanding of the problem.
Every aspect of the problem must be defined:
. What is the problem?
What information (or data) is needed?
. Where and how will the information be obtained?
. What is the desired output?
Starting with only a portion of the information, or an incomplete definition, will result in having to constantly alter what has been done to accommodate the additional facts as they become available. It is easier and more efficient to begin programming after all of the necessary information is understood.
0 comments:
Post a Comment