Page 97 - Modul PDKP 20
P. 97
Modul 3 – Array, Record dan Pemograman Modular 2020
Contoh Flowchart Transfer By Location :
MULAI MULAI
INPUT INPUT
Jumlah,harga Total
Total Jumlah*harga Total c*d
PROCEDURE OUTPUT
Total(jumlah,harga) d
OUTPUT SELASAI
harga
SELESAI
Gambar 3.9 Flowchart Transfer By Location
Contoh Pseudecode Transfer By Location :
Program TransferLocation2
Deklerasi
jumlah,harga:real
Procedure Total(jumlah:real; var d:real)
total:real
Mulai
Tulis(jumlah)
Tulis(harga
Total = jumlah x harga
Tulis(total)
Baca(d)
Selesai
Praktikum Dasar Komputer & Pemograman 2020 III-80