A digital signal processing microchip scales an incoming sensor measurement using a bitwise algorithm.
Complete the trace table below for the algorithm when the initial value of reading is 5.
output ← reading LEFTSHIFT 3
output ← output - reading
reading | output |
|---|---|
| 5 | |
208 exam-style questions on AQA GCSE Computer Science Representing algorithms. Each one has a worked solution and a mark scheme showing where the marks go.