NAMA KELOMPOK 2 :
- AGUNG ( NPM : 10111327 )
- DARMA ( NPM : 11111749 )
- IMAM FAISAL ( NPM :13111518)
- MUHAMMAD RIZKY JULIANTO ( NPM : 14111967 )
- RIZKI AMBUDI MUKTI ( NPM :
KELAS : 1KA37
TUGAS : PEMBUATAN PROGRAM
DOSEN : AGAM
KASUS : ini lah code barang dan daftar harga di toko baju, "HARIMATA", sebagai berikut :
- TSHIRT = 50000
- JAKET = 100000
- KEMEJA = 95000
- CELANA JEANS 3/4 = 130000
- CELANA JEANS PANJANG = 150000
- TOPI = 30000
- BOXER = 15000
- SEPATU = 120000
- ACCESORIS = 17000
- TAS RANSEL = 200000
FLOW CHART :
CODING NYA :
CLS
REM "***** program kelompok 2 *****"
LOCATE 5, 25
INPUT "Silahkan Masukan Code : ", code
IF code = 50000 THEN
LOCATE 7, 25
PRINT "TSHIRT Rp. 50000"
ELSEIF code = 100000 THEN
LOCATE 7, 25
PRINT "JAKET Rp. 100000"
ELSEIF code = 95000 THEN
LOCATE 7, 25
PRINT "KEMEJA Rp. 95000"
ELSEIF code = 130000 THEN
LOCATE 7, 25
PRINT "CELANA JEANS 3/4 Rp. 130000"
ELSEIF code = 150000 THEN
LOCATE 7, 25
PRINT "CELANA JEANS PANJANG Rp. 150000"
ELSEIF code = 30000 THEN
LOCATE 7. 25
PRINT "TOPI Rp. 30000"
ELSEIF code = 15000 THEN
LOCATE 7, 25
PRINT "BOXER Rp. 15000"
ELSEIF code = 120000 THEN
LOCATE 7, 25
PRINT "SEPATU Rp. 120000"
ELSEIF code = 17000 THEN
LOCATE 7, 25
PRINT "ACCESORIS Rp. 17000"
ELSEIF code = 200000 THEN
LOCATE 7, 25
PRINT "TAS RANSEL Rp. 200000"
ENDIF
PRINT OUT :
0 komentar:
Posting Komentar