Thursday, December 11, 2014

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

In English Language

1. Sequence 

 
The flowchart above demonstrates a sequence of steps. The reader would start at the Start shape and follow the arrows from one rectangle to the other, finishing at the End shape.  A sequence is the simplest flowcharting construction. You do each step in order. 
If your charts are all sequences, then you probably don't need to draw a flowchart. You can type a simple list using your word processor. The power of a flowchart becomes evident when you include decisions and loops.


------------------------------------------------------------

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 or 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. 

------------------------------------------------------------

ภาษาไทย
 
1. ผังงานตามลำดับ



เป็นผังงานที่มีโครงสร้างการกระทำตามลำดับกิจกรรมก่อนหลังที่เรียงเป็นลำดับ ต่อเนื่องกันไปเรื่อย ๆ การเขียนผังงานแบบลำดับจะเป็นโครงสร้างที่ง่ายที่สุดเหมาะสำหรับงานที่ไม่มี ความซับซ้อน ไม่มีการตรวจสอบเงื่อนไข และไม่ต้องการทำงานซ้ำ ๆ แต่ในบางครั้งผังงานแบบลำดับมักจะไปรวมอยู่ในผังงานแบบเลือก และแบบทำซ้ำในกรณีที่มีกิจกรรมทำงานต่อเนื่องกันไปเรื่อย ๆ โดยส่วนมากจะเป็นการจัดวาง กิจกรรมจากบนลงล่าง และจากซ้ายไปขวา 






------------------------------------------------------------

2. ผังงานแบบทางเลือก





โครงสร้างการทำงานแบบมีการเลือกมีรูปแบบที่ซับซ้อนกว่าโครงสร้างแบบเป็นลำดับรูปแบบที่ง่ายที่สุดของโครงสร้างแบบนี้คือ การเลือกแบบมีทางออก 2 ทาง ในการเลือกแบบมีทางออก 2 ทาง นี้จะมีทางออกจากสัญลักษณ์การตัดสินใจเพียง 2 ทาง คือ ใช่หรือไม่ใช่ เท่านั้น (แต่ระบบการเขียนผังงานระบบ อนุญาตให้มีทางออกจากการตัดสินใจได้มากกว่า 2 ทาง) 

-----------------------------------------------------------

3. ผังงานแบบทำซ้ำ


โครงสร้างการทำงานแบบทำซ้ำ จะทำงานแบบเดียวกันซ้ำไปเรื่อย ๆ ในขณะที่ยังเป็นไปตามเงื่อนไขหรือเงื่อนไขเป็นจริง จนกระทั้งเงื่อนไขเป็นเท็จจึงทำงานอื่นต่อไป  


------------------------------------------------------------