Practical lesson
In this practical lesson volume tasks are solved. Text volume: number of characters · 1 byte. Number of characters = pages · lines per page · characters per line. Divide by 1024 to go from bytes to KB and by 8 to go from bits to bytes. Picture volume: number of pixels · colour depth (bits). The colour depth comes from N = 2^r: 2 colours – 1 bit, 16 colours – 4 bits, 256 colours – 8 bits. Transfer time = volume : speed, and the units must match (KB and KB/s). Before writing the answer check the unit and judge whether the size is sensible: a one-page text takes a few KB, while a colour photo can take a few MB.
| Colours | Colour depth |
|---|---|
| 2 | 1 bit |
| 16 | 4 bits |
| 256 | 8 bits |
If a file is 90 MB and the transfer speed is 3 MB/s, the transfer takes 90 : 3 = 30 seconds. Dividing volume by speed gives time. The units must match: MB divided by MB/s.
A network engineer calculates transfer time, a video editor plans file size, and an app developer estimates download size.
Count the lines on one notebook page and the characters in a line, and estimate the size of the page in bytes (1 character = 1 byte).
“Volume workshop”: each team writes one day’s lesson timetable as a short message (spaces and punctuation count as characters) and calculates its volume in bits and bytes; then teams swap and check each other’s results.