Refer to the following algorithm written in pseudocode/Python-style code:
1 # ==========================================
2 # Telemetry Signal Processing
3 # ==========================================
4 packets = [104, 112, 98, 121, 105]
5 threshold = 100
6
7 for value in packets:
8 if value < threshold:
9 print("Signal strength low: " + str(value) + " dBm")
10
11 confirm = input("Proceed with transmission reset? (Y/N): ")
12 while confirm not in ["Y", "N", "y", "n"]:
13 print("Invalid response. Please enter Y or N.")
14 confirm = input("Proceed with transmission reset? (Y/N): ")
15
16 print("Command processed successfully.")
Give the line number where the condition-controlled loop begins.
Practise Edexcel GCSE Computer Science Constructs with exam-style questions for GCSE Computer Science. 61 questions covering Structural components of programs and Writing programs with control constructs, matched to the Edexcel GCSE Computer Science (1CP2) specification and written in Paper 1 and Paper 2 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.