Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
234Activity
0 of .
Results for:
No results containing your search query
P. 1
Soal Latihan Algoritma Dan Pemrograman c.doc

Soal Latihan Algoritma Dan Pemrograman c.doc

Ratings:

5.0

(1)
|Views: 14,560 |Likes:
Published by farizi

More info:

Published by: farizi on Aug 16, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/11/2014

pdf

text

original

 
1
SOAL LATIHAN ALGORITMADAN PEMROGRAMAN C++
1.
 
Buatlah algoritma dan program untuk menghitung luas dan volume suatu balok dengan menggunakan program C++ dengan struktur urut. Adapun rumus luas daribalok adalah : (2*p*l) + (2*p*t) + (2*l*t), sedangkan volume balok adalah :Volume = p*l*t.
 
Jawab :
Alur Flowchart :
Start
Read P, l, tProsesLuas=(2*p*l)+(2*p*t)+(2*l*t)Volume = p*l*tWriteLuas, Volume
End
 
2
Source Code :
Tampilan setelah di eksekusi :
-o0o-
 
32.
 
buatlah algoritma program untuk menghitung total pembayaran dari pembelianseorang pelanggan toko. Dalam masalah ini ada ketentuan, apabila pembelianpelanggan tersebut sama dengan atau melebihi 100.000 , maka pelangganmendapat discount 10%, jika tidak pelanggan tersebut hanya mendapat discount5%. Gunakan struktur keputusan.
Flowchart
Start
Readbuy
if buy>=100000
Disc=buy*0.1
disc=buy*0.05
pay= buy - disc Pay =Buy - discPrintpay
End
True False

Activity (234)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
Diar Putri added this note
okk
Edo Galeria liked this
ELsa SeLvia liked this
Han Nief liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->