Gunadarma University
Kelompok :
* Sugianto
* Miko Irianto
* Djaka
* Aris
* Achmad Fauzi
* Achmad Fariz
1DC01
CODING
Dim total_harga As Integer
Private Sub ChkBlause_Click()
harga = 10000
If ChkBlause.Value = vbChecked Then
total = total + harga
Else
If ChkBlause.Value = vbUnchecked Then
total = total – harga
End If
End If
Text_laundry = total
End Sub
Private Sub Chkcelanapanjang_Click()
harga = 10000
If Chkcelanapanjang.Value = vbChecked Then
total = total + harga
Else
If Chkcelanapanjang.Value = vbUnchecked Then
total = total – harga
End If
End If
Text_laundry = total
End Sub
Private Sub Chkdasi_Click()
harga = 5000
If Chkdasi.Value = vbChecked Then
total = total + harga
Else
If Chkdasi.Value = vbUnchecked Then
total = total – harga
End If
End If
Text_laundry = total
End Sub
Private Sub Chkjas_Click()
harga = 30000
If Chkjas.Value = vbChecked Then
total = total + harga
Else
If Chkjas.Value = vbUnchecked Then
End If
End If
Text_laundry = total
End Sub
Private Sub Chkkemeja_Click()
harga = 15000
If Chkkemeja.Value = vbChecked Then
total = total + harga
Else
If Chkkemeja.Value = vbUnchecked Then
total = total – harga
End If
End If
Text_laundry = total
End Sub
Private Sub Chkmukena_Click()
harga = 20000
If Chkmukena.Value = vbChecked Then
total = total + harga
Else
If Chkmukena.Value = vbUnchecked Then
total = total – harga
End If
End If
Text_laundry = total
End Sub
Private Sub Cmdok_Click()
biaya_tambahan = Text_tambahan.Text
biaya_laundry = Text_laundry.Text
total = Text_tambahan * Text_laundry
Text_totalharga.Text = total
End Sub
Private Sub Cmdselesai_Click()
End
End Sub
Private Sub Form_Load()
total = 0
End Sub
Private Sub Opt_1hari_Click()
Text_tambahan = 15000
End Sub
Private Sub Opt_2hari_Click()
Text_tambahan = 5000
End Sub
Private Sub Opt_express_Click()
Text_tambahan = 20000
End Sub
Private Sub Opt_regular_Click()
Text_tambahan = 0
End Sub
STEP ONE
Commentar