Int Comput Low Sec9 - 1
Int Comput Low Sec9 - 1
SAMPLE PAGES
STAGE
9
DIGITAL
COMPUTER ATION
DIGITAL
LITERACY
SCIENCE TECHNOLOGY
LITERACY TECHNOLOGY
The Whiteboard eTextbooks are an online, interactive version of the printed textbooks that are ideal for
front-of-class teaching and lesson planning.
Units
This Student Book has six units:
9.1 Drilling down: How the processor processes introduces students to the CPU,
registers and the fetch-decode-execute cycle. The concepts are illustrated using simple
assembly language instructions. The role of logic gates and truth tables is explored,
along with the continuing impact of advanced technology such as artificial intelligence
and virtual reality.
9.2 Sorting it all out: Searching and sorting data structures introduces students
to the concept of arrays and their implementation as lists in Python. For loops are
introduced, before moving on to the following searching and sorting algorithms:
insertion sort, bubble sort, linear search and binary search. These are covered in some
depth in both pseudocode and then as full Python implementations. Functions are
introduced along with the concept of testing code.
9.3 HTML, CSS, JavaScript: Web-Pro Games explores more sophisticated website
design for an online gaming company, with further coverage of CSS and the addition
of JavaScript to enable interactive webpage elements, such as forms and buttons.
9.4 Networking: Not just a way of meeting new people explores the wired and
wireless technologies that make up LANs and WANs, including the internet. This
chapter also discusses how data travels across networks, error detection and how it can
be encrypted. Legal issues surrounding personal data are also covered.
9.5 Designing, solving and documenting solutions covers the different roles within
a software development team – project manager, analyst, designer and programmer.
Students will learn about Gantt charts, wireframes, user requirements, test plans and
drawing up pseudocode solutions that address a client’s problem.
9.6 Choosing and using: Databases and spreadsheets focuses on a music promoter
running a large music festival, with business needs that can be addressed using
a combination of database and spreadsheet applications. Students will create a
relational database, produce more complex queries and reports, create forms for data
input, introduce macros, VLOOKUPs and pivot tables, and learn about presenting user-
friendly interfaces.
Learning Outcomes
KEYWORDS
Important words are
This panel lists the things you will learn about in each unit. emboldened the first
time they appear in a
SCENARIO unit and are defined in
this panel. They also
This panel contains a scenario which puts the tasks into a real-world appear in the glossary.
context.
This panel suggests a
Do you remember? simple task to check
your understanding.
This panel lists the skills you should already be able to do before
starting the unit.
These speech
bubbles provide
Learn hints and tips as you
complete the tasks.
This panel introduces new concepts and skills.
Computational Thinking
This panel highlights tasks in the unit which involve one of the key areas of computational
thinking:
Pattern recognition: the identification of repeating tasks or features in a larger problem
to help solve more complex problems more easily.
Decomposition: breaking larger problems down into smaller more manageable tasks.
Each smaller task is examined and solved more easily than a larger more complex problem.
Abstraction: ignoring details or elements of a problem which are not needed when trying
to solve a problem.
Algorithmic thinking: providing a series of instructions which include details on how to
solve an identified problem.
Generalisation: the process of creating solutions to new problems using past knowledge
and experience to adapt existing algorithms.
Evaluation: the process of ensuring that an algorithmic solution is an effective and efficient
one – that it is fit for purpose.
Go further
This panel contains tasks to enhance and develop the skills
previously learnt in the unit.
Challenge yourself
This panel provides challenging tasks with additional instructions
to support new skills.
Final project
This panel contains the final tasks of the unit which encompass
all the skills developed. It can be used to support self/peer
assessment and teacher assessment.
Evaluation
This panel provides guidance on how to evaluate and, if necessary,
test the Final Project.
➜ how computer systems use logic gates and buses for data KEYWORDS
manipulation and transmission logic gate: simple
➜ how to draw logic gates and produce truth tables to illustrate the devices which can be
operation of a logic gate used to carry out a
range of operations on
➜ how to combine logic gates to create a logic circuit used to support input data values
complex processes bus: communication
➜ to consider the impact of artificial intelligence (AR), virtual line used to transfer
signals from one part
reality (VR) and robotics on today’s society of a digital device to
➜ to consider the availability of such technologies across the world today another; for example,
(digital divide) and the impact they can have on everyday life a set of wires used
to transfer data
around the inside of a
SCENARIO computer
logic circuit: a
Tech-D is a new technology design company whose focus is designing combination of
technology which can be used to test young children’s mathematical logic gates used to
abilities. They have asked you to help with the development of a carry out complex
simple calculator which can be used in classrooms with children aged operations
truth table: a table
between 5 and 6 years of age. The important features Tech-D has which shows all
asked you to consider when you are helping to develop the calculator possible combinations
include: of inputs and outputs
• how the hardware specification in the for a logic gate
The instructions to artificial intelligence
calculator can be altered to change
be carried out are (AI): the use of
the processing capabilities of the quite simple so a high computers to simulate
calculator. specification, high cost intelligence displayed
• what language can be used to program device is not necessary. by humans
virtual reality (VR):
the calculator so that instructions can the use of technology
be quickly converted into a language the to create an artificial
calculator can easily carry out. environment that
• how the instructions are carried out by looks and feels
Additional components realistic to the end
the calculator, to make sure that the user
cost money so
hardware designers don’t include extra they so they should
components that are not required. To do not be included
this you need to examine the role of the unnecessarily.
CPU in a digital device and how it carries
out the fetch-execute cycle when running a
computer program
• limiting access to users whose
biometric details, such as a
finger print or retina scan,
are stored on the calculating
device. Your task is to help
design a logic circuit that will
help manage user access to
the calculator based on their
biometric details.
Do you remember?
Before starting this unit, you should be able to:
✔ carry out basic mathematical calculations such as addition and
subtraction
✔ enter a URL into a web browser to access a specified web site
✔ access a spreadsheet application and alter the contents of a cell
in a spreadsheet
✔ understand simple algorithms in the form of pseudo code or a
flowchart
✔ covert simple pseudocode and flowchart algorithms into coded
solutions
✔ use conditions in coding to support decision making
✔ understand the concept of repetition and its application in
programming
You should also know that:
✔ instructions entered into a computer must be converted into
binary before they can be carried out
✔ you can use spreadsheet applications to model real-life situations
✔ Boolean values are values which can only be represented by
TRUE or FALSE
10
11
12
Practice
13
14
KEYWORD
Buses in computers carry the signals in the same way that we
control bus: carries
can travel from one place to another on a bus.
control signals to
different parts of the
Address bus Data bus Control bus
digital device telling
This is like the Like the passengers When the bus stops them what task they
number and on a bus – these a bell sound is played need to carry out next
destination on the are the data signals with a message telling
front of a bus – tells which move around passengers which stop
the processor what the inside of the they have reached – this
location in memory computer; for carries special signals
will be opened to example, electrical which tell the processor
read data from or signals which what type of operations
to write data to represent the binary are being carried out,
code for letter R
when it is pressed on
a keyboard need to
be carried from the
keyboard to the CPU
Practice
Central processing
unit
Control unit
Main memory
15
Learn
16
KEYWORDS
Assembly language instruction Machine code alternative opcode: an instruction
OUT "Hi" 10110101 01001000 01101001 to be carried out
operand: a data item
to be operated on or
a location in memory
Could be machine code ASCII for "H" ASCII for "i"
were the data is
instruction for output
stored
Operand
Opcode
Assembly language
Machine language
CPU hardware
Practice
17
Learn
When executing computer programs the CPU will carry out many instructions every
second by going through a set of steps known as the instruction cycle.
An instruction cycle carried out by a
processor works in three stages. Fetch
1 Fetch – the CPU fetches an the next
instruction
instruction from a location in
memory.
2 Decode – the CPU needs to work
Execute Decode
out what the instruction means, i.e. the the
what is it telling the CPU to do. instruction instruction
KEYWORDS
fetch: the process of collecting an instruction from another location
decode: the process of working out what the instruction means, what it is
telling the CPU to do
execute: the process of carrying out the instruction
instruction cycle: the cycle carried out by the CPU as it processes instructions.
fetch–decode–execute cycle: another name for the instruction cycle
Practice
When we think about the fetch–decode–execute cycle it all seems quite straightforward.
The processor collects an instruction from memory, decodes it, and then carries out that
instruction. The following task will help you think about some of the stages involved in
the fetch–decode–execute cycle.
18
Your teacher will provide you with a worksheet called Introducing the fetch–decode–
execute cycle. The worksheet contains two tables.
Table 1: This instruction reference table explains a made-up assembly language
instruction set for a basic calculator CPU.
Table 2: This table is a set of memory locations with a short program (written using the
made-up assembly language instruction for the calculator). It contains three additional
columns for you to complete by showing the decoded version of each instruction, any
updated memory location contents and any output from the program.
The worksheet contains a simple program that the calculator needs to carry out.
During this task you will work with a partner to examine each instruction in the memory
locations 0-5.
To complete the task you must
➤ Read each instruction in Table 2 in turn (like a processor fetching an instruction from
memory).
➤ Use the instruction decode table (Table 1) to work out what the instruction is asking
you to do and write down the decoded instruction in the appropriate column (like a
CPU decoding an instruction). The first has been done for you.
➤ Carry out the instruction by updating any memory location contents in Table 2 or
showing any output from the program in the appropriate column (like a CPU executing
the program instruction)
19
Once you have finished this task, design your own program on the blank memory
locations table and ask your partner to decode and execute it operating
in the same way as a CPU completing the fetch, decode and
execute cycle. For example, try writing a program which adds
three numbers together and then outputs the results. How would you
amend instruction Z
Try adding your own assembly language instructions to the
to help you with this?
instruction decode table to make the task more complicated
for your partner.
20
21
22
Computational Thinking
Practice
Use the updated This algorithm will help you complete this
assembly language task:
example to rewrite START
your program from
the previous practice
panel. But, this time, ADD AQ
Input first number
make use of the
AQ: This
accumulator. flow diagram
Remember the program doesn’t quite
Store the contents of the ACC in location 30 represent the
is designed to: task - memo-
ry addresses
➤ allow the user to input should be
two numbers 10 and 11,
Input second number and there’s
➤ store the numbers in no stage
memory locations 10 and for storing
second input
11
Add contents of location 30 to ACC in address 11,
➤ add the two numbers storing result
in location 12
together
➤ store the result in location
Output the contents of the accumulator
12
➤ output the result.
STOP
23
Before you
type your second
number, check the
location in main memory
to check your number has
been stored correctly in the
location you specified in
Notice how the You can increase your second instruction;
or decrease the Number 8 was for example, in the example
steps of the
speed the LMC executes the number 8 was
Fetch Execute previously entered
instruction by clicking entered and stored
cycle are being and the processor
on the << or >> in location 98.
explained by has now stored it
buttons in location 98.
‘The Little Man!’
24
Using the LMC in the previous practice task gave you an idea of how each of the registers
inside the processor are used during the fetch–decode–execute cycle.
Let us look at how the contents of the registers are used by the CPU as it executes the
first line of the program shown in Main Memory in the example below.
Fetch
Main Memory
➤ The program counter Address Contents
contains the number 0 CPU 0 LDA 9
as this is the memory 1 ADD 10
2 STA 12
location of the first PC MAR 3
address bus
instruction to be 0 0 4
executed. CIR MDR
5
6
➤ This means that the MAR 7
data bus
is also equal to 0. 8
ACC 9 8
➤ This address in the MAR 10 2
is located via the address 11 9
bus. In this case the 12
memory location is 0.
➤ There is currently nothing Main Memory
in the MDR, CIR or ACC. Address Contents
➤ The contents of memory CPU 0 LDA 9
location 0 are read from 1 ADD 10
2 STA 12
main memory and sent PC MAR 3
via the data bus to the 0 0 address bus
4
MDR 5
CIR MDR 6
LDA 9 7
data bus
8
ACC 9 8
10 2
11 9
12
25