Single lesson · Written for OCR A Level (H446)

Binary subtraction with two's complement – OCR A Level Computer Science lesson (H446)

Students learn to subtract one 8-bit binary integer from another by adding its two's complement, and explain why the final carry is ignored.

Also in a bundle Data Representation and Logic Gates – OCR A Level Computer Science lessons (H446) 13 lessons for £45 · save 13% on buying separately

Lesson 5 of 13 in unit 12.3 Data Representation and Logic Gates, taught in Year 12, Autumn 2. It answers one big question: How can a processor subtract using only an adder?

By the end, students can subtract one 8-bit binary integer from another by adding its two's complement, and explain why the final carry is ignored.

The Build (the main task)
Calculate 0101 1010 − 0010 0111 using two's complement addition, showing your working, to find the difference between two Wrenhome Sensors humidity readings, and check the answer in denary (5 marks).
Support version
Three labelled steps (write the number being subtracted, flip and add 1, add) with a carry row; step 1 is done.
Challenge
Calculate 0010 0111 − 0101 1010 in the same way, and explain why there is no carry to ignore.
Real-world link
Wrenhome Sensors's hub compares humidity readings to spot a shower running.
Key words
Binary subtraction, Carry and Technique, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“The 1 carried out of the MSB must be kept, giving a 9-bit answer”; “To subtract, take the two's complement of the first number”.
OCR H446 specification
1.4.1 (c); (d).

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.

Students can do it all on paper.

Also sold in the Data Representation and Logic Gates unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.

An independent resource written for OCR A Level Computer Science (H446). It is not endorsed by OCR or Cambridge University Press & Assessment. Programming project (NEA) lessons teach general skills on a made-up example project and give supervised time, within JCQ's rules on the help a centre may give.

What's included

  • Slide deck (PowerPoint)
  • Lesson plan (Word)
  • Worksheet (Word)
  • Support worksheet with scaffolds (Word)
  • Single-teacher licence: use and adapt it with your own classes

More for A Level Computer Science

See all

Written for the specifications named. Not endorsed by or affiliated with any exam board.