Private Sub Form_Load()
Cbonpm.AddItem "17100088"
Cbonpm.AddItem "17200066"
Cbonpm.AddItem "16300345"
Cbonpm.AddItem "17400091"
Cbonpm.AddItem "15400441"
End Sub
Private Sub Cbonpm_Click()
Dim nama, jurusan, HM As String
Select Case Cbonpm
Case "17100088"
nama = "Misbaul
ulum"
jurusan =
"Sistem Informasi"
Case "17200066"
nama = "Tukiyem"
jurusan =
"Manajemen Informatika"
Case "16300345"
nama = "Taufik"
jurusan =
"Tehnik Sipil"
Case "17400091"
nama = "Wahyu"
jurusan =
"Tehnik Informatika"
Case "15400441"
nama = "Rian"
jurusan =
"MANAGEMENT SISTEM INFORMASI"
End Select
txtnm = nama
txtjr = jurusan
txtnq.SetFocus
End Sub
Private Sub Cmdbatal_Click()
Cbonpm.SetFocus
Cbonpm = ""
txtnm = ""
txtjr = ""
txtnq = ""
txtnt = ""
txtuts = ""
txtuas = ""
txtna = ""
txthm = ""
End Sub
Private Sub Cmdkeluar_Click()
Unload Me
End Sub
Private Sub Cmdproses_Click()
Dim NA As Integer
Dim HM As String
QUIS = Val(txtnq)
TUGAS = Val(txtnt)
UTS = Val(txtuts)
UAS = Val(txtuas)
NA = (QUIS + TUGAS + UTS + UAS) / 4
txtna.Text = NA
Select Case txtna
Case Is = 100
HM = "A"
Case Is >= 80
HM = "A"
Case Is >= 70
HM = "B"
Case Is >= 60
HM = "C"
Case Is >= 50
HM = "D"
Case Is <= 49
HM = "E"
End Select
txthm.Text = HM
End Sub
Tidak ada komentar:
Posting Komentar