Studyfin Studyfin ✨ Sign up free

Input & output basics

Grade 4 · Coding · Free lesson

Hi there! I am Studyfin, your coding buddy. Today we will explore how computers get information and share it back with us!

Computers need our help to do things. We give them information, and they show us the results. This is called input and output.

calculator

An input is how we talk to a computer. When you press a key or click a mouse, you send an input signal inside.

CLICK ME

An output is how the computer talks back to us. It can light up a screen, play a sound, or print a picture.

HELLO!

Coders use a design process to solve everyday problems. We plan the inputs, write the steps, and check the outputs.

✏️ Worked example

Let us design a program for a smart nightlight. It should turn on automatically when a room gets dark. How do we plan the inputs and outputs?

  1. First, find the everyday problem: A dark room makes it hard to see at night.
  2. Second, choose the input: We need a light sensor to measure how bright the room is.
  3. Third, write the rule: IF the light sensor detects darkness, THEN send a signal.
  4. Fourth, choose the output: The nightlight bulb turns on to glow softly.
  5. Fifth, test the program: Cover the sensor with your hand to see if the bulb lights up!
physics
Want the full interactive lesson — quiz, animations, and Finn cheering them on?

More Coding lessons