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

Search the table

Week 17 · Unit 7: Be a data boss · 3 lessons
3

From paper cards to a table

Computing 4: Unit 7, pp. 90–103
GoalTurn paper records into a data table, choose data types and use the table to answer questions.
New words
data entry · typing facts from paper or a form into a data tablesurvey · asking several people the same questions and writing down the answerscheck · to look at your work again to find mistakes
Explanation

Data often starts on paper cards, forms or in a survey. To make a data table from paper records, follow these steps. Use the headings on the cards as field names. Make one row for each card. Copy every fact carefully into the right cell. Choose the right data type for each field. Then check the table against the cards, because typing mistakes are easy to make. When the table is ready, you can search it to answer questions. If you do a survey, ask only friendly questions, such as a favourite sport. Never ask for private facts, such as an address or phone number, and always ask politely.

Worked examples
Order cardNameFruitBoxesPick-upPaid
1Omarapples214/10/2022Yes
2Anapears114/10/2022No
3Chenapples321/10/2022Yes
Three fruit-box order cards from a school. Each card becomes one record. The headings on the cards become the field names.
FieldData type
NameText
FruitText
BoxesNumber
Pick-upDate/Time
PaidYes/No
Each field gets a data type. The Pick-up field uses the type Date/Time, so all dates are written day/month/year.
Now the table answers questions. How many boxes of apples were ordered? Search the field Fruit for apples (Omar and Chen), then add the Boxes: 2 + 3 = 5. Who has not paid? Search Paid for No: Ana.
Class activity

Class survey (with family or friends, never strangers): ask five people three friendly questions: What is your favourite fruit? How many brothers and sisters do you have? Can you ride a bike (Yes or No)? Write each person’s answers on a card. Then make a table with a Name field and a field for each question. Choose a data type for each field. Write two questions that your table can answer and search for the answers. Do not write down private facts and always ask politely.

Practice
1
A class library uses paper cards with the headings Title, Pages, Due back and Returned. Choose a data type for each field of the new table.
Library card
Title: Desert Stars
Pages: 56
Due back: 03/11/2022
Returned: No
2
A fourth order card arrives. Add it to the fruit-box table. How many boxes of pears are ordered now?
Order card 4
Name: Dina
Fruit: pears
Boxes: 4
Pick-up: 21/10/2022
Paid: Yes
3
Which orders are picked up on 21/10/2022 once Dina’s card is added?
4
Why should you check a table against the paper cards after typing it?