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

Exercise 6

Public Class Form1


Private Sub btnEvaluate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles btnEvaluate.Click
Dim model As Integer = Val(txtModel.Text)
Select Case model
Case 119, 179, 189 To 195, 221, 780
Me.lblOutcome.Text = "Your car is defective. Please have it fixed."
Case Else
Me.lblOutcome.Text = "Your car is not defective."
End Select
End Sub
End Class

You might also like