Tugas 2 Visual - Zahrina

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Nama : Zahrina Data D.

Nim

: 130533608135

Off

: S1 PTI 2013 Off E

Program Seleksi Panggilan


Script Program
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
Dim var As String = (TextBox1.Text)
If RadioButton1.Checked Then
If var >= 1 And var <= 16 Then
TextBox2.Text = "Tole"
ElseIf var >= 17 And var <= 25 Then
TextBox2.Text = "Jejaka"
ElseIf var >= 26 And var <= 50 Then
TextBox2.Text = "Bapak"
ElseIf var > 50 Then
TextBox2.Text = "Kakek"
Else
TextBox2.Text = "Input Salah"
End If
ElseIf RadioButton2.Checked Then
If var >= 1 And var <= 16 Then
TextBox2.Text = "Nduk"
ElseIf var >= 17 And var <= 25 Then
TextBox2.Text = "Perawan"
ElseIf var >= 26 And var <= 50 Then
TextBox2.Text = "Ibu"
ElseIf var > 50 Then
TextBox2.Text = "Nenek"
Else
TextBox2.Text = "Input Salah"
End If
End If
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button2.Click
End
End Sub

End Class

Hasil :

You might also like