Professional Documents
Culture Documents
การเขียนโปรแกรม
การเขียนโปรแกรม
2
Fortran , Cobol , Lisp , PL / 1 , Basic , Pascal , C ,
Ada , C++ , Perl , Java C
C
Flowchart
1.
""(Hardware)
"" (Software)
"" (Pepleware)
(Procedure)
5
1.1 (Hardware)
1.2 (Software)
2
1. (Operating System Software-OS)
Windows , Dos , Linux , Unix , Mac
2. (Application Software)
3
1.3 (Data)
1. (User)
2. (Supporter or Technician)
3. (Programmer :)
4. (System Analysis)
1.5 (Documentation/Procedure)
(Machine Language)
2.1
( 0 1 )
( )
1. (Low Level Language)
1.1 (Machine Language) (0
1)
9 + 3
10101010
9
00001001
3
00000011
9 + 3
00001001 10101010 00000011
--------->
9
+
3
-------->
1.2 (Assembly Language)
0 1
5
9 + 3
MOV AX, 9
MOV BX, 3
ADD AX, BX
2. (High Level Language)
(third-generation
language)
3. (Very high-level Language)
4 (fourth-generation language) 4GLs
5 10
100 4
4
(query language) SQL
(Structured Query Language)
4. (Nature Language)
5 (fifth generation language) 5GLs
(knowledge base
system)
5. (Object-Oriented Programming Language)
2.2
1.
2.
3.
4.
5.
BASIC
COBOL
FORTRAN
Pascal
C
C++
ALGOL
APL
LISP
LOGO
PL/I
PROLOG
RPG
OOP
PL/I
Pascal
IBM
(Artificial Intelligence)
2.3 (Translator)
(source program)
(Machine Language)
(Translator)
(object program)
3
1. (Assembler)
2. (Compiler)
3. (Interpreter)
( 0 1)
3.
6
1. (Problem Analysis)
1.
2.
3
4.
2. (Design)
(Pseudocode)
(Flow chart)
3. (Programming)
4. (Testing)
5. (Documentation)
6. (Maintenance)
4.
(Algorithm)
2
1. (pseudo code)
1. +
- * /
2.
3. pi 3.14
pi=3.14
( 3.14=pi )
4. Read Enter
Write Print
5.
10
2. (Flowchart)
1.
2.
3.
11
1. Process
Process
Process
Total
Total
2. Decision
Decision
12
(pseudo code) (Flowchart)
1
(pseudo code)
(Flowchart)
13
2
radius
area= 22/7 * radius * radius
area
radius
area
14
3 1,2,3,4,5, 20
( 1+2+3+4+5++20)
1. N 0
2. K 1
3. K N N
4. 1 K K
5. K 20 K 20 3
K 20
N=0
K=1
N=N+K
K=K+1
K< = 20
N
15
4
= +
7%
= +
16
1.1
1.
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
2. (OS) 5
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
3. 5
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
4.
............................................................................................................................................................
............................................................................................................................................................
5.
............................................................................................................................................................
............................................................................................................................................................
17
1.2
1.
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
2.
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
3. C
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
4.
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
5.(Complier)
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
18
1.3
1.
.
.
.
.
.
.
2.
.
.
3. Flowchart
.
.
4.
.
.
5.
.
.
6.
.
.
19
1.4
1. (Flowchart)
1. (Problem Analysis)
2.
2. (Design)
3.
3.
4.
5.
6.
7.
(Programming)
4. (Testing)
5. (Documentation)
6. (Maintenance)
8.
9.
10.
11.
12.
20
1.5
1.
2.
50
21
3.
70-79 3
60-69 2
80 4
50-59 1
50 0
4.
22
1.6 (Flowchart)
1.
23
2.
24
3.
50
50
25
4.
70-79 3
60-69 2
80 4
80 4
70-79 3
60-69 2
50-59 1
50-59 1
50 0
50 0
26
5.
27
Mind Mapping ( 1)
1.
2.
3.
4.
5.
1.
2.
3.
1.
2.
3.
-
..