Powered By Blogger

Wednesday, December 3, 2014

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


การทำงานแบบตามลำดับ
(Sequence)

    
sequence flowchart
     
เป็นรูปแบบการเขียนผังงานที่ง่ายที่สุด โดยเขียนให้ทำงานจากบนลงล่าง เขียนคำสั่งเป็นบรรทัด และทำทีละบรรทัดจากบรรทัดบนสุดลงไปจนถึงบรรทัดล่างสุด สมมติให้มีการทำงาน 3 กระบวนการคือ อ่านข้อมูล คำนวณ และพิมพ์
    
     This flowchart 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. 





การเลือกกระทำตามเงื่อนไข

(Decision or Selection)


decision flowchart
     เป็นการเขียนผังงาน เพื่อนำค่าไปเลือกกระทำ โดยปกติจะมีเหตุการณ์ให้ทำ 2 กระบวนการ คือเงื่อนไขเป็นจริงจะกระทำกระบวนการหนึ่ง และเป็นเท็จจะกระทำอีกกระบวนการหนึ่ง แต่ถ้าซับซ้อนมากขึ้น จะต้องใช้เงื่อนไขหลายชั้น เช่นการตัดเกรดนักศึกษา เป็นต้น ตัวอย่างผังงานนี้ จะแสดงผลการเลือกอย่างง่าย เพื่อกระทำกระบวนการเพียงกระบวนการเดียว
     
     This structure is called a decision, "If Then.. Else" . A question is asked in the decision shape. Depending on the answer the control follows either of two paths





การทำซ้ำ
(Repeation or Loop)


loop flowchart
     การทำกระบวนการหนึ่งหลายครั้ง โดยมีเงื่อนไขในการควบคุม หมายถึงการทำซ้ำเป็นหลักการที่ทำความเข้าใจได้ยากกว่า 2 รูปแบบแรก เพราะการเขียนโปรแกรมแต่ละภาษา จะไม่แสดงภาพอย่างชัดเจนเหมือนการเขียนผังงาน ผู้เขียนโปรแกรมต้องจินตนาการด้วยตนเอง
     
     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






อ้างอิงจาก
http://www.rff.com/structured_flowchart.html
http://www.thaiall.com/flowchart/indexo.html




Tuesday, November 18, 2014

Pattanachai

Me

NAME : Pattanachai Chonglertvarawong

AGE : 13

BIRTHDAY : 18 July 2001

ADDRESS : 41/60 Naknivas 48 Ladprao 71

ROOM : 2/8

HOBBIES :  play games