An environmental monitoring system tracks the pH level of a local river. A program written in a high-level language is used to record these measurements. This program has a procedure, LogAcidityReading(), that saves a reading's details to an external text file.
The procedure LogAcidityReading():
Write the procedure LogAcidityReading() using either OCR Exam Reference Language or a high-level programming language that you have studied.
95 exam-style questions on OCR GCSE Computer Science Programming fundamentals. Each one has a worked solution and a mark scheme showing where the marks go.