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.
51 exam-style questions on Edexcel GCSE Computer Science Develop code, 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. Each one has a worked solution and a mark scheme showing where the marks go.