Apex Heating Systems need to identify the total duration in minutes that the heating zones have been active on a specific date.
The data from the database table heating_log is imported into a program written in a high-level programming language.
The program stores the data in a two-dimensional (2D) string array with the identifier logData.
The data to be stored is shown in the table below:
| Date | ZoneID | ZoneType | Duration |
|---|---|---|---|
| 12/11/2024 | ZH1 | Hall | 45 |
| 12/11/2024 | ZK2 | Kitchen | 15 |
| 13/11/2024 | ZB1 | Bedroom | 60 |
| 13/11/2024 | ZH1 | Hall | 30 |
| 14/11/2024 | ZK1 | Kitchen | 20 |
| 14/11/2024 | ZB2 | Bedroom | 45 |
| 14/11/2024 | ZH1 | Hall | 15 |
In this table, the value of logData[1, 1] contains "ZK2".
Write a program that:
The heating was active for 60 minutes on 12/11/2024
You must use either:
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.