Scores and sums
Answers are for parents and teachers.
1
Write an algorithm that asks for the number of marbles Ali has and the number that Mia has, and outputs how many they have together. What does it output if Ali has 12 and Mia has 9?
1 Ask for Ali’s marbles and store it in Ali. 2 Ask for Mia’s marbles and store it in Mia. 3 Set Together to Ali + Mia. 4 Output Together. With 12 and 9 it outputs 21.
2
Make a paper quiz with 4 questions. Rules: start at 5, add 2 for a right answer, take away 1 for a wrong one. Ask a family member and write the score after every question. What is the final score?
Answers vary. Check that each line follows from the line above, for example 5, 7, 6, 8, 10.
3
A garden is 9 m long and 6 m wide. Write the formula and work out the perimeter.
P = 9 + 6 + 9 + 6 = 30, so the perimeter is 30 m.
4
Write six things from games or school. Mark each V for variable or C for constant, for example ‘the lives of a player’.
Answers vary. Variables change (a score, a timer, a name typed in). Constants stay the same (the sides of a triangle, the hours in a day).
5
(if you have a computer or tablet) In Scratch, make a sprite that asks a question, sets a score to 5 and adds 3 for a right answer or takes away 2 for a wrong one. Test it with both kinds of answers.
The program should start with a set block and use an if … then … else block. Right answer: 8. Wrong answer: 3.