1 / 13

SUB PROGRAM (Procedure / Function)

SUB PROGRAM (Procedure / Function). Dasar Pemrograman Devi Fitrianah, S.Kom., MTI Teknik Informatika-Fasilkom UMB. Sub Program. Modularisasi Sederhana Reusability. Keuntungan. Top down dengan pendekatan divide and conquer Dikerjakan oleh beberapa orang

eithne
Download Presentation

SUB PROGRAM (Procedure / Function)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SUB PROGRAM (Procedure / Function) Dasar Pemrograman Devi Fitrianah, S.Kom., MTI Teknik Informatika-Fasilkom UMB

  2. Sub Program • Modularisasi • Sederhana • Reusability

  3. Keuntungan • Top down dengan pendekatan divide and conquer • Dikerjakan oleh beberapa orang • Lebih mudah dalam mencari kesalahan • Modifikasi sifatnya lokal • Memudahkan dokumentasi

  4. contoh Program Utama A1 A2 Call MODUL1 A3 A4 Call MODUL2 A5 A6 A7 MODUL1 M11 M12 M13 MODUL2 M21 M22 M23

  5. Karakteristik modul yang baik: • Fan in tinggi • Fan out rendah • Self contained

  6. Jenis sub program • Procedure • Function

  7. Contoh procedure Nama Prosedur Nama variabel lokal Isi prosedur Program utama Memanggil prosedur

  8. Variabel & Parameter • Variabel Lokal Vs Variabel Global • Parameter Actual Vs Parameter Formal • Passing By value Vs Passing By reference

  9. By value

  10. By Reference

  11. Lokal, global, aktual, formal, by value, by reference

  12. Buat programnya...

More Related