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

  Journal of pharmaceutical sciences

This journal is a scientific publication of Indian Pharmaceutical Association and highlights various bright points of it.

  Optical fibres

This document discuss about the main attributes and characteristics of optical fibres.

  Micro organisms

This project report reveals the fact and proves a specific objective mentioned to be studied upon.

  Describing histology of an organ

The discussion of the technique should include a literature review on the evolution of the technique.

  Interpret the sensitivity of mammography

Calculate and interpret the sensitivity of mammography. Diagnostic test with Sensitivity 50%, Specificity 50% and prevalence 50%. Crude mortality rate. Damage caused by motor vehicle accidents.

  Discuss the role that science plays in your daily life

Role that science plays in your daily life and Integrity, Intensity, Innovation, and involvement in scientific field

  Prepare a flexible budget gator divers

Prepare a Flexible Budget Gator Divers is a company that provides diving services such as underwater ship repairs to clients in the Tampa Bay area.

  Neurological disorders

Designing a neuroprosthesis for the neurological disorders

  Complexity of cell surfaces

Lipid rafts provide another example of the complexity of cell surfaces in both their structural character and biologic functionality. Please explain the nature of these structures and their functionality.

  Exploratory activity on bird beaks

Describe how natural selection and evolution are demonstrated by this activity

  Spatial and temporal variation of heat content in the upper

In this study the temporal and spatial variation of heat content in the upper 70m layer of the Arabian Sea was for a period of 1991 to 2008 have been attempted.

  Earthquake databases

Earthquake Databases

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