Code is all around you
Every day you use things that are run by code. Your tablet, phone, video games, and even some toys have computers inside them. Code makes them work.
When you tap a screen, the code notices. When a game scores a point, the code counts. When a map shows you the way, the code figures out the best path.
Input, code, output
Most computer programs do the same three things:
- Input: the program receives information, like a tap or a voice command.
- Code: the program decides what to do using instructions.
- Output: the program shows a result, like a sound, picture, or movement.
A music app is a great example. You press play (input). The app reads the song file and sends sound to the speakers (code and output).
Click the things that use code
Tap each card to see how code helps it work.
Check yourself
Name one device you used today that has code inside. What did it do for you?
Sample answer: I used a tablet to watch a video. Code made the video play and the sound come out.
Quick quiz
1. Where can you find code?
2. What does a phone use code for?
3. Are there computers in cars?
Keep learning
You found code in your world. Next, start your own project.
Part of the What You Can Do With Computers series.