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

  Ethical dilemma in healthcare issues

To what extent do they meet this obligation? How might their obligation to others conflict with their obligation to themselves?

  Explain jane loevinger''s stages of ego development

Explain Jane Loevinger's stages of ego development in 250 to 300 words.

  Describe how our solar system would be different

If our Sun and solar system had formed at the same time as the very first stars in the universe, describe how our solar system would be different than the one we have today and the impact this would have had on the formation of life

  Three models of public participation in decision making

Compare and contrast command and control against incentive-based regulatory philosophy. How would the corporate ethics of a company that would be better regulated under a command and control differ from those of a company that would be more effect..

  A local health policy issue

Discuss the implications of the selected issue on the community as a whole.Who all are affected by the policy?

  Briefly discuss three properties of water

In 100-150 words, Water is essential to life. Briefly discuss three properties of water then explain what is meant by the structure of water accounting for each of its properties.

  Identify or cite specific health information sources

Identify or cite 3 specific health information sources. Evaluate the validity of each source. Provide a 2-4 sentence rationale for appropriateness of each source. Summarize each reference separately and aggregate your database on one electronic Wor..

  Perceptions of deviance, crime, victims, and justice

Perceptions of Deviance, Crime, Victims, and Justice

  Write a research report based on a hypothetical research

write a research report based on a hypothetical research study. conducting research and writing a report is common

  What significant changes are there between icd-9 and icd-10

What are the primary components of globalization that affect how the practice of medicine takes place in the U.S.?

  Make a logical model of the system giving a high-level

create a logical model of the system providing a high-level logical data flow diagram of the proposed system. i have

  Reading or story telling activities

How can children's social, language, and cognitive developments be promoted through reading or story telling activities?

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