Week 13 · 13.4 · Thu, Oct 29 · Do Now
Do Now
Work every question in your notebook.
Trace these lines. What do the boxes hold after line 3?
q ← 38 a ← q ÷ 5 b ← q rem 5
- q = 38, a = 7.6, b = 3
- q = 38, a = 7, b = 7
- q = 3, a = 7, b = 3
- q = 38, a = 7, b = 3
What is shown?
show 4 + 17 rem 5 * 3
- 6
- 13
- 3
- 10
A student traced these lines and wrote that m holds 21 at the end. The right answer is 15. What mistake did the student make?
m ← 47 m ← m rem 6 m ← m * 3
- The student skipped line 2.
- On line 2, the student rounded 7.83 up to 8.
- On line 3, the student used the old value of m, 47.
- On line 2, the student used ÷ instead of rem.
x rem 6 is 0. Which of these could x be?
- 3
- 61
- 44
- 42
Trace these lines. Write exactly what is shown, one line for each show.
s ← 200 m ← s ÷ 60 s ← s rem 60 show m show s