Download presentation
Presentation is loading. Please wait.
Published byIbrahim Brooking Modified over 10 years ago
1
Dasar Pemrograman Devi Fitrianah, S.Kom., MTI Teknik Informatika-Fasilkom UMB SUB PROGRAM (Procedure / Function)
3
Sub Program Modularisasi Sederhana Reusability
4
Keuntungan Top down dengan pendekatan divide and conquer Dikerjakan oleh beberapa orang Lebih mudah dalam mencari kesalahan Modifikasi sifatnya lokal Memudahkan dokumentasi
5
contoh Program Utama A1 A2 Call MODUL1 A3 A4 Call MODUL2 A5 A6 A7 MODUL1 M11 M12 M13 MODUL2 M21 M22 M23
6
Karakteristik modul yang baik: Fan in tinggi Fan out rendah Self contained
7
Jenis sub program Procedure Function
8
Contoh procedure Nama Prosedur Nama variabel lokal Program utama Memanggil prosedur Isi prosedur
9
Variabel & Parameter Variabel Lokal Vs Variabel Global Parameter Actual Vs Parameter Formal Passing By value Vs Passing By reference
10
By value
11
By Reference
12
Lokal, global, aktual, formal, by value, by reference
13
Buat programnya...
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.