2. Program Cycle
2. Program Cycle
Development
Cycle
The Program Development Cycle
1.Planning
- Programs are planned before they are actually
written by “programmers”. Writing a program
without first planning it, may lead to a lengthy
process and result to frequent errors.
- The planning stage is the stage where programmers
decide and define the tasks that should be performed
by the program. This involves identifying and defining
the problem in simpler terms, identifying the program
requirements and finally planning for the solution.
2. Designing
- After identifying the needs of the program, the
programmer needs to design the program to come
up with ways to implement solutions.
- This stage with the flow of the program, the way
it should produce the output and gather inputs,
the interface or the working environment of the
program, and how it should be used.
- In planning and designing a program you need to have an
understanding of the logic behind the program performance.
You also need to be acknowledgeable in the theory.
Programming
Languages
1. Fortran
2. Pascal
3. Visual Basic
4. Basic – Beginners all Purpose
symbolic instruction code
Tools in formulating the logic of programs.
1. Algorithms
• A descriptive list of steps for solving a
problem.
Sample problem: the amount of apple per kilo is
equal to 50 pesos. If the customer buys 3 or more
kilos of apples, 5 apples will be discounted for every
kilo. Determine the total cost of apples purchased.
Algorithm solution:
• Read the quantity of apples purchased in kilos.
• Calculate how much it will cost.
• Display the total cost of the purchased apples.
2. Pseudo code
• It is a combination of English phrases and
some computer terms that describe
algorithm steps in detail.
• Paragraph form.
3. Flowchart
• It is the visual representation of an
algorithm or the flow of logic in solving the
problem.
a. Terminal - this symbol represents the
beginning and the end of the program.