AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Term 3 in review

Week 30 · Review: Term 3 · 3 lessons
2

Machine, software, numbers

Computing 9: Topics 3.2–4.6, pp. 273–358
GoalReview design and prototypes, the CPU cycle, the operating system, translators, sound sampling and storage units.
New words
ergonomics · designing a device so that it is safe and comfortable for the human body to usecore · one processing unit of a CPU; a CPU with several cores can work on independent jobs at the same timetranslator · software that changes source code into machine code that the CPU can follow, such as a compiler or an interpretersample rate · the number of samples taken from a sound every second
Explanation

A good design balances user experience, accessibility and ergonomics, and a prototype is tested and improved from feedback. Inside the computer, the CPU repeats the fetch–decode–execute cycle for every instruction, and extra cores let it work on independent jobs at the same time. The operating system manages memory, files, devices, power and user accounts. Utility software, such as encryption and defragmentation, looks after the system, and a translator changes source code into machine code. A computer stores sound as samples: each sample is a number in binary, and a higher sample rate gives more samples every second. A byte is 8 bits, and 1 KB is 1 000 bytes.

TopicKey fact
designa prototype is built, tested with users and improved
CPUfetch, decode, execute, then repeat
softwareoperating system, utility software, translators
datasamples × bits per sample = bits stored
Worked examples
CycleFetchDecodeExecute
1010 7 6multiply7 × 6 = 42
2101 36 4divide36 ÷ 4 = 9
3010 5 9multiply5 × 9 = 45
The cycle with new invented codes: 010 means multiply and 101 means divide. Each instruction is the code, then two values. The cycle runs once for each instruction, and then there is nothing left to fetch.
StepWorkingResult
number of samples10 000 × 330 000
bits30 000 × 4120 000
bytes120 000 ÷ 815 000
How much data is a recording? A sound is sampled 10 000 times a second for 3 seconds, and each sample uses 4 bits. That is 10 000 × 3 = 30 000 samples, and 30 000 × 4 = 120 000 bits. Divide by 8 to get bytes: 15 000 bytes.
ItemSize in MB
one voice note3
memory card (1.2 GB)1 200
notes that fit1 200 ÷ 3 = 400
Storage in units. A voice note is 3 MB. A memory card holds 1.2 GB, which is 1.2 × 1 000 = 1 200 MB. Then 1 200 ÷ 3 = 400 voice notes fit on the card.
Class activity

Be the CPU and teach back (no computer). Part 1: write three instructions on cards in the form code, value, value, using the invented codes 010 = multiply and 101 = divide. Give the cards to a partner, who plays the CPU and says fetch, decode, execute for each card, and then the result. Part 2: choose one of these cards at random: prototype, cycle, core, translator, sample rate, ergonomics. Explain it to your partner in 30 seconds with a drawing. Your partner asks one question about it and says what was clear.

Practice
1
Use 010 = multiply and 101 = divide. Complete the table.
InstructionDecodeExecute
010 8 7??
101 45 9??
010 6 6??
2
A sound is sampled 9 000 times a second for 4 seconds, and each sample uses 4 bits. How many samples, how many bits and how many bytes are there?
3
A designer must choose between a very large screen and a long battery life for a tablet that nurses carry all day. Which would you choose, and which design factor do you use to decide? Give a reason.
4
Convert: (a) 3 600 KB to MB; (b) 7 bytes to bits; (c) 0.5 GB to MB.