Step 2:
Program Design
In program design,
a solution is
designed using,
preferably,
structured programming techniques, including these following:
Top-Down Program Design.
- Major processing steps called program modules are identifiers.
(Examples of top-down design)
Pseudocode.
- An outline of the logic of the program that will write.
Example of pseudocode |
Flowcharts
- Graphic representations of the steps necessary to solve a programming problem.
(Flowchart symbols) |
(Example of flowchart) |
(Example of flowchart) |
(Example of flowchart) |
Logic structures
-Arrangements of the programming statements. there are 3 types, those are:
- Concatenation
One program statement followed by other.
(Examples of concatenation logic structure.) |
- Selection (IF-THEN-ELSE)
When a decision must be made.
Logical selection structure whereby
one of two paths
is followed according to IF,
THEN,
and ELSE
statements in a program.
See Selection structureS.
Logical selection structure whereby
one of two paths
is followed according to IF,
THEN,
and ELSE
statements in a program.
See Selection structureS.
- Repetition (loop) (DO UNTIL and DO WHILE)
When a process is repeated until condition is true.
- Loop structure in programming that appears
-The DO UNTIL loop means that
-In other words,
- Loop structure in programming
-The DO UNTIL loop means that
-In other words, this program
DO UNTIL
at the end of a loop.
the loop statements
will be executed at least once.
this program tells you
to DO option one UNTIL it is no longer true.
DO WHILE
that appears at the end of a loop.
the loop statements
will be executed at least once.
tells you
to DO option one UNTIL it is no longer true.
No comments:
Post a Comment