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

Our boxer must be heavy enough (weight >= 136), and must at the same time not be 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:

Run the program for a weight of 140.