Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 of 3 lo - + Fit to page D Page view | A Read aloud L Add notes H F & What to submit:
1 of 3 lo - + Fit to page D Page view | A Read aloud L Add notes H F & What to submit: . You will submit three java files as described below. Do not submit the entire project folder or class files. . Also, submit screenshots of the output of your code. Codes will be compared using document-comparing tools; any similarities between codes will lead to an "F" to the involving parties. In this assignment, you will simulate the motion of a random robot and a "biased" robot moving in an infinite two-dimensional grid (shown below). In each time step, the robot has four options: move one-step (each step is of length 1) in one of the four directions (East, West, North, and South). Diagonal motion is not permitted. The grid has four quadrants (1, 2, 3, and 4) as shown. Quadrant 1 Quadrant 2 00 Quadrant 3 Quadrant 4 Your goal is to create two JAVA classes (one java class=one java file). RandomRobot and BiasedRobot. Also, create a third class Robot Teat for testing purposes. The descriptions are below. RandomRobot class: Member variables: Position coordinates x and y as integers. Current direction of motion as a string ("East", "West", "North", or "South"). Current quadrant (1, 2, 3, 4), the robot is located as an integer. If the robot is on xor y-axis, quadrant should be assigned O. Member functions Constructor RandomRobot(): creates a robot located in the origin (0,0) and random direction of movement. 1 of 3 lo - + Fit to page D Page view | A Read aloud L Add notes H F & What to submit: . You will submit three java files as described below. Do not submit the entire project folder or class files. . Also, submit screenshots of the output of your code. Codes will be compared using document-comparing tools; any similarities between codes will lead to an "F" to the involving parties. In this assignment, you will simulate the motion of a random robot and a "biased" robot moving in an infinite two-dimensional grid (shown below). In each time step, the robot has four options: move one-step (each step is of length 1) in one of the four directions (East, West, North, and South). Diagonal motion is not permitted. The grid has four quadrants (1, 2, 3, and 4) as shown. Quadrant 1 Quadrant 2 00 Quadrant 3 Quadrant 4 Your goal is to create two JAVA classes (one java class=one java file). RandomRobot and BiasedRobot. Also, create a third class Robot Teat for testing purposes. The descriptions are below. RandomRobot class: Member variables: Position coordinates x and y as integers. Current direction of motion as a string ("East", "West", "North", or "South"). Current quadrant (1, 2, 3, 4), the robot is located as an integer. If the robot is on xor y-axis, quadrant should be assigned O. Member functions Constructor RandomRobot(): creates a robot located in the origin (0,0) and random direction of movement
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started