Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

What a data system does

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

45 minutes

Please stock the hoodie

You use an online shop. The hoodie is sold out. You type: "Please stock the hoodie."

What happens to your message? It is saved. Later the shop counts how many people asked. If many people ask, the shop buys more hoodies. Then you can buy one.

That small story uses seven jobs. Every data system does them.

Key words

WordWhat it meansExample
Data systemA system that takes in data, keeps it and gives it back when needed.An online shop
InputData going in to the system.You type a request.
SearchFind the data you want.Find every request for a hoodie.
SaveKeep the data so it is still there later.The request is stored.
IntegrateJoin data from different places.Put a customer name beside a request.
IndexA list that points to where data is, so the system finds it fast.The index at the back of a book
OutputData coming out in a form people can use.A list of the most asked items
Feedback loopWhat comes out changes what goes in next time.Stock the hoodie, and fewer people ask.
DatabaseAn organised store of data.The shop database

The cells students fill in are left blank in this preview.

Quick check: guess the job

Have a go

Quick check: guess the job

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

The seven jobs

A data system does seven jobs.

  1. Input: data goes in.
  2. Search: find data.
  3. Save: keep data.
  4. Integrate: join data from different places.
  5. Organise: use an index so finding is fast.
  6. Output: show or send data.
  7. Feedback loop: what comes out changes what goes in.

Try it: the seven jobs in code

Code: python
requests = []                      # Save: a list keeps the data
customers = {1: "Sam", 2: "Aisha"}

requests.append((1, "Hoodie"))     # Input: data goes in
requests.append((2, "Hoodie"))
requests.append((1, "Cap"))

for request in requests:           # Integrate: a name beside each request
    print(customers[request[0]], "asked for", request[1])

hoodie = []                        # Search: find the hoodie requests
for request in requests:
    if request[1] == "Hoodie":
        hoodie.append(request)
print("Hoodie requests:", len(hoodie))

requests.sort()                    # Organise: put the list in order
print(requests)                    # Output: show it

# Add one more request and run it again. See the output change.

The feedback loop

The output says the hoodie was asked for 2 times and the cap once. The shop decides to buy 20 hoodies. The decision changes the data: the stock goes up. When customers see it, fewer ask. The output has changed the input.

The lesson goes on

20 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.