Computers are everywhere
A computer is not just a laptop. A tablet is a computer. A phone is a computer. A game console is a computer. Even some toys, watches, and cars have computers inside.
Computers are special because they can do many different things. They can show videos, help you draw, play music, do math, and talk to other computers far away.
Input and output
Every computer takes in information, does something with it, and sends information back out.
- Input is what you give the computer. Typing on a keyboard, tapping a screen, and using a microphone are all input.
- Output is what the computer gives back. A picture on the screen, sound from speakers, or vibrations from a controller are output.
When you press a key, the computer sees the input and decides what output to show.
Code is instructions
Code is a list of instructions that tells a computer what to do. It is like a recipe. A recipe tells you step by step how to make a sandwich. Code tells a computer step by step how to draw a cat or move a character in a game.
People write code in special languages that computers understand. Then the computer follows the instructions very fast and never gets bored.
Fun fact: a computer can do billions of tiny steps in one second. That is why games look smooth and websites load quickly.
Give the robot commands
Click a command to tell the robot what to do. This is a little like writing code.
Check yourself
Name one computer you have at home or school. What input does it use? What output does it give?
Your answer:
Sample answer: A tablet is a computer. I tap the screen to give input, and it shows pictures and sounds as output.
Quick quiz
1. What is code?
2. Which of these is an input?
3. Where can you find a computer?
Keep learning
You know what a computer is. Next, learn how to give a computer instructions.
First tutorial in the What You Can Do With Computers series.