Fill the blank so that weight is tested in two ways:

A good answer might be:

    // check that the weight is within range
    if ( weight >= 136 && weight <= 147 )
      System.out.println("In range!" );
    else
      System.out.println("Out of range." );

A Run of the Program

The boxer must be heavy enough ( weight >= 136 ), and at the same time not too heavy (weight <= 147) . The results of the two tests are combined with the and-operator, &&.

Here is a live version of the program:


How heavy is the boxer? 

  


QUESTION 9:

What will the monitor screen look like when the boxer's weight is 140?