+1-415-670-9189
info@expertsmind.com
Draw the path of the robot superimposed on the dartboard
Course:- Science
Reference No.:- EM131434528




Assignment Help
Expertsmind Rated 4.9 / 5 based on 47215 reviews.
Review Site
Assignment Help >> Science

ESC 152 Mini Project: Robotic Random Walk Simulation

A circle is inscribed in a square as shown below. Darts are randomly thrown into the square

1661_Figure.png

Robotic Random Walk Simulation. Write a program that will implement the following tasks:

1. A robot starts at the origin.

2. Every dart in quadrant I will make the robot move 0.1 ft in the x-direction.

3. Every dart in quadrant II will make the robot move 0.1 ft in the y-direction.

4. If the robot reaches the east wall say: "Hit the east wall!!!", and stop the dart throwing.

5. If the robot reaches the north wall say: "Hit the north wall!!!", and stop the dart throwing.

6. Every dart in quadrant III will make the robot move -0.1 ft in the x-direction.

7. Every dart in quadrant IV will make the robot move -0.1 ft in the y-direction.

8. If the robot reaches the west wall say: "Hit the west wall!!!", and stop the dart throwing.

9. If the robot reaches the south wall say: "Hit the south wall!!!", and stop the dart throwing.

10. Display the coordinates of the robot's path in the command window.

11. Draw the path of the robot superimposed on the dartboard.




Put your comment
 
Minimize


Ask Question & Get Answers from Experts
Browse some more (Science) Materials
You will need to examine the key elements of human factors and health information systems by utilizing your Unit Reading resources. Use your expertise to document your human
At altitudes below 100km, vapor trails (plumes of condensated water vapor from aircraft or rockets) become distorted and break up. This does not happen at altiutudes above 100
Assume that you weigh a book on an equal-arm balance while an elevator is stopped at the ground floors. Would you get the same result if the elevator were accelerating upwar
THE PURPOSE OF SPECIAL EDUCATION-When is special education needed? How do we know? If disability labels do not tell us what and how to teach, why are they used in special educ
Select one (1) of the following terms: liberal feminism, socialist feminism, radical feminism, patriarchy, and multicultural feminism, and define it in your words. Describe th
There has been competition between genders since they have existed. Please apply your critical thinking skills and, by providing examples, explain why this competition exists.
Episode List The Andy Griffith Show Season 1, episode 12: "Stranger in Town" Roseanne Season 1, episode 16: "Mall Story" , Season 1, episode 22: "Dear Mom and Dad" 3rd Rock
Explain the history of the event including how the situation reached a crisis point. Document as many sides of the situation as possible and include the resolution, if any w