Figure 2.1 Venn diagram for the AND operator

Figure 2.2 Venn diagram for the OR operator

Figure 2.3 Venn diagram for the NOT operator

Figure 2.4 Venn diagram for the IMPLIES operator

Figure 2.5 Venn diagram for the IF AND ONLY IF operator

Figure 2.6 Grading levels for fail and pass

Figure 2.7 Grading levels for fail, ordinary pass and distinguished pass

Figure 3.1 Royal family tree

Figure 3.2 Shakespeare plays arranged by genre into a tree structure

Figure 3.3 Science project task breakdown

Figure 3.4 Science project task breakdown revised

Figure 3.5 Smiley face

Figure 3.6 Breakdown of drawing smiley face

Figure 4.1 A metro map of the Rotherham underground

Figure 4.2 A more realistic map of the Rotherham underground

Figure 4.3 Layers of abstraction involved in email

Figure 4.4 Some layers of abstraction in the car rental example

Figure 4.5 Layers of abstraction including Vehicle and Van

Figure 4.6 Abstraction as modelling

Figure 4.7 State machine diagram of a turnstile

Figure 4.8 Map of Königsberg

Figure 4.9 Map of Königsberg

Figure 4.10 An orrery

Figure 4.11 A climate model from NASA

Figure 4.12 Model of a student record

Figure 4.13 Expanded model of a student record

Figure 5.1 All inputs divided into equivalence classes

Figure 5.2 Partway through tracing a Minesweeper algorithm

Figure 5.3 Priority severity matrix

Figure 6.1 Excerpt from a test plan for a vending machine

Figure 6.2 Cross section of a trap

Figure 6.3 Smiley face image

Figure 6.4 Smiley face image with pixel values

Figure 6.5 Smiley face image with compressed pixel values

Figure 8.1 Flow charts of the three basic algorithmic constructs

Figure 8.2 Flow chart of the continue statement

Figure 8.3 Flow chart of the break statement

Figure 8.4 Assigning values

Figure 8.5 Reassigning values

Figure 8.6 Executing two different ways of adding to a list

Figure 8.7 Altering a single mutable object having multiple names

Figure 9.1 Example partial hierarchy of the emoji drawing problem

Figure 9.2 US Air Force (1967). An old-fashioned switchboard

Figure 11.1 Simple class diagram

Figure 11.2 Class diagram with attributes and operations

Figure 11.3 Class diagram with types included

Figure 11.4 An empty package

Figure 11.5 A non-empty package

Figure 11.6 A component

Figure 11.7 Examples of nodes

Figure 11.8 EngineFactory depends on Battery

Figure 11.9 Examples of inheritance

Figure 11.10 An association between customers and addresses

Figure 11.11 A link between two nodes in a deployment diagram

Figure 11.12 An aggregation between a garage and vehicles

Figure 11.13 A chessboard is composed of squares

Figure 11.14 State machine diagram of a coin-operated turnstile

Figure 11.15 State machine diagram of a card-operated turnstile

Figure 11.16 Activity diagram of a card-operated turnstile

Figure 11.17 Simple use case diagram

Figure 11.18 More complex use case diagram

Figure 12.1 Stages of creating a solution and their corresponding testing phases

Figure 13.1 Decomposition stage

Figure 13.2 Decomposition stage

Figure 13.3 Decomposition stage

Figure 13.4 Class diagram of rules

Figure 13.5 Class diagrams of components and sensors

Figure 13.6 Class diagram of regulator

Figure 13.7 Activity diagram of regulator

Figure 13.8 State diagram of applying a lighting rule

Figure 13.9 Revised state diagram of applying a lighting rule

Figure B.1 Task breakdown for picnic

Figure B.2 Species organised into a tree structure by number of legs

Figure B.3 Species organised into a tree structure by ability to fly

Figure B.4 Species organised into a tree structure by biological class

Figure B.5 State machine diagram showing states of an order

Figure B.6 Extended data model of a student’s record

Figure B.7 Class diagram of a chess set

Figure B.8 Use case diagram of a typical cash machine

Figure B.9 Activity diagram for cash withdrawal

Table 1.1 A list of definitions of computational thinking

Table 2.1 Logical operators and their symbols

Table 2.2 Truth table of conjunction (logical AND)

Table 2.3 Truth table of conjunction (using 1 and 0 symbols)

Table 2.4 Truth table of disjunction (logical OR)

Table 2.5 Truth table of negation (logical NOT)

Table 2.6 Truth table of implication (logical IMPLIES)

Table 2.7 Truth table of biconditional (logical IF AND ONLY IF)

Table 2.8 Order of precedence for selected logical operators

Table 2.9 Recipes in the database

Table 5.1 Advantages and disadvantages of top-down and bottom-up testing

Table 6.1 Sample of common complexity classes

Table 6.2 Sample of a list of usability tasks

Table 8.1 Logical operators in Python

Table 10.1 List of some of the most commonly used types in Python

Table 12.1 A partial list of assertion methods

Table 12.2 Some example system properties and how to test them

Table 12.3 Debug levels and appropriate times to use them

Table A.1 Order of operator precedence

Table A.2 Some examples of immutable and mutable types in Python