' Project: If statements ' Programmer: ' Date: Jan 8th 2008 'Description: using basic if statements this program ' determines if the temperature is Freezing ' or Not Freezing. Public Class mainForm Private Sub pressMeButton_Click(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles pressMeButton.Click Dim tempInteger As Integer 'Capture the value from the textbox tempInteger = Integer.Parse(tempTextBox.Text) 'Check the condition of the tempture If tempInteger = 32 Then 'If it is 32 or below we display "Freezing" tempLabel.Text = "Freezing" Else If tempInteger > 80 Then 'Else we display "Hot" tempLabel.Text = "Hot" Else 'Else we display "Just Right" tempLabel.Text = "Just Right" End If End If End Class