AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Shapes that show steps

Week 1 · Unit 1: Go with the flow · 3 lessons
2

Straight down the page

Computing 6: Unit 1, pp. 8–21
GoalRead and draw a linear flowchart, and name its inputs, process and output.
New words
linear flowchart · a flowchart with no loops and no decisions, so it flows straight downinput · data that goes into a programoutput · a result that a program shows, says or makesoutcome · what you have at the end of a flowchart
Explanation

A linear flowchart starts at the top and goes straight down to the end. Every step happens once, in the order of the arrows. It has no questions and no loops, so it always follows the same path. To plan one, first write the steps in a list. Then decide which steps are inputs, processes and outputs. Draw the right shape for each step and join the shapes with arrows. Last, test the flowchart with real numbers to check that it works. The result at the end is called the outcome.

Starttype the lengthtype the widtharea = length × widthshow the areaEnd
Worked examples
LengthWidthArea shown
6424
10330
5525
Nodira’s flowchart finds the area of a table top. Here it is tested with three different pairs of inputs. The path is always the same. Only the numbers change.
Startget bread, butter and cheesespread butter on two slicesput cheese between the slicesput the sandwich on a plateEnd
Amir plans a cheese sandwich. Getting the bread, butter and cheese is an input. Spreading and putting the slices together are processes. Putting the sandwich on a plate is the output. There is only one outcome: one sandwich.
Flowcharts are not only for computers. A factory can use one to show how a toy is made, and a library can use one to show how a book is lent. Any job with steps can have a flowchart.
Class activity

Plant a bean (no computer): write these steps on six small pieces of paper: get a cup, soil and a bean; fill the cup with soil; make a hole with a finger; put the bean in the hole; cover it with soil; water the soil. Mix the papers up. Put them in the right order, draw an arrow between each pair and draw the correct shape round each step. Which step is the input, and which is the output? If you have a computer or tablet, you can type the steps into boxes and arrange them. If you like, plant a real bean after.

Practice
1
Name the input, the process and the output. What is shown if the user types 250?
Starttype a length in cmdivide it by 100show the length in metresEnd
2
Put these steps in the correct order and give the shape for each: show the total, type the price of one ticket, start, multiply the price by 3, stop.
3
What goes in the missing box? If the user types 8, what is shown?
Starttype your score?show the double scoreEnd
4
Is this a linear flowchart? Explain.
Startlook at the dooris the door open?yesnowalk inpush the doorEnd