FlowchartPooja AdakeThe flow chart outlines the steps for a material unit program. It initializes ports, sets the baud rate, displays messages on an LCD screen, and allows the user to select between monitoring or controlling two slaves. Based on the selection, it will either read and display data from a slave or allow controlling devices by turning them on and off. It also includes routines for key detection, data transmission and reception.
7. รูปแบบตามลาดับ(2/3)
START เริ่มต้น
A5 กาหนดค่าตัวแปร A มีค่าเป็น 5
B3 กาหนดค่าตัวแปร B มีค่าเป็น 3
CA+B เอาค่า A บวกกับ B แล้วเก็บไว้ใน C
print C พิมพ์ค่า C
STOP จบการทางาน
8. รูปแบบตามลาดับ(3/3)
START เริ่มต้น
A,B รับข้อมูลมาเก็บไว้ในตัวแปร A, B ทาง
แป้นพิมพ์
CA+B เอาค่า A บวกกับ B แล้วเก็บไว้ใน C
print C พิมพ์ค่า C
STOP จบการทางาน
9. แบบทางลือกึϸยว(2/5)
START เริ่มต้น
read age รับค่าใส่ตัวแปร age
age > 60
false เปรียบเทียบค่า age มากกว่า 60
true
ถ้าเป็นจริง พิมพ์ข้อความ You are old
“You are old”
ถ้าเป็นเท็จ ไม่ต้องทาอะไร
STOP จบการทางาน
10. แบบสองทางเลือก(3/6)
START เริ่มต้น
read age รับค่าใส่ตัวแปร age
false true
age > 60 เปรีบเทียบค่า age มากกว่า 60
“You are young” “You are old”
ถ้าเป็นจริง พิมพ์ข้อความ You are old
ถ้าเป็นเท็จ พิมพ์ข้อความ You are young
STOP จบการทางาน