Lesson 2 · Computational Thinking
How information flows through every program.
A supercomputer predicting the monsoon and a calculator adding 2 + 2 do exactly the same three things, in the same order:
That's it. Once you can spot these three steps, you can understand any machine you meet — including every program you are about to write.
There's one more piece. Storage is how a computer remembers things after the power goes off.
When you take a photo: the camera is the input, adjusting the brightness is the process, the picture on screen is the output — and saving it to the gallery is storage.
The difference matters. Turn your phone off and on: the photo is still there, because it was stored. Whatever was only being processed is gone forever.
| Machine | Input | Process | Output |
|---|---|---|---|
| Calculator | You press 7 × 8 | Multiplies the numbers | Shows 56 |
| UPI payment | Amount and PIN | Checks balance, moves money | "Payment successful" |
| Maps | Your start and destination | Compares routes and traffic | "25 minutes via NH48" |
| Washing machine | Dial set to "Quick Wash" | Runs that timed program | Clean, spun clothes |
Completely different machines. Identical pattern.
You search for a song by name in a music app and it appears in a list. Which part is the process?
Pick any machine near you — a microwave is perfect — and walk it through all four jobs. Do it carefully once here, and you'll be able to do it in your head forever after.
Write down one machine you can actually see right now. A microwave, a TV remote, a digital clock, an auto's fare meter — anything with buttons.
This chapter is free — open this lesson in your portal to save your answers and track progress.
The output of one machine is very often the input of the next. Your camera outputs a photo; WhatsApp takes that photo as input. Chains like this are how big systems get built out of small ones.
Your school wants to replace the paper attendance register with a computer.
Describe the system using all four jobs: