CAPE Computer Science Unit 1 · 2012 · Paper 2 · Question 3(c)(ii)
A primary school surveys 150 students on their favourite colours among red, blue, green, or none. All votes are valid.
Write an algorithm to find and print the TOTAL number of students that voted for red, blue or green.
The mark scheme is shown once you've answered.
Practise this question