Data capacity calculations, mixed – OCR GCSE Computer Science lesson (J277)
Pupils learn to choose the right formula for text, image and sound files, calculate and estimate file sizes, and work out how many files fit on a storage device.
Lesson 10 of 11 in unit 10.4 Characters, Images, Sound, Strings and Arrays, taught in Year 10, Spring 2. It answers one big question: How many files will fit on a storage device?
By the end, pupils can choose the right formula for text, image and sound files, calculate and estimate file sizes, and work out how many files fit on a storage device.
- The Build (the main task)
- Calculate the storage needed for one day of festival media, showing your working: 400 photos (4,000 × 3,000 pixels, 24-bit colour depth), 20 live clips (3 minutes each, 44,100 Hz, 16-bit) and the line-up text file (5,000 characters, 8 bits per character). Decide whether it all fits within the data capacity of a 32 GB memory card, then calculate how many more photos would fit in the space left.
- Support version
- Part-filled working: the three formulas are given with the photo row worked through.
- Challenge
- Estimate the total using rounded numbers first, then compare the estimate with the exact answer.
- Real-world link
- The festival's photographer must fit a day's photos, clips and the line-up on one memory card.
- Key words
- Data capacity, File size and Estimate, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “A text file's size in bits is just the number of characters”; “To convert GB to MB you divide by 1,000”.
- OCR J277 specification
- 1.2.3 (units: converting between bits, bytes, kilobytes and megabytes; calculating the file size of text, image and sound files, and data capacity requirements); 1.2.4 (data storage – characters: character sets, ASCII and Unicode, bits per character and the number of characters represented. Images: pixels, colour depth, resolution and metadata. Sound: sampling, sample rate, duration and bit depth, and their effect on quality and file size).
Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.
Pupils can do it all on paper.
Also sold in the Characters, Images, Sound, Strings and Arrays unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.
What's included
- Slide deck (PowerPoint)
- Lesson plan (Word)
- Worksheet (Word)
- Support worksheet with scaffolds (Word)
- Data capacity calculations mixed - Quiz Quiz Trade Cards
- Single-teacher licence: use and adapt it with your own classes
More for GCSE Computer Science (OCR)
See allPupils learn to explain how a character set gives each character a binary code, encode and decode text with ASCII, and compare ASCII and Unicode by bits per character and range.
Free sample lessonPupils learn to use concatenation, length, slicing, upper and lower case and ASCII conversion in Python and OCR Exam Reference Language to build and extract parts of strings.
Pupils learn to explain how a bitmap image is stored as pixels with binary colour codes, and describe how colour depth and resolution affect quality and file size.
Written for the specifications named. Not endorsed by or affiliated with any exam board.