Week 10 · Unit 7.2: Decomposing problems · 3 lessons
1
From idea to better idea
Computing 7: Unit 7.2, pp. 44–81
GoalDescribe the five stages of a project plan and say how a user’s opinion helps to improve a program.
New words
project plan · a list of stages that takes a project from the first idea to a finished, checked productsuccess criteria · the things the finished program must do to count as a successuser · the person who will use the program or deviceusability · how easy and pleasant a program is for its user
Explanation
A project plan has five stages: plan, design, create, test and evaluate. In the plan stage you decompose the problem and write the success criteria. In the design stage you draw the flowchart and prepare a test plan. In the create stage you write the program. In the test stage you use the test plan to compare expected and actual outcomes. In the evaluate stage you look at the test results and the finished program, and ask whether it meets every success criterion. Testing and evaluating also happen along the way, for example when you trace a flowchart. Always think about the user: can they understand the pictures and sounds, and is the program easy to use? A chosen user can try the program and answer questions. Pictures and sounds change how people feel, so choose them carefully.
Stage
What you do
plan
decompose the problem; write the success criteria
design
draw the flowchart; prepare the test plan
create
write the program
test
use the test plan
evaluate
check the criteria; ask a user; list improvements
Worked examples
Stage
Mia’s work
plan
success criteria: scrolls Wash hands when the logo is touched; clear for a 6-year-old
design
flowchart with one decision: Is the logo touched?
create
she writes the if statement and the display.scroll line
test
she touches the logo and checks the message
evaluate
she asks a younger child if the message is clear
Mia’s project is a lunch-time sign that scrolls a reminder to wash hands when the logo is touched. Here is what she does at each stage.
Question to the tester
Answer
Improvement
Did you understand the message?
Some of the words were too hard for me.
Use shorter, simpler words.
Was it easy to start?
I did not know where to touch.
Add a label near the logo.
How did the picture make you feel?
The cross looked angry.
Use a friendlier picture.
Mia asks her tester three questions. Each answer suggests an improvement. This is part of the evaluate stage.
Friendly choices
Warning or unfriendly choices
Image.HEART, Image.SMILE, Image.YES
Image.ANGRY, Image.NO, Image.SAD
music.POWER_UP, music.BA_DING
music.WAWAWAWAA, music.POWER_DOWN
Pictures and sounds change how people feel. The same program can feel welcoming or unfriendly, depending on what it shows. Which one is best depends on the user and the job, so always test with the people who will use it.
Class activity
Pick the picture (no computer). Write these jobs on cards: a welcome at the door for a young child, a warning that a battery is low, a bedtime signal, a “well done” message. Write the picture names HEART, SMILE, YES, NO, ANGRY, ASLEEP and SURPRISED on other cards. Match one picture to each job and say why. Then ask one person at home to match the same cards. Do you agree? Write two sentences about why a programmer should ask the user.
Practice
1
Put the five stages in the right order: test, plan, evaluate, create, design.
Jumbled stages
test
plan
evaluate
create
design
Plan, design, create, test, evaluate.
2
Which stage is each job from? (a) draw the flowchart (b) ask a younger child to try the program (c) write the success criteria (d) type the code
Job
Stage
draw the flowchart
?
ask a younger child to try the program
?
write the success criteria
?
type the code
?
(a) design (b) evaluate (c) plan (d) create
3
A tester says: “The tune was so loud that it frightened me.” Which stage is this feedback from? Suggest one improvement.
It is part of the evaluate stage. Improvements: choose a gentler, shorter tune, such as music.BA_DING, and test again with the same user.
4
Why should you think about the user in the plan stage and not only at the end?
If you know who will use the program before you design it, you can choose clear words, suitable pictures and sounds from the start. Fixing a bad choice after the program is finished takes more work.