True branch to execute when: 100 <= X <= 200.
IF X >= 100 AND X <= 200 THEN
Other answers also will work, for example:
IF 100 <= X AND X <= 200 THEN
This can be confusing. There are two questions
that the AND
combines:
IF "X is big enough" AND "X is not too large" THEN
Each question can be asked in two ways.
A welter weight boxer must weigh between 136 and 147 pounds. A boxer's weight is tested before each fight to be sure that he is within his weight category. Here is a program that checks if a welter weight boxer's weight is within range:
' Ringside Weigh-in ' PRINT "Enter the weight:" INPUT WEIGHT IF _______________ AND ______________ THEN PRINT "Weight is OK" ELSE PRINT "Weight is not OK" END IF ' END
Fill each blank with a relational expression
so that WEIGHT
is tested in two ways:
WEIGHT
must be equal or greater than 136.WEIGHT
must be less than or equal to 147.