An algorithm is shown in the following code block:
1 # ==========================================================
2 # Orbital Telemetry System v3.1
3 # ==========================================================
4 activeSatellites = ["Hubble", "James Webb", "Chandra", "Spitzer", "Kepler"]
5 selectedSatellite = ""
6
7 # Determine primary monitoring queue
8 for sat in activeSatellites:
9 print("Initialising contact with " + sat)
10
11 selectedSatellite = input("Select a satellite to query: ")
12 while selectedSatellite != "Shutdown":
13 if selectedSatellite == "James Webb":
14 print("James Webb is operating at L2 Lagrange point.")
15 else:
16 print("Telemetry link established with " + selectedSatellite)
17
18 selectedSatellite = input("Select next satellite to query: ")
State the line number where the algorithm first starts to iterate over every item in a data structure.
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.