(Solved) : Artificial Intelligence Implement Table Driven Vacuum Cleaner Agent Via Java Code Dirt Ran Q31607498 . . .
Artificial intelligenceImplement a table driven vacuum cleaner agent via JavacodeWhere the dirt is randomly distributed in a fixed 2D array ofsize 5×5
Task 2: The Table Driven Agent The table agent uses a simple look-up table to od the agent’s actions. In this task, you will code up a very simple agent program that uses the table to guide the agent to the goal location. Write an agent program MyTableAgent.java. The table itself will be an array of directions in which the agent should face in order to proceed towards the goal. For example, create an agent MyTableAgent.java and declare an integer array direction Table: int[][] directionTable-new int[5] [5]; For example, the table should direct the agent right if it resides in the first grid cell (0,0): directionTable[0][1] = Right; Fill in the rest of the table so that agent wil make its way to the goal in the environment. Use this table with the moveLeft0, moveRight0, moveUp) and moveDownO to get your agent to the goal. Confirm the agent program works (all dirt cleaned). Note: Read chapters in the book about the Table Driven Agent. Show transcribed image text
Expert Answer
Answer to Artificial Intelligence Implement Table Driven Vacuum Cleaner Agent Via Java Code Dirt Ran Q31607498 . . .
OR