+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
A government agency in a Northestern city wishes to evaluate the effectiveness of a recently launched program to prevent alcohol drinking among teenagers.  Before the program
The function f is one-to-one. Find its inverse and check your answer. State the domain and range of f and f -1. (If you need to enter ∞ or -∞ type INFINITY or -INFINITY.)f(x)
Calcium is one of the most important minerals in the human body, and has been shown to have an important, interactive role with one of the fat-soluble vitamins, Vitamin D
Describe the main actions that you intend to put into place to test the hypothesis that you proposed in Question 2. Describe the way in which you would evaluate the success
What is your personal definition of "health?"  Of "public health?"  How will your definitions, in your opinion, influence your expectations of those you treat, live with, work
Compare at least two of the thinkers (Descartes-Discourse on Method, Dante-Inferno, Socrates & Alcibiades, Sophocles-King Oidipous, Sartre-Nausea) on one of the following th
If the equilibrium relative price for a two-liter bottle of Coca-Cola is $1.50 today, just like it was ten years ago, can we safely say that all supply and demand conditions i
From the e-Activity, summarize at least two (2) arguments presented for and against granting Sandusky's motion for a new criminal trial. Identify the most likely factors that