Develop a subroutine that analyzes a wildlife monitoring grid for conservation efforts in a nature reserve.
The subroutine should:
- have a sensible identifier
- take a 2D array named
parkGrid as a parameter
- work out and output how many active poacher traps have been detected and disabled (represented by the character
'T' in the grid)
- work out how many endangered rhinos (represented by the character
'R') are remaining in the grid and:
- if 0, then output
'Critical: No rhinos detected'
- if between 1 and 5 inclusive, then output
'Vulnerable sector'