+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
Discuss the role that sexual shame plays in people's sexual behavior. Choose a sexual issue such as sexual compulsion to sexual addiction, homosexual behavior, adultery, a p
Locate an article from a peer-reviewed journal describing a study based on survey research. Identify the title and authors of the article. In your own words, describe the cons
Imagine that you are an administrator in a health services organization, and the CEO of your organization asks you to assess and report on developments that are likely to af
Choose three motivation theories discussed in the book. Compare and contrast the theories. Of the three, which do you believe is more accurate, and why? Are there certain circ
Essay you are required to answer all five (5) of the questions. Although there is no set word limit for these essay questions, you will be graded on your knowledge of the ma
Define and give two or three examples of observational learning in everyday life. What form of observational learning is demonstrated in your example? What are several factors
As health care leaders, it is important to understand that health care is quite a dynamic field. Its constant changes are a result of continuing trends in regulation, policy
List and describe 2 different strategies each employed by both predator and prey species, using specific examples, and explain how each strategy benefits the species in questi