An ecological monitoring program uses a semi-autonomous drone to record wildlife sightings in a nature reserve. The data is imported into a program written in a high-level programming language and stored in a two-dimensional (2D) string array with the identifier obsData.
The data to be stored is shown in the table below:
| TimeSlot | Sector | Species | Count |
|---|---|---|---|
| 08:00 | SecA | Deer | 4 |
| 08:00 | SecB | Fox | 2 |
| 12:00 | SecA | Badger | 1 |
| 12:00 | SecC | Deer | 3 |
| 16:00 | SecB | Badger | 2 |
| 16:00 | SecC | Deer | 5 |
| 20:00 | SecA | Fox | 1 |
| 20:00 | SecB | Badger | 3 |
In this table, the value of obsData[1, 1] contains "SecB".
Write a program that:
Total sightings for Badger: 6
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.