Programming fundamentals
41
0/6

Wildlife Monitoring systems need to identify the total count of specific endangered bird species observed over a recording period.

The data from the database table bird_sightings 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 sightingData.

The data to be stored is shown in the table below:

DateSightingIDSpeciesCount
22/10/2025S01Osprey3
22/10/2025S02Red Kite5
23/10/2025S03Golden Eagle1
23/10/2025S04Osprey2
24/10/2025S05Red Kite4
24/10/2025S06Golden Eagle2
24/10/2025S07Osprey6
24/10/2025S08Red Kite1

In this table, the value of sightingData[1, 1] contains "S02".

Write a program that:

  • asks the user to input a species name
  • totals the count of that species observed across all dates
  • outputs the calculated total in an appropriate message including the species name, for example:

A total of 11 Osprey were recorded

You must use either:

  • OCR Exam Reference Language, or
  • A high-level programming language that you have studied.
[6]

Programming fundamentals Questions

Practise OCR GCSE Computer Science Programming fundamentals with exam-style questions for GCSE Computer Science. 100 questions, matched to the OCR GCSE Computer Science (J277) specification and written in Component 01 and Component 02 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.

PreviousNext

Programming fundamentals Questions

  1. GCSE
  2. /Computer Science
  3. /Programming fundamentals