Public Sub TemperatureRange
Console.WriteLine("Enter the temperature")
Console.Writeline("Temperature is too high")
Console.WriteLine("Temperature is too low")
Console.WriteLine("Temperature is normal")
Console.WriteLine("Enter the temperatures")
t(i) = Console.ReadLine()
Console.WriteLine("The highest temperature in the three hours was " & tMax & " degrees Celsius")
Console.WriteLine("The lowest temperature in the three hours was " & tMin & " degrees Celsius")
Console.WriteLine("The diffrence between the lowest and highest temperature was " & (tMax - tMin) & " degrees Celsius")
Public Sub Main(Combine3Tasks)
Console.WriteLine("Enter the temperatures")
Dim rcount as integer = 0
t(i) = Console.ReadLine()
Console.Writeline("Temperature is too high")
Console.WriteLine("Temperature is too low")
Console.WriteLine("The highest temperature in the three hours was " & tMax & " degrees Celsius")
Console.WriteLine("The lowest temperature in the three hours was " & tMin & " degrees Celsius")
Console.WriteLine("The diffrence between the lowest and highest temperature was " & (tMax - tMin) & " degrees Celsius")
If tRange > 1 and rcount > 2
Console.WriteLine("The temperature of the baby have experienced a relatively big change and has been out of the safe range of temperatures for him/her for more than two times")
Console.Writeline("The baby have experienced a significant change in temperature within the three hours")
Console.WriteLine("The temperature of the baby has been out of the safe range of temperatures for more than 2 times")
Console.Writeline("The temperature of the baby has been normal")