Cooperative Learning Question (5 points)

On a piece of paper write your NAME, SECTION and the DATE

Give the value of each of the 4 expressions below. If the value is a floating point number, show a decimal point.

  1. 40 / 4 + (2 * 3)
    ANSWER: 10.0 + 6 = 16.0 (float because / always gives float)
  2. 48 / (4 + 2) * 3
    ANSWER: 48 / 6 * 3 = 8.0 * 3 = 24.0 (operators of same precedence evaluated left to right)
  3. 19 // 3.0
    ANSWER: 6.0 (float because 3 is float, NOT 6.333 because of //)
  4. 27 % 12
    ANSWER: 3 (the remainder when 12 goes into 27, integer because both operands integer)

You do not need a calculator for these!

Then spend 2 minutes talking to your neighbor about the questions. Convince them your answer is right if you can! Change your answers if you want to.

Remember to turn the paper in when requested for attendance.