Flowchart

Flowchart

Introduction

ผังงาน Flowchart เป็นผังงานที่แสดงให้เห็นถึงแนวคิด และขั้นตอนการทำงานของโปรแกรม อีกทั้งยังช่วยให้มองเห็นภาพรวมของโปรแกรมทำให้เขียนโปรแกรมได้ง่ายขึ้น การเขียน Flowchart นั้นจะใช้สัญลักษณ์ต่าง ๆ แทนคำอธิบายและกระบวนการทำงานของโปรแกรมในแต่ละส่วนตั้งแต่เริ่มแรก จนถึงสิ้นสุดการทำงานของโปรแกรม เพื่อให้ผู้พัฒนาโปรแกรมได้เข้าใจแนวคิด และการทำงานที่ชัดเจนมากที่สุด


Input Process Output
Computer programs typically perform the following three-step process:
1. Input is received.
2. Some process is performed on the input.
3. Output is produced.
Input is any data that the program receives while it is running. One common form of input is data that is typed on the keyboard. Once input is received, some process, such as a mathematical calculation, is usually performed on it. The results of the process are then sent out of the program as output.

VARIABLES
Variable are:
- Storage location that have a name
- Name-value pairs

Valid Variable Names
Case sensitive. (Case matters!)
- Fruit and fruit are different variable
Must start with a letter.
- Can contain numbers.
- Underscores allowed in variable names
- Not allowed: + -

Valid Variable Names
first3letters = ‘ABC’
first_three_letters = ‘ABC’
firstThreeLetters. = ‘ABC’

-->