Week 29 · Unit 12: Be a problem solver · 3 lessons
1
Five stages of a plan
Computing 6: Unit 12, pp. 162–177
GoalName the five stages of a project plan in order and say what happens in each stage.
New words
project plan · a list of stages to follow when building a programrequirements · the things that the user needs the program to doimplementation · writing the program, using the designevaluation · checking whether the finished program meets the requirements
Explanation
A project plan helps us to build a program in an organised way. There are five stages. In Requirements we find out what the user needs. In Design we work out how the program will work, with algorithms or flowcharts. In Implementation we write the code. In Testing we run the program with different inputs and fix any errors that we find. In Evaluation we check that the program meets the requirements and we write down ideas for improvement. If the result is not good enough, we go round the stages again. Each time the program gets a little better.
Stage
The question it answers
1 Requirements
What does the user need?
2 Design
How will it work?
3 Implementation
How do we build it?
4 Testing
Does it work with different inputs?
5 Evaluation
Does it meet the requirements, and what could be better?
Worked examples
Stage
What we do for the timer
Requirements
show 10, 9, 8 … 1 and then say ‘Time is up!’
Design
draw a flowchart of the counting
Implementation
build the blocks in Scratch
Testing
run it and check each number and the final message
Evaluation
check the requirements and note ideas, for example a beep
Here is a project plan for a countdown timer for a science test. Each stage has its own piece of work.
This is the design stage. The flowchart uses a loop that runs while time is more than 0.
This is the implementation stage. Each block matches a step of the flowchart. The program says 10, 9, 8 and so on down to 1, and then ‘Time is up!’.
Class activity
Plan a picnic (no computer): a project plan works for any job. Write the five stages on five cards and plan a class picnic with them. Requirements: who is coming, how many sandwiches? Design: a list and a map. Implementation: do the preparation. Testing: a small trial, such as packing one bag. Evaluation: after the picnic, what worked and what would you change? Then choose a program idea, such as a program that tells children which day the library is open, and write one sentence for each stage. If you have a computer or tablet, build the countdown timer in Scratch.
Practice
1
Put the stages in the right order: testing, requirements, evaluation, design, implementation.
Which stage is each task? (a) draw a flowchart, (b) type the blocks, (c) run the program with different inputs, (d) ask if the program does what the user asked, (e) list what the user wants.
Name the missing stage in the plan for a pet-feeding reminder and say what happens in it.
Stage
Pet-feeding reminder
Requirements
remind the family to feed the pet at 8 o’clock
Design
a flowchart that compares the clock with 8
?
—
Testing
try the times 7, 8 and 9
Evaluation
ask the family if the reminder is clear
The missing stage is implementation. The programmer builds the blocks from the flowchart.
4
Why can the stages be repeated more than once?
After testing or evaluation the programmer may find a problem or an idea for improvement. Going round the stages again makes a better version of the program.