Download presentation
Presentation is loading. Please wait.
1
Lecture 2 (b) Introduction to Pascal
TPI4202 e-tp.ub.ac.id Lecture 2 (b) Introduction to Pascal
2
Struktur Dasar Program Pascal
Program name.p (Pascal source code) Part I: Header Dokumentasi Nama program; Part II: Declarations Konstanta Variabel; Part III: Statements begin : end.
3
Creating and Compiling Pascal in the CS Department
Text Editor Use a text editor to create file “filename.pas” PSPad filename.pas (Unix file) Pacal Program gpc Pacal Compiler a.out (Unix file) Machine Language Program
4
Source Code Vs. Executable Files
A file that contains the Pascal program code. It must end with a ‘dot-p’ or a ‘dot-pas’ suffix (program name.p). Can be viewed and edited. Cannot be executed. program smallest; begin : : end.
5
Header Dokumentasi Nama Program
(* * Tax-It v1.0: Program ini akan * menghitung secara elektronik * tingkat pengembalian pajak *) program taxIt; Nama Program
6
Declarations Daftar konstanta Daftar variabel
Daftar prosedur dan fungsi
7
Declaration Part I: Header Part II: Declarations Part III: Statements
Program documentation program name (input, output); Part II: Declarations Konstanta Variabel; Declare variables just after the const Part III: Statements begin : end.
8
Bahasa Pemrograman
9
Penerjemah
10
Tahapan
11
Pemrograman
12
Algoritma
13
Algoritma
14
Flow Chart
15
Flow Chart
16
Struktur Dasar
17
Sequence
18
Sequence
19
Selection
20
Selection
21
Selection
22
Looping
23
Looping
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.