0% found this document useful (0 votes)
5 views3 pages

Air Conditioner Temperature Control Code

The document contains programming code for a Windows Forms application that evaluates temperature and number input. It provides feedback through message boxes based on the user's input, indicating whether to reduce, maintain, or increase temperature, and whether the number entered is positive, negative, or zero. The code is attributed to Chitswanda Andy Danai.

Uploaded by

stakavimbika
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)
5 views3 pages

Air Conditioner Temperature Control Code

The document contains programming code for a Windows Forms application that evaluates temperature and number input. It provides feedback through message boxes based on the user's input, indicating whether to reduce, maintain, or increase temperature, and whether the number entered is positive, negative, or zero. The code is attributed to Chitswanda Andy Danai.

Uploaded by

stakavimbika
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

010000/3111

PROGRAMMING

1(a) DENSITY

3(a) AIR CONDITIONER PROGRAM

CODES
Public Class Form1

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles


[Link]
Dim temperature As Integer = [Link]
If temperature > 25 Then
[Link]("Reduce Temperature")
ElseIf temperature >= 20 Then
[Link]("Normal Temperature")
ElseIf temperature < 20 Then
[Link]("Increase Temperature")
Else

End If

End Sub
End Class

CHITSWANDA ANDY DANAI


010000/3111

OUTCOME

CHITSWANDA ANDY DANAI


010000/3111

4. Public Class Form1

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles


[Link]
Dim NUM As Integer = [Link]
If NUM = 0 Then
[Link]("Program Terminated")
[Link]()
ElseIf NUM <= 0 Then
[Link]("Negative Number Entered")
ElseIf NUM > 0 Then
[Link]("Positive Number Entered")

End If
End Sub
End Class

CHITSWANDA ANDY DANAI

You might also like