In the code segment below, the int variable temp represents a temperature in degrees Fahrenheit. The code segment is intended to print a string based on the value of temp. The following table shows the string that should be printed for different temperature ranges.
31 and below --> "cold"
32-50 --> "cool"
51-70 --> "moderate"​
71 and above --> "warm"

String weather;
if (temp <= 31)
{weather = "cold";}
else
{weather = "cool";}
if (temp >= 51)
{weather = "moderate";}
else
{weather = "warm";}
System.out.print(weather);

Which of the following test cases can be used to show that the code does NOT work as intended?
1. temp = 30
11. temp = 51
111. temp = 60

A
I only
B
II only
C
I and II only
D
II and III only
E
I, II, and III