RSS

Tugas 6

GAJI GOLONGAN

Private Sub cbogolongan_Click()
Dim gaji, pajak, Tunjangan, total As Variant
Select Case cbogolongan.Text
Case “I”
gaji = 1500000
Tunjangan = 150000
Case “II”
gaji = 2000000
Tunjangan = 200000
Case “III”
gaji = 2500000
Tunjangan = 250000
Case “IV”
gaji = 3000000
Tunjangan = 300000
Case Else
gaji = 0
Tunjangan = 0
End Select
Txtgaji.Text = gaji
total = gaji + Tunjangan
pajak = total * 0.1
Txttunjangan.Text = Tunjangan
Txtpajak.Text = pajak
Txttotal.Text = total – pajak
End Sub

Private Sub CMDBATAL_Click()
Text1.Text = “”
Text2.Text = “”
cbogolongan.Text = “”
Txtgaji.Text = “”
Txttunjangan.Text = “”
Txtpajak.Text = “”
Txttotal.Text = “”
End Sub

Private Sub CMDKELUAR_Click()
Unload Me
End Sub

Private Sub CMDLAGI_Click()
Text1.Text = “”
Text2.Text = “”
cbogolongan.Text = “”
Txtgaji.Text = “”
Txttunjangan.Text = “”
Txtpajak.Text = “”
Txttotal.Text = “”
cbogolongan.SetFocus
End Sub

Private Sub Form_Load()
cbogolongan.AddItem “I”
cbogolongan.AddItem “II”
cbogolongan.AddItem “III”
cbogolongan.AddItem “IV”
End Sub

Iklan
 

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

 
%d blogger menyukai ini: