more information

Pages

Wednesday, April 6, 2011

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.







  • Repetition (loop) (DO UNTIL and DO WHILE)
When a process is repeated until condition is true. 


DO UNTIL

- Loop structure in programming that appears
at the end of a loop.

-The DO UNTIL loop means that 
the loop statements
will be executed at least once.

-In other words, 
this program tells you
to DO option one UNTIL it is no longer true.  



DO WHILE 

- Loop structure in programming 
that appears at the end of a loop. 

-The DO UNTIL loop means that 
the loop statements
will be executed at least once.

-In other words, this program
tells you
to DO option one UNTIL it is no longer true.






















No comments:

Post a Comment