Home /
Expert Answers /
Computer Science /
problem-3-30-points-python-programming-a-implement-a-new-class-34-agent-34-that-model-a-general-age-pa819
(Solved): Problem 3. (30 points) Python programming a) Implement a new class "Agent" that model a general age ...
Problem 3. (30 points) Python programming a) Implement a new class "Agent" that model a general agent with following attributes name, alive (to keep track of whether the agent is alive or not), action () i. define constructors of the class "Agent" ii. define necessary methods in the class "Agent" b) Implement a superclass "Vacuum" of the class "Agent" by referring to the vacuum example discussed in our lecture. Define constructor(s), necessary attributes, and methods. For instance, Agent can percept and execute action to clean room and turh left and right to go to different rooms. c) Implement a new class "Environment" that model the vacuum world with two rooms. Each room has two possible statuses: clean and dirty. d) Write a test program that tests these classes, methods, and print the status of agent and environment. - 20 points) Write the program # python program - (5 points) Screenshot of the output - (5 points) Save the program as "Assign01P03XX.py" where XX should be replaced by your initials. For example, I would name it as "Assign01P03YW.py".