Draw the path of the robot superimposed on the dartboard

Assignment Help Science
Reference no: EM131434528

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.

Reference no: EM131434528

Questions Cloud

Potentially adversely affect the project lifecycle : Project managers operate any variety of different environments. Many different variables can exist that can cause potential conflict with legal compliance and accepted ethical conduct. From your readings, Please provide an example of a variable, such..
Particular basket of stocks and options : Your paper should discuss which specific investments you intend to purchase and why you chose this particular basket of stocks and/or options.
What are values of slack and surplus for each constraint : Solve the problem. Show work. What is the optimal “A” and “B” values? What is the optimal objective function value? What are the values of slack and surplus for each constraint? Suppose the coefficient of “A” changes from 2 to 3 and the coefficient o..
Why do you think the author uses this term-persons of color : The textbook uses the term "persons of color." What is your reaction to this? Why do you think the author uses this term? Support your answer with at least one scholarly reference.
Draw the path of the robot superimposed on the dartboard : ESC 152 Mini Project: Robotic Random Walk Simulation. Display the coordinates of the robot's path in the command window. Draw the path of the robot superimposed on the dartboard
Calculating expected return for a portfolio is valuable : Calculating expected return for a portfolio is valuable, because it can be used to forecast the future value of the portfolio and it provides a bench mark for comparisons to the actual return? True or False?
Identify techniques for maintaining participant interest : BUS 680- Conduct research to identify techniques for maintaining participant interest in training. List a minimum of three specific techniques not found in the Blanchard and Thacker (2013) text and give a short explanation of each.
Why do people tend to deny discussing their feelings : Why do people tend to deny, rationalize, and avoid discussing their feelings and beliefs about race and ethnicity?
Market prices of the bond in denominator of formula : 1. Convexity, using the average of all three market prices of the bond in the denominator of the formula. 2. First modified duration, using average of first two market prices of the bond in the denominator of the formula. 3. Second modified duration,..

Reviews

Write a Review

Science Questions & Answers

  Does gdp measure the well-being of society? why or why not?

Does GDP measure the well-being of society? Why or why not?

  Discuss the benefits and drawbacks of television

Discuss the benefits and drawbacks of television

  One approach outlined in the journal of applied research in

quality of life is the general well-being of individuals and societies. qol has a wide range of contexts including the

  Discuss about the health care fear and violence

People without health insurance will often wait to go to the doctor's office or don't go at all. Their problems go untreated and undiagnosed which then it becomes more acute and ironically more expensive. People put their children first, providi..

  Explain why transport rates typically vary by the weight

explain why transport rates typically vary by1 the weight of the shipment2 the distance a shipment is transported

  The eccentricity of earths orbit is currently 00169nbsp if

1 the eccentricity of earths orbit is currently 0.0169.nbsp if the semi-major axis of the orbit is a 149598261 km

  Using, finkelstein methodology

A local pharmacy store in Wollongong wants to develop an online system to track their product inventory as well as prescription records of their products for regulatory requirements. As part of systems development, a data model is required to dete..

  The medial forebrain bundle bypasses the cerebral cortex

There are pharmacological drugs that can help reduce drug cravings during withdrawal from certain substances. Name one and what it is used for.

  Semiconductors revolutionized computing

What are 2 essential differences between human brains and the central processing unit of a computer?

  Problems related to biogeochemical cycle.

Describe the steps in the carbon cycle as an example of one biogeochemical cycle.

  Comparing and contrasting seattle and los angeles

Write a 750-word essay comparing and contrasting Seattle and Los Angeles. Your conclusion must show your readers that something significant is learned by comparing and contrasting the two cities.

  Developing environmental friendly products

What is sustainability? Describe how LCA (Life Cycle Assessment) helps in developing environmental friendly products?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd