Write a C# program to help control a warehouse cleaning robot.
The program should:
Cannot clean this cellYou must use the subroutines described in the tables below.
| Subroutine | Purpose |
|---|---|
isWarehouseClean() | Returns true if all spills have been cleaned. Otherwise, returns false. |
isSpillNextToRobot(row, column) | Returns true if the cell at (row, column) is next to the robot. Otherwise, returns false. |
| Subroutine | Purpose |
|---|---|
cleanSpill(row, column) | Moves the robot to (row, column) and cleans the spill, if that cell is next to the robot. |
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.