This document contains a Visual Basic program that takes a numeric input in a text box and determines an output based on the input value and selected radio button. If the first radio button is selected, it will output "Tole", "Jejaka", "Bapak", or "Kakek" depending on the input range. If the second radio button is selected, it will output "Nduk", "Perawan", "Ibu", or "Nenek" depending on the input range. The program is designed to classify a person's age into different categories based on the input.
This document contains a Visual Basic program that takes a numeric input in a text box and determines an output based on the input value and selected radio button. If the first radio button is selected, it will output "Tole", "Jejaka", "Bapak", or "Kakek" depending on the input range. If the second radio button is selected, it will output "Nduk", "Perawan", "Ibu", or "Nenek" depending on the input range. The program is designed to classify a person's age into different categories based on the input.
This document contains a Visual Basic program that takes a numeric input in a text box and determines an output based on the input value and selected radio button. If the first radio button is selected, it will output "Tole", "Jejaka", "Bapak", or "Kakek" depending on the input range. If the second radio button is selected, it will output "Nduk", "Perawan", "Ibu", or "Nenek" depending on the input range. The program is designed to classify a person's age into different categories based on the input.
This document contains a Visual Basic program that takes a numeric input in a text box and determines an output based on the input value and selected radio button. If the first radio button is selected, it will output "Tole", "Jejaka", "Bapak", or "Kakek" depending on the input range. If the second radio button is selected, it will output "Nduk", "Perawan", "Ibu", or "Nenek" depending on the input range. The program is designed to classify a person's age into different categories based on the input.
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)