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

Flowcharts that choose

Week 4 · Unit 7.1: Block it out · 3 lessons
Answers are for parents and teachers.
1
Trace the flowchart for 12 guests, 13 guests and 5 guests.
StartINPUT guestsguests > 12?yesnoOUTPUT "Big table"OUTPUT "Small table"End
2
Draw a flowchart: the user enters the number of goals. If there are more than 2 it outputs ‘Great match’, otherwise it outputs ‘Good effort’.
3
Fill in the operator for each phrase.
In wordsCondition
fewer than 20pupils ? 20
at least 7days ? 7
exactly 9answer ? 9
not 3number ? 3
4
The user types 5 in one run and 4 in another. What does the program show each time?
Python
1temp = int(input("Temperature? "))
2if temp < 5:
3    print("Frost warning")
4else:
5    print("No warning")
5
Explain the difference between = and ==, and between sequence and selection.