A system monitor records the remaining battery charge of a weather balloon as it transmits data package bursts. The following pseudocode algorithm simulates this tracking:
01 charge = 20
02 repeat
03 print(charge)
04 charge = charge - 5
05 until charge < 10
06 print("Done")
Complete the following trace table for the given algorithm.
| Line number | charge | Output |
|---|---|---|
95 exam-style questions on OCR GCSE Computer Science Programming fundamentals. Each one has a worked solution and a mark scheme showing where the marks go.