# Input, process, output

> Every computer task takes input, processes it with steps, and gives output; learn to spot the three parts and write them in pseudocode.

Free lesson with a practice sheet

Every computer task takes input, processes it with steps, and gives output; learn to spot the three parts and write them in pseudocode.

- [Computers and coding](https://engineergurukul.com/resources/kids/?subject=computers#lessons)
- [Classes 6-8](https://engineergurukul.com/resources/kids/?band=6-8#lessons)
- 4 min read

[Get the whole book: Computers and coding for classes 6 to 8 (8 lessons, free to print)](https://engineergurukul.com/resources/kids/books/computers-6-8/)

Let us begin

## The big idea

A calculator, a washing machine and a video game all do the same three things: take something in, work on it, and give something out. Computer scientists call this input, process, output. Once you can see these three parts, you can plan any program.

Input is what goes into the computer: numbers typed on a keyboard, a click of the mouse, a photo from a camera or a sound from a microphone. In a plan we write INPUT followed by the variable that stores it, for example INPUT length.

Process is the work the computer does with the input: adding, comparing, sorting, counting. This is where the steps of the algorithm live, for example area = length \* breadth.

Output is what comes out: words on the screen, a printed page, a sound or a light. We write OUTPUT followed by what to show, for example OUTPUT area.

Writing a plan with these simple English-like words is called pseudocode. It is not a real programming language, so nothing runs it, but it is clear enough that a person could follow it, and it can be turned into any real language later.

Diagram: Input, process, output for finding an area. Three boxes in a row joined by arrows. The first, labelled Input, holds length 6 and breadth 4. The middle, labelled Process, holds area = length times breadth. The last, labelled Output, holds 24. Examples of devices appear under each box.

*Information flows from left to right: input is taken in, the process works on it, and the output comes out.*

Worked examples

## See how it works

### 1. Area of a rectangle

INPUT length. INPUT breadth. area = length \* breadth. OUTPUT area. Trace with length = 6 and breadth = 4: area = 24, and the output is 24.

### 2. Average of three marks

INPUT m1, m2, m3. total = m1 + m2 + m3. average = total / 3. OUTPUT average. With marks 70, 80 and 90: total = 240, average = 80.

### 3. Spotting the parts in daily life

A washing machine: input is dirty clothes, water and the programme you choose; process is washing, rinsing and spinning; output is clean wet clothes. A calculator: input is the keys you press, process is the sum, output is the number on the display.

Try it at home

## Be the computer

### You will need

- Paper slips for inputs
- A pencil
- A bowl

### What to do

1. On paper write this pseudocode: INPUT a. INPUT b. sum = a + b. double = sum \* 2. OUTPUT double.
2. Write five numbers on slips and put them in the bowl.
3. A friend picks two slips (the input) and gives them to you. You are the processor: follow the lines in order and write each variable value.
4. Say the final OUTPUT aloud. Then swap roles.
5. Change the process line to double = sum \* 3 and run it again. Which part changed: input, process or output?

Practice sheet

## Check what you learned

Write your answers in a notebook, or print this sheet and write on it. When you finish, mark your work with the [answer key](https://engineergurukul.com/resources/kids/input-process-output/#answers).

Practice sheet: Input, process, output (Classes 6-8, Computers and coding)

1. Name the three parts of every computer task, in order.
2. Is a keyboard an input device or an output device?
3. Is a printer an input device or an output device?
4. In the area pseudocode, which line is the process?
5. What is pseudocode?
6. Run this: INPUT n. result = n \* n. OUTPUT result, with n = 7. What is the output?
7. For a microwave oven, what is the input, the process and the output?
8. Write pseudocode to take a price and output the price with 10 added.
9. A program outputs the wrong average. Which part would you check first: the input, the process or the output?
10. Why is pseudocode written in simple English words instead of a real language?

Answer key

## Answers: Input, process, output

Do the practice sheet first, then check here. If an answer is different from yours, read the lesson again and try once more.

1. Input, process, output.
2. Input.
3. Output.
4. area = length \* breadth.
5. A plan written in simple English-like steps that a person can follow; it is not run by a computer.
6. 49
7. Input: the food and the time you set. Process: heating. Output: hot food (and the beep).
8. INPUT price. newprice = price + 10. OUTPUT newprice.
9. The process, because that is where the calculation is done (though checking the input is also sensible).
10. So that anyone can read it and it can later be turned into any programming language.

What next

## Keep learning

Computers and coding

### [Algorithms: instructions step by step](https://engineergurukul.com/resources/kids/algorithms-step-by-step/)

An algorithm is a list of clear steps in the right order. Learn to write, test and fix algorithms on paper.

Classes 3-5 4 min read Practice sheet Start the lesson

Computers and coding

### [Parts of a computer](https://engineergurukul.com/resources/kids/parts-of-a-computer/)

Meet the monitor, keyboard, mouse and CPU, and learn what each part of a computer does with simple examples.

Classes 1-2 3 min read Practice sheet Start the lesson

Computers and coding

### [Variables: storing values](https://engineergurukul.com/resources/kids/variables-storing-values/)

A variable is a labelled box in memory that holds a value; learn to set it, change it and trace it on paper step by step.

Classes 6-8 5 min read Practice sheet Start the lesson

Computers and coding

### [Flowcharts: drawing a plan](https://engineergurukul.com/resources/kids/flowcharts-drawing-a-plan/)

Draw a flowchart with start, step, decision and end shapes, follow the arrows, and plan any task before writing code.

Classes 6-8 5 min read Practice sheet Start the lesson

### Inside a robot

A robot works the same way: its sensors are the input, a small computer does the processing, and its motors or lights are the output. [Robotics activities for children, age by age](https://engineergurukul.com/robotics-for-kids/) show what to build first.

### Get the whole book

All 8 computers and coding lessons for classes 6 to 8 on one page, with every practice sheet and answer key, ready to print.

[Computers and coding for classes 6 to 8](https://engineergurukul.com/resources/kids/books/computers-6-8/)

[All 136 lessons](https://engineergurukul.com/resources/kids/#lessons) [All printable books](https://engineergurukul.com/resources/kids/books/)

Find out more

## Want to learn more about computers and coding?

These are free, well-known places to explore. Ask a grown-up before you sign up for anything or type your name anywhere.

- [Scratch (opens in a new tab)](https://scratch.mit.edu/)

  Make your own games, stories and animations by snapping blocks of code together.

  Ages 8 and up Free
- [Code.org (opens in a new tab)](https://code.org/)

  Coding lessons and games, with an Hour of Code for beginners.

  Ages 4 and up Free
- [Hour of Code (opens in a new tab)](https://hourofcode.com/)

  One-hour coding activities for beginners, with no sign-up needed for most.

  Ages 5 and up Free
- [CS Unplugged (opens in a new tab)](https://www.csunplugged.org/)

  Learn how computers think using cards, string and games, with no computer at all.

  Ages 5 and up Free
- [micro:bit (opens in a new tab)](https://microbit.org/)

  A tiny programmable board. The website has a free simulator so you can try ideas on screen first.

  Ages 8 and up Free
- [Tinkercad (opens in a new tab)](https://www.tinkercad.com/)

  Design 3D models and practise electronics circuits on screen. Ask a grown-up to help make the account.

  Ages 10 and up Free
- [Be Internet Awesome (opens in a new tab)](https://beinternetawesome.withgoogle.com/)

  Games and lessons that teach how to stay safe and kind online.

  Ages 7 to 13 Free
- [Python (opens in a new tab)](https://www.python.org/)

  The home of the Python language, which many people use to learn real coding. Ask a grown-up to help you install it.

  Ages 12 and up Free

[More places to learn, and free reading ideas](https://engineergurukul.com/resources/kids/learn-more/)

## At a glance

- **Subject**: Computers and coding
- **Class**: Classes 6-8
- **Reading**: 4 min
- **Examples**: 3
- **Practice**: 10 questions, with answers

## The printable book

[Get the whole book](https://engineergurukul.com/resources/kids/books/computers-6-8/)

- [All printable books](https://engineergurukul.com/resources/kids/books/)
- [Practice worksheets](https://engineergurukul.com/resources/kids/worksheets/)

---

Canonical URL: https://engineergurukul.com/resources/kids/input-process-output/
