question archive Task 3: Program MouseTrap class Catch the mouse if it steps into the trap
Subject:Computer SciencePrice: Bought3
Task 3: Program MouseTrap class Catch the mouse if it steps into the trap. If it is trapped, 1. Stop Greenfoot the scenario. 2. Display a message to console window indicating which cell number in the CheeseWorld grid this accident happened. Sample Message: MOUSE TRAP:CheeckyMouse is trapped at grid cell xx*. * xx replaced by the cell number. Note: Follow the following grid numbering pattern: