An automated greenhouse system relies on a control script to regulate soil irrigation. A developer writes the following code to run a watering cycle, but accidentally creates an infinite loop:
SET moisture_level TO 35.2
WHILE moisture_level < 50.0
OUTPUT "Irrigation valve OPEN..."
ENDWHILE
State one action the developer can take to manually interrupt and stop this program from running when it is executing within an Integrated Development Environment (IDE) or terminal console.
Practise Edexcel GCSE Computer Science Develop code with exam-style questions for GCSE Computer Science. 57 questions covering Decomposition and abstraction to solve problems, Read, write, analyse and refine programs, Converting algorithms into programs, Techniques for readable, maintainable code, Identifying and correcting program errors, and Evaluating program fitness and efficiency, 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.