Studyfin Studyfin ✨ Sign up free

Input & output basics

Grade 5 · Coding · Free lesson

Welcome! Today we will learn how computers take in information and show us results.

Computers need information to work. An input is data or an event you send to a computer.

pencil

Pressing a key or clicking a mouse is an input event. The computer receives this event to start a sequence.

INPUT

An output is what the computer gives back. It can display text, show a picture, or make a sound.

CODE

We use a design process to solve problems. We decide what inputs we need and what outputs to show.

✏️ Worked example

Design a program that says 'Good morning!' when a student presses the spacebar.

  1. Identify the everyday problem: We want a polite morning greeting.
  2. Choose the input event: Pressing the spacebar key.
  3. Choose the output: Displaying the words 'Good morning!' on the screen.
  4. Create the sequence: When spacebar pressed -> print 'Good morning!'
chalk
Want the full interactive lesson — quiz, animations, and Finn cheering them on?

More Coding lessons