What is output in the GUI by the following Visual Basic code segment?

Dim temp As Integer
temp = 180

While temp <> 80

If temp > 90 Then
resultLabel.Text = "This porridge is too hot! "

' cool down
If temp > 150 Then
temp = temp - 100
Else
temp = temp - 20
End If

ElseIf temp < 70 Then
resultLabel.Text = "This porridge is too cold! "

' warm up
If temp > 150 Then
temp = temp + 30
Else
temp = temp + 20
End If

End If

End While

If (temp = 80) Then
resultLabel.Text = "This porridge is just right! "
End If

a) This porridge is too cold! This porridge is just right!
b) This porridge is too hot! This porridge is just right!
c) This porridge is just right!
d) None of the above.


b) This porridge is too hot! This porridge is just right!

Computer Science & Information Technology

You might also like to view...

The value and importance of items of physical property is directly related to the information they contain or can access.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which of these rules is represented by therule.typeproperty when its value is 5?

A. @media B. @font-face C. unknown D. style rule

Computer Science & Information Technology

A ________ is an example of an IoT device.

A. bicycle B. land line telephone C. Fitbit D. railway car

Computer Science & Information Technology

An administrator receives a call from a user who is unable to receive email. After troubleshooting the administrator is able to resolve the issue and verify that user is able to access email again. Which of the following is the NEXT step that the administrator should take?

A. Implement preventative measures. B. Close the issue. C. Document the outcome. D. Other users to make sure they are not having the same issue.

Computer Science & Information Technology