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.
Topic
Key fact
design
a prototype is built, tested with users and improved
CPU
fetch, decode, execute, then repeat
software
operating system, utility software, translators
data
samples × bits per sample = bits stored
Worked examples
Cycle
Fetch
Decode
Execute
1
010 7 6
multiply
7 × 6 = 42
2
101 36 4
divide
36 ÷ 4 = 9
3
010 5 9
multiply
5 × 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.
Step
Working
Result
number of samples
10 000 × 3
30 000
bits
30 000 × 4
120 000
bytes
120 000 ÷ 8
15 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.
Item
Size in MB
one voice note
3
memory card (1.2 GB)
1 200
notes that fit
1 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.
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.
Long battery life is better, because a tablet that runs out of power cannot be used. A tablet that is too large and heavy is also hard to carry all day, which is a matter of ergonomics. Other answers are fine if the reason is good.
4
Convert: (a) 3 600 KB to MB; (b) 7 bytes to bits; (c) 0.5 GB to MB.