FOUNDATION · WEEK 01

From data cards to clear procedures

Learn variables, iteration, filtering, flowcharts and data types through small examples you can trace by hand. No previous programming experience is needed.

13 study sections25 illustrations2 resources
Start Week 1 →

Study sections

Follow the order or choose a section
01

Start here: think in clear, repeatable steps

Computational thinking means turning a problem into clear steps that another person or a computer can follow. This course begins before…

3 illustrations
02

Meet the datasets: marks, bills and words

A dataset is a collection of related items. In this course, each item is drawn as a card. Each card has named fields. Different cards f…

2 illustrations
03

Variables and iteration: remember your progress

A variable is a named place to keep a value while a procedure runs. Iteration means repeating a set of steps over the items. Together,…

2 illustrations
04

Sums and averages: two variables, one scan

Counting adds 1 for each record. Summing adds a value from that record. You can do both in one scan, then divide to get an average.

2 illustrations
05

Filtering: count only the cards you want

A filter is a condition that selects the records relevant to a question. A filtered iteration still visits the records systematically,…

3 illustrations
06

Combine filters and keep separate group summaries

Some questions require more than one condition. For example, a record must have group F AND city Chennai. Check both fields, then updat…

3 illustrations
07

Flowcharts: draw decisions and repetition

A flowchart draws a procedure using shapes and arrows. It shows the order of operations, the choices that can be made, and the steps th…

2 illustrations
08

Flowcharts with filters: make every path finish a visit

A filtered flowchart adds another decision inside the loop. One decision asks whether work remains. The next asks whether the current c…

2 illustrations
09

Sanity of data: find problems before calculating

A well-written procedure can still give a wrong answer if its inputs are wrong. Sanity checking means asking whether the data have the…

2 illustrations
10

Basic data types: values and permitted operations

A data type describes two things: which values can be stored and which operations are permitted. A number-shaped label, a mark and a na…

2 illustrations
11

Subtypes: narrower rules for specific fields

A subtype narrows a broader type to suit a particular purpose. It can restrict both the allowed values and the operations. This makes t…

2 illustrations
12

Transform representations: dates, fractional marks and money

The way a value is displayed need not be the way it is stored. A useful representation makes the required comparisons and calculations…

2 illustrations
13

Records and lists: build structured data

Basic types describe individual values. A record bundles named fields into one structured item. A list gathers a sequence of items. Com…

3 illustrations