Question 1 of 5
A procedure is supposed to count how many lab temperatures exceed 100:
PROCEDURE CountHot(temps)
{
count ← 0
FOR EACH t IN temps
{
IF t ≥ 100
{
count ← count + 1
}
}
RETURN count
}
A user complains values of exactly 100 are ignored, but the code above includes them.
(a) Explain how you would verify whether the deployed code matches this listing.
(b) Write two test cases (list → expected count) assuming ≥ 100 should count.
(c) If the deployed code used IF t > 100 instead, name the error type and the fix.