+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
How might the presence of intergalactic dust as an agent for reddening and dimming the light from ever more distant galaxies affect the determination of galactic distances ass
What unique opportunities are created for the industry that you are addressing by the natural drivers that you have identified? Identify one specific business in the industr
The city of Madison regularly checks the water quality at swimming beaches located on area lakes.  The concentration of fecal coliforms, in number of colony forming units
Analyze the factors (both genetic and environmental) contributing to the development of a specific mental disorder (of your choice) and discuss steps that could be taken to re
The focus will be on more recent and more specifically American history. The readings explore how competition has affected technological innovation as we consider the first
what personally would you do to ease climate change? I do think that working together with other governments is a start but some ploicies have to come into play! would someo
What is the difference between philosophy and science? In answering this question, be sure to include the difference between Epistemology and Methodology; and the  various err
Instructional Objectives for this activity: Describe aggression and antisocial behavior Differentiate among various causes of aggression - Identify specific antisocial behavio