Question: A circle is inscribed in a square as shown below. Darts are randomly thrown into the square. Robotic Random Walk Simulation. Write a program that
A circle is inscribed in a square as shown below. Darts are randomly thrown into the square.

Robotic Random Walk Simulation. Write a program that will implement the following
tasks:
A robot starts at the origin.
Every dart in quadrant I will make the robot move 0.1 ft in the x-direction.
Every dart in quadrant II will make the robot move 0.1 ft in the y-direction.
If the robot reaches the east wall say: Hit the east wall!!!, and stop the dart throwing.
If the robot reaches the north wall say: Hit the north wall!!!, and stop the dart throwing.
Every dart in quadrant III will make the robot move 0.1 ft in the x-direction.
Every dart in quadrant IV will make the robot move 0.1 ft in the y-direction.
If the robot reaches the west wall say: Hit the west wall!!!, and stop the dart throwing.
If the robot reaches the south wall say: Hit the south wall!!!, and stop the dart throwing.
Display the coordinates of the robots path in the command window.
Draw the path of the robot superimposed on the dartboard.
1 Y11 1 Y11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
