วันพฤหัสบดีที่ 11 ธันวาคม พ.ศ. 2557

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

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.

RFFlow allows you to number your shapes if you wish. Run RFFlow and click on Tools, Number Shapes, and put a check mark in Enable numbers for the entire chart. You can also choose to have a number or not in each individual shape and you can quickly renumber your chart at any time.

รูปแบบตามลาดับ



เป็นรูปแบบการเขียนโปรแกรมที่ง่ายที่สุด ทางานทีละอย่างจากบนลงล่าง แสดงลาดับการทางานจากบนลงล่างตามลูกศร

 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.

เริ่มต้น กาหนดค่าตัวแปร A มีค่าเป็น 5 กำหนดค่าตัวแปร B มีค่าเป็น 3

เอาค่า A บวกกับ B แล้วเก็บไว้ใน C พิมพ์ค่า C

จบการทางาน


loop

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.

 


 

 

เริ่มต้น รับข้อมูลมาเก็บไว้ในตัวแปร A, B ทางแป้นพิมพ์

เอาค่า A บวกกับ B แล้วเก็บไว้ใน C พิมพ์ค่า C

จบการทางาน


START STOP C = A + B print C A , B

 

วันจันทร์ที่ 14 เมษายน พ.ศ. 2557

Name     : Nattapon Lertkijroongrueng
Age        :14 year olds
Address  :99/448 Kamnanman 28 Ekkachai Road Bangkuntien Jomthong Bangkok 10150
Birthday :9 July 2000
Hobbies  :Play basketball,Swimming,Football and Read a book