An automation engineer is debugging a control loop for an industrial chemical reactor. The algorithm monitors the reactor's internal pressure, PPP, and temperature, TTT, to decide when to open a safety relief valve. Due to a suspected logic error in the code, the valve fails to open under critical conditions.
Explain how the engineer would use a trace table to isolate and identify this error.
159 exam-style questions on Edexcel GCSE Computer Science Algorithms, covering Constructs for solving problems, Variables, constants and data structures, Arithmetic, relational and logical operators, Tracing algorithm output with trace tables, Types of error and correcting logic errors, Standard algorithms (sorts and searches), and Evaluating algorithm fitness and efficiency. Each one has a worked solution and a mark scheme showing where the marks go.