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

Public Class Form1

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


Handles Button1.Click
Dim total As Double
total = 0
If RadioButton1.Checked = True Then
total = total + 2.5
Else
total = total + 4
End If

If CheckBox1.Checked = True Then


total = total + 0.1
End If

If CheckBox4.Checked = True Then


total = total + 0.1
End If

If CheckBox2.Checked = True Then


total = total + 0.25
End If

If CheckBox5.Checked = True Then


total = total + 0.5
End If

Label2.Text = total

End Sub
End Class

You might also like