- · LOGIC:
- · ALGORITHM:
Tools to write the logic and algorithms, one of which is the flowchart.
- · FLOWCHART:
- · SIMBOL Flowchart
- · Pedoman-pedoman dalam Membuat Flowchart:
2. Activity in the flow chart should be shown clearly.
3. Must be presented from which activity begins and where it will end (starting from one point of START and ends with END).
4. Each activity in the flow chart should be used a word that represents a job, for example:
- "Prepare a" document
5. Each activity in the flow chart should be in the proper sequence.
6. Activities that will be cut and spliced in other places should be shown clearly using symbolic links.
7. Use the flow chart symbols are standard.
Broadly speaking, There are 3 main sections in the flowchart:
B. IMPLEMENTASI DALAM PROGRAM PASCAL
- · PROGRAM:
Kumpulan instruksi (statements) yang disusun secara logis untuk memecahkan suatu masalah. Instruksi-instruksi yang digunakan disesuaikan dengan jenis bahasa pemrograman yang digunakan (reserved word yang disediakan).
- · Stuktur Penulisan Pascal:
Program Nama_Program;
uses
. . . {Unit-unit yang dipakai} ;
label
. . . {label-label yang dipakai } ;
const
. . . {pengumuman tetapan-tetapan} ;
type
. . . { pengumuman tipe-tipe data };
var
. . . { pengumuman peubah-peubah };
procedure Nama_Prosedur;
begin
. . .
end;
Function Nama_Fungsi;
begin
. . .
end;
{ Program utama }
begin
. . .
end.
No comments:
Post a Comment