Write a C# program to help control an autonomous asteroid-mining probe.
The program should:
Target out of rangeYou must use the subroutines described in the tables below.
| Subroutine | Purpose |
|---|---|
isMiningFinished() | Returns true if all required mineral cores have been extracted. Otherwise, returns false. |
isTargetInRange(sector, depth) | Returns true if the coordinates (sector, depth) are within the drilling arm's reach. Otherwise, returns false. |
| Subroutine | Purpose |
|---|---|
extractCore(sector, depth) | Deploys the drill to (sector, depth) and extracts the mineral core, if the location is within reach. |
You should use meaningful variable name(s) and C# syntax in your answer.
131 exam-style questions on AQA GCSE Computer Science Structured programming and subroutines (procedures and functions). Each one has a worked solution and a mark scheme showing where the marks go.