NAMA : Ida Riantika
NPM : 13100058
Kelas : Blogger 2

Aplikasi golongan dan Gaji
IDA GAJI
Private Sub Command1_Click()
Dim NIK As String
NIK = Mid(Text11.Text, 5, 1)
If NIK = “A” Then
Text1.Text = “A”
Text5.Text = “MANAJER”
Text7.Text = “4000000”
Text8.Text = “1025000”
ElseIf NIK = “B” Then
Text1.Text = “B”
Text5.Text = “KA. SEKSI”
Text7.Text = “3500000”
Text8.Text = “975000”
ElseIf NIK = “C” Then
Text1.Text = “C”
Text5.Text = “STAFF”
Text7.Text = “3000000”
Text8.Text = “925000”
End If
Text4.Text = Left(Text11.Text, 4)
NIK = Mid(Text11.Text, 7, 1)
If NIK = “S” Then
Text2.Text = “S”
Text3.Text = “SINGLE”
ElseIf NIK = “M” Then
Text2.Text = “M”
Text3.Text = “MENIKAH”
ElseIf NIK = “J” Then
Text2.Text = “J”
Text3.Text = “JANDA”
ElseIf NIK = “D” Then
Text2.Text = “D”
Text3.Text = “DUDA”
End If
Text6.Text = Right(Text11.Text, 3)
Text9.Text = Val(Text7.Text) + Val(Text8.Text)

End Sub

Private Sub Command2_Click()
Text1.Text = “”
Text2.Text = “”
Text3.Text = “”
Text4.Text = “”
Text5.Text = “”
Text6.Text = “”
Text7.Text = “”
Text8.Text = “”
Text9.Text = “”
Text10.Text = “”
Text11.Text = “”
Text1.SetFocus
End Sub

Private Sub Command3_Click()
Text1.Text = “”
Text2.Text = “”
Text3.Text = “”
Text4.Text = “”
Text5.Text = “”
Text6.Text = “”
Text7.Text = “”
Text8.Text = “”
Text9.Text = “”
Text10.Text = “”
Text11.Text = “”
Text1.SetFocus
End Sub

Private Sub Command4_Click()
Unload Me
End Sub

Private Sub Text10_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text11.SetFocus
End If
End Sub

APLIKASI PENJUALAN TIKET KERETA API
IDA KERETA
Private Sub cmdkeluar_Click()
Unload Me
End Sub

Private Sub cmdlagi_Click()
txtkt.Text = “”
txtht.Text = “”
txtjk.Text = “”
txtjb.Text = “”
txtjt.Text = “”
txttp.Text = “”
txtkt.SetFocus

End Sub

Private Sub cmdproses_Click()
Dim KODE As String
KODE = Left(txtkt.Text, 3)
If KODE = “BIM” Then
txtht = “50000”
txtjk = “BIMA”
txtjb = “16.00”
ElseIf KODE = “EKO” Then
txtht = “35000”
txtjk = “EKONOMI”
txtjb = “19.00”
ElseIf KODE = “EKO” Then
txtht = “35000”
txtjk = “EKONOMI”
txtjb = “19.00”
ElseIf KODE = “MUT” Then
txtht = “23000”
txtjk = “MUTIARA”
txtjb = “17.00”
ElseIf KODE = “SEN” Then
txtht = “15.000”
txtjk = “SENJA”
txtjb = “20.00”
End If
txtjt.SetFocus
End Sub

Private Sub txtjt_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txttp.Text = Val(txtht.Text) * Val(txtjt.Text)
End If
End Sub