Chapter 3.101-102 The Modulus Operator

¡Supera tus tareas y exámenes ahora con Quizwiz!

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.


Conjuntos de estudio relacionados

120.2 Sequence of tenses: Choose the correct answer, please.

View Set

Unit 1A: Psychology and it's Approaches (Modules 1-3)

View Set

Cardiovascular System - The Heart CH17

View Set

Fundamentals of ST; Chapter 8: Multiple Choice and True False Quiz

View Set