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

One question, two roads

Week 2 · 1.2 Selection in pseudocode · 3 lessons
Answers are for parents and teachers.
1
Write a condition for each. (a) The ticket costs less than 10. (b) The tank is not empty (variable fuel). (c) At most 4 pupils can sit at one table.
2
Follow the algorithm for the inputs 8 and 15. What is shown each time?
Pseudocode
1INPUT seats
2IF seats >= 10 THEN
3    OUTPUT "Large"
4ELSE
5    OUTPUT "Small"
6ENDIF
3
Write pseudocode: the user types the temperature of a fridge. If it is above 5, the program shows Too warm. Otherwise it shows Cold enough.
4
Rewrite the statement IF seats >= 30 THEN ... ELSE ... ENDIF in a different valid style. Say what you changed.
5
Why do spaces at the start of lines help a human reader, even though the computer ignores them?