0% found this document useful (0 votes)
85 views

Exercise 6 Word

This code defines a class called Form1 that contains variables to store numbers entered by a user and the results of an evaluation. When the Evaluate button is clicked, it takes the number from the text box, compares it to a range of values, and sets the text of the Final label to indicate whether the number means the car is defective or not.

Uploaded by

api-310300017
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
85 views

Exercise 6 Word

This code defines a class called Form1 that contains variables to store numbers entered by a user and the results of an evaluation. When the Evaluate button is clicked, it takes the number from the text box, compares it to a range of values, and sets the text of the Final label to indicate whether the number means the car is defective or not.

Uploaded by

api-310300017
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Public Class Form1

Dim Numbers As Integer


Dim nums As Integer
Private Sub Evaluate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Evaluate.Click
Numbers = BoxNum.Text
Select Case Numbers
Case 119, 179, 189 To 195, 221, 780
Final.Text = "Your car is defective. Please have it fixed."
Case Else
Final.Text = "You car is not defective"
End Select
End Sub
End Class

You might also like