Refer to the following algorithm written in pseudocode/Python-style code:
1 # ==========================================
2 # Drone Altitude Safeguard Calibration
3 # ==========================================
4 safe_limit = 0.0
5 safe_limit = float(input("Set drone maximum ceiling altitude (m): "))
6 while (safe_limit < 10.0 or safe_limit > 120.0):
7 print("Out of legal range. Enter a value between 10.0 and 120.0.")
8 safe_limit = float(input("Set drone maximum ceiling altitude (m): "))
9
10 print("Safe ceiling successfully established.")
11
12 recent_altitudes = [15.2, 45.0, 82.5, 105.1]
13 for alt in recent_altitudes:
14 if alt > safe_limit:
15 print("Warning: Logged altitude " + str(alt) + "m exceeded safety ceiling.")
Give the line number where the condition-controlled loop begins.
50 exam-style questions on Edexcel GCSE Computer Science Constructs, covering Structural components of programs and Writing programs with control constructs. Each one has a worked solution and a mark scheme showing where the marks go.