Completion requirements
Read this chapter, which discusses arithmetic operations in greater detail along with solving expressions with mixed data types.
13. Fun with Mixed Expressions
Answer:
(a/b + 4) / 2 == (6/12.0 + 4) / 2 == (0.5 + 4) / 2 == 4.5/2 == 2.25
Fun with Mixed Expressions
Examine each expression in the following list. Decide if the operator in the button is an integer operation or a floating point operation. Then click on the operator to see if you are correct.
12 35 | ||
5.6 -14 | ||
( 12 + 0.01 ) 2 | ||
( 18.0 - 23.3 ) / ( 73 23 ) | ||
-19.45 2.93 | ||
( 34 - 12 ) ( 9 / 10 ) + 1.2 | ||
8 16 + 3.5 |
Note: These questions ask if the operator is floating point or integer. The value of the complete expression may be of a different type than one of its operators.
Question 13:
What is the remainder after dividing 13 by 5 (with integer division)?
If you have 13 pebbles and form two groups of 5 pebbles from them, how many pebbles are left over?