วันศุกร์ที่ 19 ธันวาคม พ.ศ. 2557

Flowchart(รูปแบบการเขียนผังงาน)


Flowchart(รูปแบบการเขียนผังงาน)


1.รูปแบบSequence ผังงานตามลำดับ             

Flowchart (noun) - A visual representation of the sequence of steps and decisions needed to perform a process.Each step in the sequence is noted within a diagram shape. Steps are linked by connecting lines and directional arrows. This allows anyone to view the flowchart and logically follow the process from beginning to end.
Description of a Flowchart
Here's an example of a simple flowchart, which displays a process for warming a cup of coffee in a microwave oven.
What is a flowchart
You'll notice that the flowchart has different shapes. In this case, there are two shapes: those with rounded ends represent the start and end points of the process and the process steps are presented in rectangles. These are known asflowchart symbols, and are detailed in this article.

2.รูปแบบDecision การตัดสินใจ,ทางเลือก    

This structure is called a decision, "If Then.. Else" or a conditional. A question is asked in the decision shape. Depending on the answer the control follows either of two paths. In the chart above, if the temperature is going to be less than freezing (32 degrees Fahrenheit) the tomatoes should be covered. Most RFFlow stencils include the words "Yes" and "No" so you can just drag them onto your chart. "True" and "False" are also included in most of the flowcharting stencils.

3.รูปแบบLoopหรือIterationวนซ้ำ

This structure allows you to repeat a task over and over. The red chart above on the left does the task and repeats doing the task until the condition is true.  The green chart on the right checks the condition first and does the task while the condition is true. It is not important that you remember whether the loop is a "Do While" or "Repeat Until" loop, only that you can check the condition at the start of the loop or at the end. You can also have the conditions reversed and your loop is still a structured design loop. A slight variation of the above is the "For each...do the following" loop shown below.