Chapter 3.101-102 The Modulus Operator
14 pounds
A stone is_______, and most British bathroom scales are calibrated in this unit.
modulus
In combination with integer division, the_______operation is particularly useful in problems that require dividing a quantity into different integral units, such as converting inches to feet or converting dollars to quarters, dimes, nickels, and pennies.
int
In the expression lbs / Lbs_per_stn, both operands are type_______, so the computer performs integer division.
modulus
Most people are more familiar with addition, subtraction, multiplication, and division than with the_______operation, so let's take a moment to look at the operator in action.
integer
The modulus operator returns the remainder of an_______division.
weight in pounds to stone
The modulus reverses the process, converting_______.
integer
The program uses________division to find the largest number of whole stone in the weight, and it uses the modulus operator to find the number of pounds left over.