laporan praktikum
TRANSCRIPT
LAPORAN PRAKTIKUM
BAHASA PEMROGRAMAN VISUAL
CONDITION I
ANIS EKO SETIOWATI
109533423243
OFF B PTI 09
UNIVERSITAS NEGERI MALANG
FAKULTAS TEKNIK
JURUSAN TEKNIK ELEKTRO
PROGRAM STUDI TEKNIK INFORMATIKA
MARET 2011
CONDITION I
A. TUJUAN
- Memahami tujuan condition
- Memiliki strategi dalam menggunakan condition
- Mampu menyelesaikan kasus-kasus yang melibatkan condition
- Menguasai penggunaan condition
- Mampu menerapkan dan mengaplikasikan penggunaan condition
B. TUGAS PRAKTIKUM
1. Membuat aplikasi dengan tyampilan seperti di modul.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
TextBox3.Text = (TextBox1.Text < TextBox2.Text)
TextBox4.Text = (TextBox1.Text > TextBox2.Text)
TextBox5.Text = (TextBox1.Text = TextBox2.Text)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button2.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button3.Click
Close()
End Sub
End Class
Nilai diinputkan melalui textbox 1 dan 2,.
Fungsi pada textbox3 adalah nilai1<nilai2,
pada textbox 4 adalah nilai1>nilai2,
sedangkan pada textbox5 adalah
nilai1=nilai2. Keluaran pada saat proses di
klik pada textbox 4-5 sesuai dengan fungsi
operator operasional tersebut.
2. Membuat aplikasi matematika dengan ketentuan seperti di modul
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
If RadioButton1.Checked = True Then
TextBox3.Text = CStr(CDbl(TextBox1.Text) + CDbl(TextBox2.Text))
ElseIf RadioButton2.Checked = True Then
TextBox3.Text = CStr(CDbl(TextBox1.Text) - CDbl(TextBox2.Text))
ElseIf RadioButton3.Checked = True Then
TextBox3.Text = CStr(CDbl(TextBox1.Text) * (TextBox2.Text))
ElseIf RadioButton4.Checked = True Then
TextBox3.Text = CStr(CDbl(TextBox1.Text)/ TextBox2.Text))
ElseIf RadioButton5.Checked = True Then
TextBox3.Text = CStr(CDbl(TextBox1.Text) ^ (TextBox2.Text))
ElseIf RadioButton6.Checked = True Then
TextBox3.Text = CStr(CDbl(TextBox1.Text) ^ (1 / (TextBox2.Text)))
End If
End Sub
Private Sub RadioButton1_CheckedChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
RadioButton1.CheckedChanged
Label1.Text = "+"
End Sub
Private Sub RadioButton2_CheckedChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
RadioButton2.CheckedChanged
Label1.Text = "-"
End Sub
Private Sub RadioButton3_CheckedChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
RadioButton3.CheckedChanged
Label1.Text = "*"
End Sub
Private Sub RadioButton4_CheckedChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
RadioButton4.CheckedChanged
Label1.Text = "/"
End Sub
Private Sub RadioButton5_CheckedChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
RadioButton5.CheckedChanged
Label1.Text = "^"
End Sub
Private Sub RadioButton6_CheckedChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
RadioButton6.CheckedChanged
Label1.Text = "V"
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button2.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
RadioButton2.Checked = False
RadioButton1.Checked = False
RadioButton3.Checked = False
RadioButton4.Checked = False
RadioButton5.Checked = False
RadioButton6.Checked = False
Label1.Visible = False
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button3.Click
Close()
End Sub
End Class
Menghitung penjumlahan:
Saat di reset:
Menghitung akar:
C. TUGAS PRAKTIKUM
1. Membuat sebuah proram seperti di modul:
Public Class Form1
Private Sub RadioButton1_CheckedChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
RadioButton1.CheckedChanged
RadioButton4.Visible = True
RadioButton3.Visible = True
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
If RadioButton1.Checked = False And RadioButton2.Checked = False
Then
MessageBox.Show("Saudara " & TextBox1.Text & vbCrLf & "Cek kembali
pilihan Anda")
ElseIf RadioButton2.Checked = True Then
MessageBox.Show("Saudara " & TextBox1.Text & vbCrLf & "Anda belum
menikah, segeralah mencari pasangan hidup")
ElseIf RadioButton4.Checked = True Then
If ComboBox1.Text = "laki-laki" Then
MessageBox.Show("selamat " & TextBox1.Text & vbCrLf & "Anda
seorang Ayah " & ComboBox2.Text & " orang anak")
ElseIf ComboBox1.Text = "perempuan" Then
MessageBox.Show("selamat " & TextBox1.Text & vbCrLf & "Anda
seorang Ibu " & ComboBox2.Text & " orang anak")
End If
ElseIf RadioButton3.Checked = True Then
If ComboBox1.Text = "laki-laki" Then
MessageBox.Show("selamat " & TextBox1.Text & vbCrLf & "Anda
seorang suami, semoga cepat dikaruniai seorang anak")
ElseIf ComboBox1.Text = "perempuan" Then
MessageBox.Show("selamat " & TextBox1.Text & vbCrLf & "Anda
seorang istri, semoga cepat dikaruniai seorang anak")
End If
End If
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button2.Click
TextBox1.Text = ""
RadioButton1.Checked = False
RadioButton2.Checked = False
RadioButton3.Checked = False
RadioButton4.Checked = False
ComboBox1.Text = ""
ComboBox2.Visible = False
Label5.Visible = False
RadioButton3.Visible = False
RadioButton4.Visible = False
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button3.Click
Close()
End Sub
Private Sub RadioButton4_CheckedChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
RadioButton4.CheckedChanged
ComboBox2.Visible = True
Label5.Visible = True
End Sub
End Class
2. Mengitputkan suatu nilai akhir ke dalam tetbox dan melakukan seleksi untuk nilai
abjad.
Form:
Public Class Form1
Private Sub
ComboBox1_SelectedIndexChanged(ByVal
sender As System.Object, ByVal e As
System.EventArgs) Handles
ComboBox1.SelectedIndexChanged
If ComboBox1.Text = "8" Then
GroupBox2.Visible = True
ComboBox2.Visible = True
ComboBox3.Visible = True
ComboBox4.Visible = True
ComboBox5.Visible = True
ComboBox6.Visible = True
ComboBox7.Visible = True
ComboBox8.Visible = True
ComboBox9.Visible = True
Label7.Visible = True
Label8.Visible = True
Label9.Visible = True
Label10.Visible = True
Label11.Visible = True
Label12.Visible = True
Label13.Visible = True
Label14.Visible = True
TextBox1.Visible = True
TextBox2.Visible = True
TextBox3.Visible = True
TextBox4.Visible = True
TextBox5.Visible = True
TextBox6.Visible = True
TextBox7.Visible = True
TextBox8.Visible = True
Label38.Visible = True
Label39.Visible = True
Label40.Visible = True
Label41.Visible = True
Label42.Visible = True
Label43.Visible = True
Label44.Visible = True
Label45.Visible = True
Label22.Visible = True
Label23.Visible = True
Label24.Visible = True
Label25.Visible = True
Label26.Visible = True
Label27.Visible = True
Label28.Visible = True
Label29.Visible = True
ElseIf ComboBox1.Text = "9" Then
GroupBox2.Visible = True
ComboBox2.Visible = True
ComboBox3.Visible = True
ComboBox4.Visible = True
ComboBox5.Visible = True
ComboBox6.Visible = True
ComboBox7.Visible = True
ComboBox8.Visible = True
ComboBox9.Visible = True
ComboBox10.Visible = True
Label7.Visible = True
Label8.Visible = True
Label9.Visible = True
Label10.Visible = True
Label11.Visible = True
Label12.Visible = True
Label13.Visible = True
Label14.Visible = True
Label15.Visible = True
TextBox1.Visible = True
TextBox2.Visible = True
TextBox3.Visible = True
TextBox4.Visible = True
TextBox5.Visible = True
TextBox6.Visible = True
TextBox7.Visible = True
TextBox8.Visible = True
TextBox9.Visible = True
Label38.Visible = True
Label38.Visible = True
Label39.Visible = True
Label40.Visible = True
Label41.Visible = True
Label42.Visible = True
Label43.Visible = True
Label44.Visible = True
Label45.Visible = True
Label46.Visible = True
Label22.Visible = True
Label23.Visible = True
Label24.Visible = True
Label25.Visible = True
Label26.Visible = True
Label27.Visible = True
Label28.Visible = True
Label29.Visible = True
Label30.Visible = True
ElseIf ComboBox1.Text = "10" Then
GroupBox2.Visible = True
ComboBox2.Visible = True
ComboBox3.Visible = True
ComboBox4.Visible = True
ComboBox5.Visible = True
ComboBox6.Visible = True
ComboBox7.Visible = True
ComboBox8.Visible = True
ComboBox9.Visible = True
ComboBox10.Visible = True
ComboBox11.Visible = True
Label7.Visible = True
Label8.Visible = True
Label9.Visible = True
Label10.Visible = True
Label11.Visible = True
Label12.Visible = True
Label13.Visible = True
Label14.Visible = True
Label15.Visible = True
Label16.Visible = True
TextBox1.Visible = True
TextBox2.Visible = True
TextBox3.Visible = True
TextBox4.Visible = True
TextBox5.Visible = True
TextBox6.Visible = True
TextBox7.Visible = True
TextBox8.Visible = True
TextBox9.Visible = True
TextBox10.Visible = True
Label38.Visible = True
Label38.Visible = True
Label39.Visible = True
Label40.Visible = True
Label41.Visible = True
Label42.Visible = True
Label43.Visible = True
Label44.Visible = True
Label45.Visible = True
Label46.Visible = True
Label47.Visible = True
Label22.Visible = True
Label23.Visible = True
Label24.Visible = True
Label25.Visible = True
Label26.Visible = True
Label27.Visible = True
Label28.Visible = True
Label29.Visible = True
Label30.Visible = True
Label31.Visible = True
ElseIf ComboBox1.Text = "11" Then
GroupBox2.Visible = True
ComboBox2.Visible = True
ComboBox3.Visible = True
ComboBox4.Visible = True
ComboBox5.Visible = True
ComboBox6.Visible = True
ComboBox7.Visible = True
ComboBox8.Visible = True
ComboBox9.Visible = True
ComboBox10.Visible = True
ComboBox11.Visible = True
ComboBox12.Visible = True
Label7.Visible = True
Label8.Visible = True
Label9.Visible = True
Label10.Visible = True
Label11.Visible = True
Label12.Visible = True
Label13.Visible = True
Label14.Visible = True
Label15.Visible = True
Label16.Visible = True
Label17.Visible = True
TextBox1.Visible = True
TextBox2.Visible = True
TextBox3.Visible = True
TextBox4.Visible = True
TextBox5.Visible = True
TextBox6.Visible = True
TextBox7.Visible = True
TextBox8.Visible = True
TextBox9.Visible = True
TextBox10.Visible = True
TextBox11.Visible = True
Label38.Visible = True
Label38.Visible = True
Label39.Visible = True
Label40.Visible = True
Label41.Visible = True
Label42.Visible = True
Label43.Visible = True
Label44.Visible = True
Label45.Visible = True
Label46.Visible = True
Label47.Visible = True
Label48.Visible = True
Label22.Visible = True
Label23.Visible = True
Label24.Visible = True
Label25.Visible = True
Label26.Visible = True
Label27.Visible = True
Label28.Visible = True
Label29.Visible = True
Label30.Visible = True
Label31.Visible = True
Label32.Visible = True
ElseIf ComboBox1.Text = "12" Then
GroupBox2.Visible = True
ComboBox2.Visible = True
ComboBox3.Visible = True
ComboBox4.Visible = True
ComboBox5.Visible = True
ComboBox6.Visible = True
ComboBox7.Visible = True
ComboBox8.Visible = True
ComboBox9.Visible = True
ComboBox10.Visible = True
ComboBox11.Visible = True
ComboBox12.Visible = True
ComboBox13.Visible = True
Label7.Visible = True
Label8.Visible = True
Label9.Visible = True
Label10.Visible = True
Label11.Visible = True
Label12.Visible = True
Label13.Visible = True
Label14.Visible = True
Label15.Visible = True
Label16.Visible = True
Label17.Visible = True
Label18.Visible = True
TextBox1.Visible = True
TextBox2.Visible = True
TextBox3.Visible = True
TextBox4.Visible = True
TextBox5.Visible = True
TextBox6.Visible = True
TextBox7.Visible = True
TextBox8.Visible = True
TextBox9.Visible = True
TextBox10.Visible = True
TextBox11.Visible = True
TextBox12.Visible = True
Label38.Visible = True
Label38.Visible = True
Label39.Visible = True
Label40.Visible = True
Label41.Visible = True
Label42.Visible = True
Label43.Visible = True
Label44.Visible = True
Label45.Visible = True
Label46.Visible = True
Label47.Visible = True
Label48.Visible = True
Label49.Visible = True
Label22.Visible = True
Label23.Visible = True
Label24.Visible = True
Label25.Visible = True
Label26.Visible = True
Label27.Visible = True
Label28.Visible = True
Label29.Visible = True
Label30.Visible = True
Label31.Visible = True
Label32.Visible = True
Label33.Visible = True
ElseIf ComboBox1.Text = "13" Then
GroupBox2.Visible = True
ComboBox2.Visible = True
ComboBox3.Visible = True
ComboBox4.Visible = True
ComboBox5.Visible = True
ComboBox6.Visible = True
ComboBox7.Visible = True
ComboBox8.Visible = True
ComboBox9.Visible = True
ComboBox10.Visible = True
ComboBox11.Visible = True
ComboBox12.Visible = True
ComboBox13.Visible = True
ComboBox14.Visible = True
Label7.Visible = True
Label8.Visible = True
Label9.Visible = True
Label10.Visible = True
Label11.Visible = True
Label12.Visible = True
Label13.Visible = True
Label14.Visible = True
Label15.Visible = True
Label16.Visible = True
Label17.Visible = True
Label18.Visible = True
Label19.Visible = True
TextBox1.Visible = True
TextBox2.Visible = True
TextBox3.Visible = True
TextBox4.Visible = True
TextBox5.Visible = True
TextBox6.Visible = True
TextBox7.Visible = True
TextBox8.Visible = True
TextBox9.Visible = True
TextBox10.Visible = True
TextBox11.Visible = True
TextBox12.Visible = True
TextBox13.Visible = True
Label38.Visible = True
Label38.Visible = True
Label39.Visible = True
Label40.Visible = True
Label41.Visible = True
Label42.Visible = True
Label43.Visible = True
Label44.Visible = True
Label45.Visible = True
Label46.Visible = True
Label47.Visible = True
Label48.Visible = True
Label49.Visible = True
Label50.Visible = True
Label22.Visible = True
Label23.Visible = True
Label24.Visible = True
Label25.Visible = True
Label26.Visible = True
Label27.Visible = True
Label28.Visible = True
Label29.Visible = True
Label30.Visible = True
Label31.Visible = True
Label32.Visible = True
Label33.Visible = True
Label34.Visible = True
ElseIf ComboBox1.Text = "14" Then
GroupBox2.Visible = True
ComboBox2.Visible = True
ComboBox3.Visible = True
ComboBox4.Visible = True
ComboBox5.Visible = True
ComboBox6.Visible = True
ComboBox7.Visible = True
ComboBox8.Visible = True
ComboBox9.Visible = True
ComboBox10.Visible = True
ComboBox11.Visible = True
ComboBox12.Visible = True
ComboBox13.Visible = True
ComboBox14.Visible = True
ComboBox15.Visible = True
Label7.Visible = True
Label8.Visible = True
Label9.Visible = True
Label10.Visible = True
Label11.Visible = True
Label12.Visible = True
Label13.Visible = True
Label14.Visible = True
Label15.Visible = True
Label16.Visible = True
Label17.Visible = True
Label18.Visible = True
Label19.Visible = True
Label20.Visible = True
TextBox1.Visible = True
TextBox2.Visible = True
TextBox3.Visible = True
TextBox4.Visible = True
TextBox5.Visible = True
TextBox6.Visible = True
TextBox7.Visible = True
TextBox8.Visible = True
TextBox9.Visible = True
TextBox10.Visible = True
TextBox11.Visible = True
TextBox12.Visible = True
TextBox13.Visible = True
TextBox14.Visible = True
Label38.Visible = True
Label38.Visible = True
Label39.Visible = True
Label40.Visible = True
Label41.Visible = True
Label42.Visible = True
Label43.Visible = True
Label44.Visible = True
Label45.Visible = True
Label46.Visible = True
Label47.Visible = True
Label48.Visible = True
Label49.Visible = True
Label50.Visible = True
Label51.Visible = True
Label22.Visible = True
Label23.Visible = True
Label24.Visible = True
Label25.Visible = True
Label26.Visible = True
Label27.Visible = True
Label28.Visible = True
Label29.Visible = True
Label30.Visible = True
Label31.Visible = True
Label32.Visible = True
Label33.Visible = True
Label34.Visible = True
Label35.Visible = True
ElseIf ComboBox1.Text = "15" Then
GroupBox2.Visible = True
ComboBox2.Visible = True
ComboBox3.Visible = True
ComboBox4.Visible = True
ComboBox5.Visible = True
ComboBox6.Visible = True
ComboBox7.Visible = True
ComboBox8.Visible = True
ComboBox9.Visible = True
ComboBox10.Visible = True
ComboBox11.Visible = True
ComboBox12.Visible = True
ComboBox13.Visible = True
ComboBox14.Visible = True
ComboBox15.Visible = True
ComboBox16.Visible = True
Label7.Visible = True
Label8.Visible = True
Label9.Visible = True
Label10.Visible = True
Label11.Visible = True
Label12.Visible = True
Label13.Visible = True
Label14.Visible = True
Label15.Visible = True
Label16.Visible = True
Label17.Visible = True
Label18.Visible = True
Label19.Visible = True
Label20.Visible = True
Label21.Visible = True
TextBox1.Visible = True
TextBox2.Visible = True
TextBox3.Visible = True
TextBox4.Visible = True
TextBox5.Visible = True
TextBox6.Visible = True
TextBox7.Visible = True
TextBox8.Visible = True
TextBox9.Visible = True
TextBox10.Visible = True
TextBox11.Visible = True
TextBox12.Visible = True
TextBox13.Visible = True
TextBox14.Visible = True
TextBox15.Visible = True
Label38.Visible = True
Label38.Visible = True
Label39.Visible = True
Label40.Visible = True
Label41.Visible = True
Label42.Visible = True
Label43.Visible = True
Label44.Visible = True
Label45.Visible = True
Label46.Visible = True
Label47.Visible = True
Label48.Visible = True
Label49.Visible = True
Label50.Visible = True
Label51.Visible = True
Label52.Visible = True
Label22.Visible = True
Label23.Visible = True
Label24.Visible = True
Label25.Visible = True
Label26.Visible = True
Label27.Visible = True
Label28.Visible = True
Label29.Visible = True
Label30.Visible = True
Label31.Visible = True
Label32.Visible = True
Label33.Visible = True
Label34.Visible = True
Label35.Visible = True
Label36.Visible = True
End If
End Sub
Private Sub
ComboBox2_SelectedIndexChanged_1(ByVal
sender As System.Object, ByVal e As
System.EventArgs) Handles
ComboBox2.SelectedIndexChanged
If ComboBox2.Text = "Matematika Teknik
II" Or ComboBox2.Text = "Elektronika
Digital" Or ComboBox2.Text =
"Rangkaian Lisgtrik AC" Or
ComboBox2.Text = "Basis Data" Or
ComboBox2.Text = "Pengantar Teknologi
Informasi" Or ComboBox2.Text = "Fisika
Teknik" Or ComboBox2.Text =
"Pendidikan Kewarganegaraan" Or
ComboBox2.Text = "Probabilitas dan
Statistika" Or ComboBox2.Text =
"Bahasa Indonesia Keilmuan" Or
ComboBox2.Text = "Perawatan dan
Perbaikan Komputer" Or ComboBox2.Text
= "Manajemen Pendidikan Kejuruan" Or
ComboBox2.Text = "Bahasa Pemrograman
Visual" Or ComboBox2.Text = "Praktikum
Basis Data" Or ComboBox2.Text =
"Kurikulum Pendidikan Kejuruan" Or
ComboBox2.Text = "Bahasa Pemrograman
Berbasis Web" Or ComboBox2.Text =
"Praktikum Bahasa Pemrograman Berbasis
Web" Or ComboBox2.Text = "Praktikum
Bahasa Pemrograman Visual" Then
Label7.Text = 2
ElseIf ComboBox2.Text = "Praktikum
Elektronika Digital" Or ComboBox2.Text
= "Praktikum Rangkaian Listrik Ac"
Then Label7.Text = 1
ElseIf ComboBox2.Text = "Sistem
Operasi" Then Label7.Text = 3
End If
End Sub
Private Sub
ComboBox3_SelectedIndexChanged_1(ByVal
sender As System.Object, ByVal e As
System.EventArgs) Handles
ComboBox3.SelectedIndexChanged
If ComboBox3.Text = "Matematika Teknik
II" Or ComboBox3.Text = "Elektronika
Digital" Or ComboBox3.Text =
"Rangkaian Lisgtrik AC" Or
ComboBox3.Text = "Basis Data" Or
ComboBox3.Text = "Pengantar Teknologi
Informasi" Or ComboBox3.Text = "Fisika
Teknik" Or ComboBox3.Text =
"Pendidikan Kewarganegaraan" Or
ComboBox3.Text = "Probabilitas dan
Statistika" Or ComboBox3.Text =
"Bahasa Indonesia Keilmuan" Or
ComboBox3.Text = "Perawatan dan
Perbaikan Komputer" Or ComboBox3.Text
= "Manajemen Pendidikan Kejuruan" Or
ComboBox3.Text = "Bahasa Pemrograman
Visual" Or ComboBox3.Text = "Praktikum
Basis Data" Or ComboBox3.Text =
"Kurikulum Pendidikan Kejuruan" Or
ComboBox3.Text = "Bahasa Pemrograman
Berbasis Web" Or ComboBox3.Text =
"Praktikum Bahasa Pemrograman Berbasis
Web" Or ComboBox3.Text = "Praktikum
Bahasa Pemrograman Visual" Then
Label8.Text = 2
ElseIf ComboBox3.Text = "Praktikum
Elektronika Digital" Or ComboBox3.Text
= "Praktikum Rangkaian Listrik Ac"
Then Label8.Text = 1
ElseIf ComboBox3.Text = "Sistem
Operasi" Then Label8.Text = 3
End If
End Sub
Private Sub
ComboBox4_SelectedIndexChanged_1(ByVal
sender As System.Object, ByVal e As
System.EventArgs) Handles
ComboBox4.SelectedIndexChanged
If ComboBox4.Text = "Matematika Teknik
II" Or ComboBox4.Text = "Elektronika
Digital" Or ComboBox4.Text =
"Rangkaian Lisgtrik AC" Or
ComboBox4.Text = "Basis Data" Or
ComboBox4.Text = "Pengantar Teknologi
Informasi" Or ComboBox4.Text = "Fisika
Teknik" Or ComboBox4.Text =
"Pendidikan Kewarganegaraan" Or
ComboBox4.Text = "Probabilitas dan
Statistika" Or ComboBox4.Text =
"Bahasa Indonesia Keilmuan" Or
ComboBox4.Text = "Perawatan dan
Perbaikan Komputer" Or ComboBox4.Text
= "Manajemen Pendidikan Kejuruan" Or
ComboBox4.Text = "Bahasa Pemrograman
Visual" Or ComboBox4.Text = "Praktikum
Basis Data" Or ComboBox4.Text =
"Kurikulum Pendidikan Kejuruan" Or
ComboBox4.Text = "Bahasa Pemrograman
Berbasis Web" Or ComboBox4.Text =
"Praktikum Bahasa Pemrograman Berbasis
Web" Or ComboBox4.Text = "Praktikum
Bahasa Pemrograman Visual" Then
Label9.Text = 2
ElseIf ComboBox4.Text = "Praktikum
Elektronika Digital" Or ComboBox4.Text
= "Praktikum Rangkaian Listrik Ac"
Then Label9.Text = 1
ElseIf ComboBox4.Text = "Sistem
Operasi" Then Label9.Text = 3
End If
End Sub
Private Sub
ComboBox5_SelectedIndexChanged_1(ByVal
sender As System.Object, ByVal e As
System.EventArgs) Handles
ComboBox5.SelectedIndexChanged
If ComboBox5.Text = "Matematika Teknik
II" Or ComboBox5.Text = "Elektronika
Digital" Or ComboBox5.Text =
"Rangkaian Lisgtrik AC" Or
ComboBox5.Text = "Basis Data" Or
ComboBox5.Text = "Pengantar Teknologi
Informasi" Or ComboBox5.Text = "Fisika
Teknik" Or ComboBox5.Text =
"Pendidikan Kewarganegaraan" Or
ComboBox5.Text = "Probabilitas dan
Statistika" Or ComboBox5.Text =
"Bahasa Indonesia Keilmuan" Or
ComboBox5.Text = "Perawatan dan
Perbaikan Komputer" Or ComboBox5.Text
= "Manajemen Pendidikan Kejuruan" Or
ComboBox5.Text = "Bahasa Pemrograman
Visual" Or ComboBox5.Text = "Praktikum
Basis Data" Or ComboBox5.Text =
"Kurikulum Pendidikan Kejuruan" Or
ComboBox5.Text = "Bahasa Pemrograman
Berbasis Web" Or ComboBox5.Text =
"Praktikum Bahasa Pemrograman Berbasis
Web" Or ComboBox5.Text = "Praktikum
Bahasa Pemrograman Visual" Then
Label10.Text = 2
ElseIf ComboBox5.Text = "Praktikum
Elektronika Digital" Or ComboBox5.Text
= "Praktikum Rangkaian Listrik Ac"
Then Label10.Text = 1
ElseIf ComboBox5.Text = "Sistem
Operasi" Then Label10.Text = 3
End If
End Sub
Private Sub
ComboBox6_SelectedIndexChanged_1(ByVal
sender As System.Object, ByVal e As
System.EventArgs) Handles
ComboBox6.SelectedIndexChanged
If ComboBox6.Text = "Matematika Teknik
II" Or ComboBox6.Text = "Elektronika
Digital" Or ComboBox6.Text =
"Rangkaian Lisgtrik AC" Or
ComboBox6.Text = "Basis Data" Or
ComboBox6.Text = "Pengantar Teknologi
Informasi" Or ComboBox6.Text = "Fisika
Teknik" Or ComboBox6.Text =
"Pendidikan Kewarganegaraan" Or
ComboBox6.Text = "Probabilitas dan
Statistika" Or ComboBox6.Text =
"Bahasa Indonesia Keilmuan" Or
ComboBox6.Text = "Perawatan dan
Perbaikan Komputer" Or ComboBox6.Text
= "Manajemen Pendidikan Kejuruan" Or
ComboBox6.Text = "Bahasa Pemrograman
Visual" Or ComboBox6.Text = "Praktikum
Basis Data" Or ComboBox6.Text =
"Kurikulum Pendidikan Kejuruan" Or
ComboBox6.Text = "Bahasa Pemrograman
Berbasis Web" Or ComboBox6.Text =
"Praktikum Bahasa Pemrograman Berbasis
Web" Or ComboBox6.Text = "Praktikum
Bahasa Pemrograman Visual" Then
Label11.Text = 2
ElseIf ComboBox6.Text = "Praktikum
Elektronika Digital" Or ComboBox6.Text
= "Praktikum Rangkaian Listrik Ac"
Then Label11.Text = 1
ElseIf ComboBox6.Text = "Sistem
Operasi" Then Label11.Text = 3
End If
End Sub
Private Sub
ComboBox7_SelectedIndexChanged_1(ByVal
sender As System.Object, ByVal e As
System.EventArgs) Handles
ComboBox7.SelectedIndexChanged
If ComboBox7.Text = "Matematika Teknik
II" Or ComboBox7.Text = "Elektronika
Digital" Or ComboBox7.Text =
"Rangkaian Lisgtrik AC" Or
ComboBox7.Text = "Basis Data" Or
ComboBox7.Text = "Pengantar Teknologi
Informasi" Or ComboBox7.Text = "Fisika
Teknik" Or ComboBox7.Text =
"Pendidikan Kewarganegaraan" Or
ComboBox7.Text = "Probabilitas dan
Statistika" Or ComboBox7.Text =
"Bahasa Indonesia Keilmuan" Or
ComboBox7.Text = "Perawatan dan
Perbaikan Komputer" Or ComboBox7.Text
= "Manajemen Pendidikan Kejuruan" Or
ComboBox7.Text = "Bahasa Pemrograman
Visual" Or ComboBox7.Text = "Praktikum
Basis Data" Or ComboBox7.Text =
"Kurikulum Pendidikan Kejuruan" Or
ComboBox7.Text = "Bahasa Pemrograman
Berbasis Web" Or ComboBox7.Text =
"Praktikum Bahasa Pemrograman Berbasis
Web" Or ComboBox7.Text = "Praktikum
Bahasa Pemrograman Visual" Then
Label12.Text = 2
ElseIf ComboBox7.Text = "Praktikum
Elektronika Digital" Or ComboBox7.Text
= "Praktikum Rangkaian Listrik Ac"
Then Label12.Text = 1
ElseIf ComboBox7.Text = "Sistem
Operasi" Then Label12.Text = 3
End If
End Sub
Private Sub
ComboBox8_SelectedIndexChanged_1(ByVal
sender As System.Object, ByVal e As
System.EventArgs) Handles
ComboBox8.SelectedIndexChanged
If ComboBox8.Text = "Matematika Teknik
II" Or ComboBox8.Text = "Elektronika
Digital" Or ComboBox8.Text =
"Rangkaian Lisgtrik AC" Or
ComboBox8.Text = "Basis Data" Or
ComboBox8.Text = "Pengantar Teknologi
Informasi" Or ComboBox8.Text = "Fisika
Teknik" Or ComboBox8.Text =
"Pendidikan Kewarganegaraan" Or
ComboBox8.Text = "Probabilitas dan
Statistika" Or ComboBox8.Text =
"Bahasa Indonesia Keilmuan" Or
ComboBox8.Text = "Perawatan dan
Perbaikan Komputer" Or ComboBox8.Text
= "Manajemen Pendidikan Kejuruan" Or
ComboBox8.Text = "Bahasa Pemrograman
Visual" Or ComboBox8.Text = "Praktikum
Basis Data" Or ComboBox8.Text =
"Kurikulum Pendidikan Kejuruan" Or
ComboBox8.Text = "Bahasa Pemrograman
Berbasis Web" Or ComboBox8.Text =
"Praktikum Bahasa Pemrograman Berbasis
Web" Or ComboBox8.Text = "Praktikum
Bahasa Pemrograman Visual" Then
Label13.Text = 2
ElseIf ComboBox8.Text = "Praktikum
Elektronika Digital" Or ComboBox8.Text
= "Praktikum Rangkaian Listrik Ac"
Then Label13.Text = 1
ElseIf ComboBox8.Text = "Sistem
Operasi" Then Label13.Text = 3
End If
End Sub
Private Sub
ComboBox9_SelectedIndexChanged_1(ByVal
sender As System.Object, ByVal e As
System.EventArgs) Handles
ComboBox9.SelectedIndexChanged
If ComboBox9.Text = "Matematika Teknik
II" Or ComboBox9.Text = "Elektronika
Digital" Or ComboBox9.Text =
"Rangkaian Lisgtrik AC" Or
ComboBox9.Text = "Basis Data" Or
ComboBox9.Text = "Pengantar Teknologi
Informasi" Or ComboBox9.Text = "Fisika
Teknik" Or ComboBox9.Text =
"Pendidikan Kewarganegaraan" Or
ComboBox9.Text = "Probabilitas dan
Statistika" Or ComboBox9.Text =
"Bahasa Indonesia Keilmuan" Or
ComboBox9.Text = "Perawatan dan
Perbaikan Komputer" Or ComboBox9.Text
= "Manajemen Pendidikan Kejuruan" Or
ComboBox9.Text = "Bahasa Pemrograman
Visual" Or ComboBox9.Text = "Praktikum
Basis Data" Or ComboBox9.Text =
"Kurikulum Pendidikan Kejuruan" Or
ComboBox9.Text = "Bahasa Pemrograman
Berbasis Web" Or ComboBox9.Text =
"Praktikum Bahasa Pemrograman Berbasis
Web" Or ComboBox9.Text = "Praktikum
Bahasa Pemrograman Visual" Then
Label14.Text = 2
ElseIf ComboBox9.Text = "Praktikum
Elektronika Digital" Or ComboBox9.Text
= "Praktikum Rangkaian Listrik Ac"
Then Label14.Text = 1
ElseIf ComboBox9.Text = "Sistem
Operasi" Then Label14.Text = 3
End If
End Sub
Private Sub
ComboBox10_SelectedIndexChanged_1(ByVa
l sender As System.Object, ByVal e As
System.EventArgs) Handles
ComboBox10.SelectedIndexChanged
If ComboBox10.Text = "Matematika
Teknik II" Or ComboBox10.Text =
"Elektronika Digital" Or
ComboBox10.Text = "Rangkaian Lisgtrik
AC" Or ComboBox10.Text = "Basis Data"
Or ComboBox10.Text = "Pengantar
Teknologi Informasi" Or
ComboBox10.Text = "Fisika Teknik" Or
ComboBox10.Text = "Pendidikan
Kewarganegaraan" Or ComboBox10.Text =
"Probabilitas dan Statistika" Or
ComboBox10.Text = "Bahasa Indonesia
Keilmuan" Or ComboBox10.Text =
"Perawatan dan Perbaikan Komputer" Or
ComboBox10.Text = "Manajemen
Pendidikan Kejuruan" Or
ComboBox10.Text = "Bahasa Pemrograman
Visual" Or ComboBox10.Text =
"Praktikum Basis Data" Or
ComboBox10.Text = "Kurikulum
Pendidikan Kejuruan" Or
ComboBox10.Text = "Bahasa Pemrograman
Berbasis Web" Or ComboBox10.Text =
"Praktikum Bahasa Pemrograman Berbasis
Web" Or ComboBox10.Text = "Praktikum
Bahasa Pemrograman Visual" Then
Label15.Text = 2
ElseIf ComboBox10.Text = "Praktikum
Elektronika Digital" Or
ComboBox10.Text = "Praktikum Rangkaian
Listrik Ac" Then Label15.Text = 1
ElseIf ComboBox10.Text = "Sistem
Operasi" Then
Label15.Text = 3
End If
End Sub
Private Sub
ComboBox11_SelectedIndexChanged_1(ByVa
l sender As System.Object, ByVal e As
System.EventArgs) Handles
ComboBox11.SelectedIndexChanged
If ComboBox11.Text = "Matematika
Teknik II" Or ComboBox11.Text =
"Elektronika Digital" Or
ComboBox11.Text = "Rangkaian Lisgtrik
AC" Or ComboBox11.Text = "Basis Data"
Or ComboBox11.Text = "Pengantar
Teknologi Informasi" Or
ComboBox11.Text = "Fisika Teknik" Or
ComboBox11.Text = "Pendidikan
Kewarganegaraan" Or ComboBox11.Text =
"Probabilitas dan Statistika" Or
ComboBox11.Text = "Bahasa Indonesia
Keilmuan" Or ComboBox11.Text =
"Perawatan dan Perbaikan Komputer" Or
ComboBox11.Text = "Manajemen
Pendidikan Kejuruan" Or
ComboBox11.Text = "Bahasa Pemrograman
Visual" Or ComboBox11.Text =
"Praktikum Basis Data" Or
ComboBox11.Text = "Kurikulum
Pendidikan Kejuruan" Or
ComboBox11.Text = "Bahasa Pemrograman
Berbasis Web" Or ComboBox11.Text =
"Praktikum Bahasa Pemrograman Berbasis
Web" Or ComboBox11.Text = "Praktikum
Bahasa Pemrograman Visual" Then
Label16.Text = 2
ElseIf ComboBox11.Text = "Praktikum
Elektronika Digital" Or
ComboBox11.Text = "Praktikum Rangkaian
Listrik Ac" Then Label16.Text = 1
ElseIf ComboBox11.Text = "Sistem
Operasi" Then Label16.Text = 3
End If
End Sub
Private Sub
ComboBox12_SelectedIndexChanged_1(ByVa
l sender As System.Object, ByVal e As
System.EventArgs) Handles
ComboBox12.SelectedIndexChanged
If ComboBox12.Text = "Matematika
Teknik II" Or ComboBox12.Text =
"Elektronika Digital" Or
ComboBox12.Text = "Rangkaian Lisgtrik
AC" Or ComboBox12.Text = "Basis Data"
Or ComboBox12.Text = "Pengantar
Teknologi Informasi" Or
ComboBox12.Text = "Fisika Teknik" Or
ComboBox12.Text = "Pendidikan
Kewarganegaraan" Or ComboBox12.Text =
"Probabilitas dan Statistika" Or
ComboBox12.Text = "Bahasa Indonesia
Keilmuan" Or ComboBox12.Text =
"Perawatan dan Perbaikan Komputer" Or
ComboBox12.Text = "Manajemen
Pendidikan Kejuruan" Or
ComboBox12.Text = "Bahasa Pemrograman
Visual" Or ComboBox12.Text =
"Praktikum Basis Data" Or
ComboBox12.Text = "Kurikulum
Pendidikan Kejuruan" Or
ComboBox12.Text = "Bahasa Pemrograman
Berbasis Web" Or ComboBox12.Text =
"Praktikum Bahasa Pemrograman Berbasis
Web" Or ComboBox12.Text = "Praktikum
Bahasa Pemrograman Visual" Then
Label17.Text = 2
ElseIf ComboBox12.Text = "Praktikum
Elektronika Digital" Or
ComboBox12.Text = "Praktikum Rangkaian
Listrik Ac" Then Label17.Text = 1
ElseIf ComboBox12.Text = "Sistem
Operasi" Then
Label17.Text = 3
End If
End Sub
Private Sub
ComboBox13_SelectedIndexChanged_1(ByVa
l sender As System.Object, ByVal e As
System.EventArgs) Handles
ComboBox13.SelectedIndexChanged
If ComboBox13.Text = "Matematika
Teknik II" Or ComboBox13.Text =
"Elektronika Digital" Or
ComboBox13.Text = "Rangkaian Lisgtrik
AC" Or ComboBox13.Text = "Basis Data"
Or ComboBox13.Text = "Pengantar
Teknologi Informasi" Or
ComboBox13.Text = "Fisika Teknik" Or
ComboBox13.Text = "Pendidikan
Kewarganegaraan" Or ComboBox13.Text =
"Probabilitas dan Statistika" Or
ComboBox13.Text = "Bahasa Indonesia
Keilmuan" Or ComboBox13.Text =
"Perawatan dan Perbaikan Komputer" Or
ComboBox13.Text = "Manajemen
Pendidikan Kejuruan" Or
ComboBox13.Text = "Bahasa Pemrograman
Visual" Or ComboBox13.Text =
"Praktikum Basis Data" Or
ComboBox13.Text = "Kurikulum
Pendidikan Kejuruan" Or
ComboBox13.Text = "Bahasa Pemrograman
Berbasis Web" Or ComboBox13.Text =
"Praktikum Bahasa Pemrograman Berbasis
Web" Or ComboBox13.Text = "Praktikum
Bahasa Pemrograman Visual" Then
Label18.Text = 2
ElseIf ComboBox13.Text = "Praktikum
Elektronika Digital" Or
ComboBox13.Text = "Praktikum Rangkaian
Listrik Ac" Then Label18.Text = 1
ElseIf ComboBox13.Text = "Sistem
Operasi" Then Label18.Text = 3
End If
End Sub
Private Sub
ComboBox14_SelectedIndexChanged_1(ByVa
l sender As System.Object, ByVal e As
System.EventArgs) Handles
ComboBox14.SelectedIndexChanged
If ComboBox14.Text = "Matematika
Teknik II" Or ComboBox14.Text =
"Elektronika Digital" Or
ComboBox14.Text = "Rangkaian Lisgtrik
AC" Or ComboBox14.Text = "Basis Data"
Or ComboBox14.Text = "Pengantar
Teknologi Informasi" Or
ComboBox14.Text = "Fisika Teknik" Or
ComboBox14.Text = "Pendidikan
Kewarganegaraan" Or ComboBox14.Text =
"Probabilitas dan Statistika" Or
ComboBox14.Text = "Bahasa Indonesia
Keilmuan" Or ComboBox14.Text =
"Perawatan dan Perbaikan Komputer" Or
ComboBox14.Text = "Manajemen
Pendidikan Kejuruan" Or
ComboBox14.Text = "Bahasa Pemrograman
Visual" Or ComboBox14.Text =
"Praktikum Basis Data" Or
ComboBox14.Text = "Kurikulum
Pendidikan Kejuruan" Or
ComboBox14.Text = "Bahasa Pemrograman
Berbasis Web" Or ComboBox14.Text =
"Praktikum Bahasa Pemrograman Berbasis
Web" Or ComboBox14.Text = "Praktikum
Bahasa Pemrograman Visual" Then
Label19.Text = 2
ElseIf ComboBox14.Text = "Praktikum
Elektronika Digital" Or
ComboBox14.Text = "Praktikum Rangkaian
Listrik Ac" Then Label19.Text = 1
ElseIf ComboBox14.Text = "Sistem
Operasi" Then
Label19.Text = 3
End If
End Sub
Private Sub
ComboBox15_SelectedIndexChanged_1(ByVa
l sender As System.Object, ByVal e As
System.EventArgs) Handles
ComboBox15.SelectedIndexChanged
If ComboBox15.Text = "Matematika
Teknik II" Or ComboBox15.Text =
"Elektronika Digital" Or
ComboBox15.Text = "Rangkaian Lisgtrik
AC" Or ComboBox15.Text = "Basis Data"
Or ComboBox15.Text = "Pengantar
Teknologi Informasi" Or
ComboBox15.Text = "Fisika Teknik" Or
ComboBox15.Text = "Pendidikan
Kewarganegaraan" Or ComboBox15.Text =
"Probabilitas dan Statistika" Or
ComboBox15.Text = "Bahasa Indonesia
Keilmuan" Or ComboBox15.Text =
"Perawatan dan Perbaikan Komputer" Or
ComboBox15.Text = "Manajemen
Pendidikan Kejuruan" Or
ComboBox15.Text = "Bahasa Pemrograman
Visual" Or ComboBox15.Text =
"Praktikum Basis Data" Or
ComboBox15.Text = "Kurikulum
Pendidikan Kejuruan" Or
ComboBox15.Text = "Bahasa Pemrograman
Berbasis Web" Or ComboBox15.Text =
"Praktikum Bahasa Pemrograman Berbasis
Web" Or ComboBox15.Text = "Praktikum
Bahasa Pemrograman Visual" Then
Label20.Text = 2
ElseIf ComboBox15.Text = "Praktikum
Elektronika Digital" Or
ComboBox15.Text = "Praktikum Rangkaian
Listrik Ac" Then Label20.Text = 1
ElseIf ComboBox15.Text = "Sistem
Operasi" Then Label20.Text = 3
End If
End Sub
Private Sub
ComboBox16_SelectedIndexChanged_1(ByVa
l sender As System.Object, ByVal e As
System.EventArgs) Handles
ComboBox16.SelectedIndexChanged
If ComboBox16.Text = "Matematika
Teknik II" Or ComboBox16.Text =
"Elektronika Digital" Or
ComboBox16.Text = "Rangkaian Lisgtrik
AC" Or ComboBox16.Text = "Basis Data"
Or ComboBox16.Text = "Pengantar
Teknologi Informasi" Or
ComboBox16.Text = "Fisika Teknik" Or
ComboBox16.Text = "Pendidikan
Kewarganegaraan" Or ComboBox16.Text =
"Probabilitas dan Statistika" Or
ComboBox16.Text = "Bahasa Indonesia
Keilmuan" Or ComboBox16.Text =
"Perawatan dan Perbaikan Komputer" Or
ComboBox16.Text = "Manajemen
Pendidikan Kejuruan" Or
ComboBox16.Text = "Bahasa Pemrograman
Visual" Or ComboBox16.Text =
"Praktikum Basis Data" Or
ComboBox16.Text = "Kurikulum
Pendidikan Kejuruan" Or
ComboBox16.Text = "Bahasa Pemrograman
Berbasis Web" Or ComboBox16.Text =
"Praktikum Bahasa Pemrograman Berbasis
Web" Or ComboBox16.Text = "Praktikum
Bahasa Pemrograman Visual" Then
Label21.Text = 2
ElseIf ComboBox16.Text = "Praktikum
Elektronika Digital" Or
ComboBox10.Text = "Praktikum Rangkaian
Listrik Ac" Then Label21.Text = 1
ElseIf ComboBox16.Text = "Sistem
Operasi" Then Label21.Text = 3
End If
End Sub
Private Sub
TextBox1_TextChanged_1(ByVal sender As
System.Object, ByVal e As
System.EventArgs) Handles
TextBox1.TextChanged
Label38.Text =
predikat(nilai:=TextBox1.Text)
Label22.Text =
hitungsksn(sks:=Label7.Text,
pred:=Label38.Text)
End Sub
Private Sub
TextBox2_TextChanged_1(ByVal sender As
System.Object, ByVal e As
System.EventArgs) Handles
TextBox2.TextChanged
Label39.Text =
predikat(nilai:=TextBox2.Text)
Label23.Text =
hitungsksn(sks:=Label8.Text,
pred:=Label39.Text)
End Sub
Private Sub
TextBox3_TextChanged_1(ByVal sender As
System.Object, ByVal e As
System.EventArgs) Handles
TextBox3.TextChanged
Label40.Text =
predikat(nilai:=TextBox3.Text)
Label24.Text =
hitungsksn(sks:=Label9.Text,
pred:=Label40.Text)
End Sub
Private Sub
TextBox4_TextChanged_1(ByVal sender As
System.Object, ByVal e As
System.EventArgs) Handles
TextBox4.TextChanged
Label41.Text =
predikat(nilai:=TextBox4.Text)
Label25.Text =
hitungsksn(sks:=Label10.Text,
pred:=Label41.Text)
End Sub
Private Sub
TextBox5_TextChanged_1(ByVal sender As
System.Object, ByVal e As
System.EventArgs) Handles
TextBox5.TextChanged
Label42.Text =
predikat(nilai:=TextBox5.Text)
Label26.Text =
hitungsksn(sks:=Label11.Text,
pred:=Label42.Text)
End Sub
Private Sub
TextBox6_TextChanged_1(ByVal sender As
System.Object, ByVal e As
System.EventArgs) Handles
TextBox6.TextChanged
Label43.Text =
predikat(nilai:=TextBox6.Text)
Label27.Text =
hitungsksn(sks:=Label12.Text,
pred:=Label43.Text)
End Sub
Private Sub
TextBox7_TextChanged_1(ByVal sender As
System.Object, ByVal e As
System.EventArgs) Handles
TextBox7.TextChanged
Label44.Text =
predikat(nilai:=TextBox7.Text)
Label28.Text =
hitungsksn(sks:=Label13.Text,
pred:=Label44.Text)
End Sub
Private Sub
TextBox8_TextChanged_1(ByVal sender As
System.Object, ByVal e As
System.EventArgs) Handles
TextBox8.TextChanged
Label45.Text =
predikat(nilai:=TextBox8.Text)
Label29.Text =
hitungsksn(sks:=Label14.Text,
pred:=Label45.Text)
If ComboBox1.Text = "8" Then
Label54.Text =CStr((CDbl(Label22.Text)
+CDbl(Label23.Text)+CDbl(Label24.Text)
+CDbl(Label25.Text)+CDbl(Label26.Text)
+CDbl(Label27.Text)+CDbl(Label28.Text)
+CDbl(Label29.Text))/(CDbl(Label7.Text
)+CDbl(Label8.Text)+CDbl(Label9.Text)
+CDbl(Label10.Text)+CDbl(Label11.Text)
+CDbl(Label12.Text)+CDbl(Label13.Text)
+CDbl(Label14.Text)))
End If
End Sub
Private Sub
TextBox9_TextChanged_1(ByVal sender As
System.Object, ByVal e As
System.EventArgs) Handles
TextBox9.TextChanged
Label46.Text =
predikat(nilai:=TextBox9.Text)
Label30.Text =
hitungsksn(sks:=Label15.Text,
pred:=Label46.Text)
If ComboBox1.Text = "9" Then
Label54.Text =
CStr((CDbl(Label22.Text)+CDbl(Label23.
Text)+CDbl(Label24.Text)+CDbl(Label25.
Text)+CDbl(Label26.Text)+CDbl(Label27.
Text)+CDbl(Label28.Text)+CDbl(Label29.
Text)+CDbl(Label30.Text))/(CDbl(Label7
.Text)+CDbl(Label8.Text)+CDbl(Label9.T
ext)+CDbl(Label10.Text)+CDbl(Label11.T
ext)+CDbl(Label12.Text)+CDbl(Label13.T
ext)+CDbl(Label14.Text)+CDbl(Label15.T
ext)))
End If
End Sub
Private Sub
TextBox10_TextChanged_1(ByVal sender
As System.Object, ByVal e As
System.EventArgs) Handles
TextBox10.TextChanged
Label47.Text =
predikat(nilai:=TextBox10.Text)
Label31.Text =
hitungsksn(sks:=Label16.Text,
pred:=Label47.Text)
If ComboBox1.Text = "10" Then
Label54.Text=CStr((CDbl(Label22.Text)
+CDbl(Label23.Text)+CDbl(Label24.Text)
+CDbl(Label25.Text)+CDbl(Label26.Text)
+CDbl(Label27.Text)+CDbl(Label28.Text)
+CDbl(Label29.Text)+CDbl(Label30.Text)
+CDbl(Label31.Text))/(CDbl(Label7.Text
)+CDbl(Label8.Text)+CDbl(Label9.Text)
+CDbl(Label10.Text)+CDbl(Label11.Text)
+CDbl(Label12.Text)+CDbl(Label13.Text)
+CDbl(Label14.Text)+CDbl(Label15.Text)
+CDbl(Label16.Text)))
End If
End Sub
Private Sub
TextBox11_TextChanged_1(ByVal sender
As System.Object, ByVal e As
System.EventArgs) Handles
TextBox11.TextChanged
Label48.Text =
predikat(nilai:=TextBox11.Text)
Label32.Text =
hitungsksn(sks:=Label17.Text,
pred:=Label48.Text)
If ComboBox1.Text = "11" Then
Label54.Text=CStr((CDbl(Label22.Text)
+CDbl(Label23.Text)+CDbl(Label24.Text)
+CDbl(Label25.Text)+CDbl(Label26.Text)
+CDbl(Label27.Text)+CDbl(Label28.Text)
+CDbl(Label29.Text)+CDbl(Label30.Text)
+CDbl(Label31.Text)+CDbl(Label32.Text)
)/(CDbl(Label7.Text)+CDbl(Label8.Text)
+CDbl(Label9.Text)+CDbl(Label10.Text)
+CDbl(Label11.Text)+CDbl(Label12.Text)
+CDbl(Label13.Text)+CDbl(Label14.Text)
+CDbl(Label15.Text)+CDbl(Label16.Text)
+CDbl(Label17.Text)))
End If
End Sub
Private Sub
TextBox12_TextChanged_1(ByVal sender
As System.Object, ByVal e As
System.EventArgs) Handles
TextBox12.TextChanged
Label49.Text =
predikat(nilai:=TextBox12.Text)
Label33.Text =
hitungsksn(sks:=Label18.Text,
pred:=Label49.Text)
If ComboBox1.Text = "12" Then
Label54.Text=CStr((CDbl(Label22.Text)
+CDbl(Label23.Text)+CDbl(Label24.Text)
+CDbl(Label25.Text)+CDbl(Label26.Text)
+CDbl(Label27.Text)+CDbl(Label28.Text)
+CDbl(Label29.Text)+CDbl(Label30.Text)
+CDbl(Label31.Text)+CDbl(Label32.Text)
+CDbl(Label33.Text))/(CDbl(Label7.Text
)+CDbl(Label8.Text)+CDbl(Label9.Text)
+CDbl(Label10.Text)+CDbl(Label11.Text)
+CDbl(Label12.Text)+CDbl(Label13.Text)
+CDbl(Label14.Text)+CDbl(Label15.Text)
+CDbl(Label16.Text)+CDbl(Label17.Text)
+CDbl(Label18.Text)))
End If
End Sub
Private Sub
TextBox13_TextChanged_1(ByVal sender
As System.Object, ByVal e As
System.EventArgs) Handles
TextBox13.TextChanged
Label50.Text =
predikat(nilai:=TextBox13.Text)
Label34.Text =
hitungsksn(sks:=Label19.Text,
pred:=Label50.Text)
If ComboBox1.Text = "13" Then
Label54.Text=CStr((CDbl(Label22.Text)
+CDbl(Label23.Text)+CDbl(Label24.Text)
+CDbl(Label25.Text)+CDbl(Label26.Text)
+CDbl(Label27.Text)+CDbl(Label28.Text)
+CDbl(Label29.Text)+CDbl(Label30.Text)
+CDbl(Label31.Text)+CDbl(Label32.Text)
+CDbl(Label33.Text)+CDbl(Label34.Text)
)/(CDbl(Label7.Text)+CDbl(Label8.Text)
+CDbl(Label9.Text)+CDbl(Label10.Text)
+CDbl(Label11.Text)+CDbl(Label12.Text)
+CDbl(Label13.Text)+CDbl(Label14.Text)
+CDbl(Label15.Text)+CDbl(Label16.Text)
+CDbl(Label17.Text)+CDbl(Label18.Text)
+CDbl(Label19.Text)))
End If
End Sub
Private Sub
TextBox14_TextChanged_1(ByVal sender
As System.Object, ByVal e As
System.EventArgs) Handles
TextBox14.TextChanged
Label51.Text =
predikat(nilai:=TextBox14.Text)
Label35.Text =
hitungsksn(sks:=Label20.Text,
pred:=Label51.Text)
If ComboBox1.Text = "14" Then
Label54.Text=CStr((CDbl(Label22.Text)
+CDbl(Label23.Text)+CDbl(Label24.Text)
+CDbl(Label25.Text)+CDbl(Label26.Text)
+CDbl(Label27.Text)+CDbl(Label28.Text)
+CDbl(Label29.Text)+CDbl(Label30.Text)
+CDbl(Label31.Text)+CDbl(Label32.Text)
+CDbl(Label33.Text)+CDbl(Label34.Text)
+CDbl(Label35.Text))/(CDbl(Label7.Text
)+CDbl(Label8.Text)+CDbl(Label9.Text)
+CDbl(Label10.Text)+CDbl(Label11.Text)
+CDbl(Label12.Text)+CDbl(Label13.Text)
+CDbl(Label14.Text)+CDbl(Label15.Text)
+CDbl(Label16.Text)+CDbl(Label17.Text)
+CDbl(Label18.Text)+CDbl(Label19.Text)
))
End If
End Sub
Private Sub
TextBox15_TextChanged_1(ByVal sender
As System.Object, ByVal e As
System.EventArgs) Handles
TextBox15.TextChanged
Label52.Text =
predikat(nilai:=TextBox15.Text)
Label36.Text =
hitungsksn(sks:=Label21.Text,
pred:=Label52.Text)
If ComboBox1.Text = "15" Then
Label54.Text=CStr((CDbl(Label22.Text)
+CDbl(Label23.Text)+CDbl(Label24.Text)
+CDbl(Label25.Text)+CDbl(Label26.Text)
+CDbl(Label27.Text)+CDbl(Label28.Text)+CDbl(Label29.Text)+CDbl(Label30.Text)
+CDbl(Label31.Text)+CDbl(Label32.Text) +CDbl(Label33.Text)+CDbl(Label34.Text)
+CDbl(Label35.Text)+CDbl(Label36.Text))/(CDbl(Label7.Text)+CDbl(Label8.Text)
+CDbl(Label9.Text)+CDbl(Label10.Text) +CDbl(Label11.Text)+CDbl(Label12.Text)
+CDbl(Label13.Text)+CDbl(Label14.Text) +CDbl(Label15.Text)+CDbl(Label16.Text)
+CDbl(Label17.Text)+CDbl(Label18.Text) +CDbl(Label19.Text)+CDbl(Label20.Text)))
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
GroupBox2.Visible = False
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Close()
End Sub
End Class
Module: Module Module1
Dim sksn As Integer
Dim pred As Char
Dim nilaipred As Double
Public Function hitungsksn(ByVal sks As
Integer, ByVal pred As Char) As Double
If pred = "E" Then
sksn = 0
ElseIf pred = "D" Then
sksn = sks * 1
ElseIf pred = "C" Then
sksn = sks * 2
ElseIf pred = "B" Then
sksn = sks * 3
ElseIf pred = "A" Then
sksn = sks * 4
End If
Return sksn
End Function
Public Function predikat(ByVal nilai As
Double) As Char
If nilai <= 39 Then
pred = "E"
ElseIf nilai >= 40 And nilai <= 54 Then
pred = "D"
ElseIf nilai >= 55 And nilai <= 74 Then
pred = "C"
ElseIf nilai >= 75 And nilai <= 89 Then
pred = "B"
ElseIf nilai >= 90 Then
pred = "A"
End If
Return pred
End Function
End Module
tampilan awal:
Kemudian misalkan mahasiswa ingin mengetahui IP-nya, dimana matakuliah yang diambil
adalah 8:
SKS akan muncul secara otomatis sesuai dengan matakuliah yang dipilih, demikian
juga dengan predikat dan SKSN akan muncul secara otomatis setelah nilai
dimasukkan. Setelah pengisian selesai, IP akan mucul secara otomatis.
D. TINJAUAN PUSTAKA
Anonim.Visual Basic.NET. 2010, (Online), (http://id.wikipedia.org/wiki/ Visual Basic
.NET., diakses 7 Februari 2011 )
Kurniawan E, Yullian R. 2008. Visual Basi 6 ke Visual Basic.NET. Yogyakarta: Andi.
Modul 1 praktikum Mengenal Visual Basic.NET
Modul 2 praktikum Fungsi Numerik
Modul 3 praktikum String
Modul 4 praktikum Prosedur
Modul 5 praktikum Subroutine dan Function
Modul 6 praktikum Condition I