1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
snow_tiger [21]
4 years ago
8

A certain robot can perform only 4 types of movement. It can move either up or down or left or right. These movements are repres

ented by ’U’, ’D’, ’L’, ’R’. Assume all these movements to be of unit distance. Write a function named theRoundTrip that takes all the movements the robot made in a day as input and output True of bool type if the robot returned to its starting position after its journey. Otherwise, return False. If the input is bad print the message "bad input".
Engineering
1 answer:
Olegator [25]4 years ago
8 0

Answer:

def theRoundTrip(movement):

   x=0

   y=0

   for i in movement:

       if i not in ["U","L","D","R"]:

           print("bad input")

           return

       if i=="U":

           y+=1

       if i=="L":

           x-=1

       if i=="D":

           y-=1

       if i=="R":

           x+=1

   return x==0 and y==0

You might be interested in
Tech A says that some battery corrosion cannot be seen beneath the insulation of the cables. Tech B says
barxatty [35]

Answer: the answer is c

Explanation:

4 0
3 years ago
An example of the split-off point in oil, gasoline, and kerosene production is that point where crude oil is
eimsori [14]

i believe the correct answer is c but i’m sorry if i’m not correct

8 0
4 years ago
Why is the drawdown cone for a well completed in a low permeability aquifer narrower and deeper than a drawdown cone for a well
densk [106]

Answer:

c) It takes a greater hydraulic head to drive the groundwater laterally to the well casing in the lower permeability aquifer

Explanation:

The groundwater are contains under the rock and in the open spaces within the rocks and the unconsolidated sediments. Aquifer refers to the underground layers of the permeable sand or rocks that transmits the groundwater below water table which provides a sufficient supply of water to the well. Groundwater is present everywhere where there is porosity in the rocks and it depends on the permeability of the rocks to allow them flow.

A drawdown cone is completed in the lower permeable aquifer deeper and narrower than the high permeable aquifer as it takes more amount hydraulic head or energy to drive groundwater to the well casing which is in the lower permeable aquifer.

5 0
3 years ago
What are the ropes of secretaries and treasures in a meeting​
Nastasia [14]

Answer:

To prepare and issue notices and agendas of all meetings in consultation with the chairman, and to ensure that any background papers are available well before the meeting. To attend and take the minutes of every committee meeting. To circulate minutes to all committee members, and to conduct the correspondence

Explanation:

I think you want to say roles.

4 0
3 years ago
Define Engineering Economy and explain the foundation of Engineering Economy in terms of seven basic principles.
matrenka [14]

Answer:

Check Explanation.

Explanation:

ENGINEERING ECONOMY:

In a simple way, Engineering Economy simply refers to the study of Economics which is related to engineers that is the study of Economic decisions by people in the engineering field. The study of Engineering Economy is very important because Engineering is a major manufacturing part in every country's economy.

With the study of Economics by Engineering that is Engineering Economy, engineers can make rational decisions after seeing alternatives.

The foundation of Engineering Economy in terms of seven basic principles:

(A). Creation of Alternatives: there will always be a problem and every problem had one or more solutions. When a problem has been seen as a problem alternative solutions come in.

(B). Differences in the Alternatives : this part is when engineers makes the best decision(choice) among alternates.

(C). Your viewpoint should be consistent: consistency is power. In order to make decisions in Engineering works or projects, viewpoint should be consistent.

(D). Develop Common Performance Measures: in order to make sure that the project is perfected there should be common performance measures.

(E). Considering Relevant Criteria: relevant Criteria will be met before the best choice is decided

(F). Risk making: Engineering projects should not be put under risk and thus is why this principle is very important.

(G). Decision retargeting: go back to the alternatives and recheck your choices.

6 0
4 years ago
Other questions:
  • Go online and search for information about companies that have been harmed or bankrupted by a disaster. Choose one such company
    11·1 answer
  • What is Absorption in your own words
    12·1 answer
  • Using three arrays: a one-dimensional array to store the students’ names, a (parallel) two-dimensional array to store the test s
    14·1 answer
  • When the rope is at an angle of α = 30°, the 1-kg sphere A has a speed v0 = 0.6 m/s. The coefficient of restitution between A an
    8·1 answer
  • To select the center of a line what option must be selected? A. Ortho B. Dynamic input C. Object snap
    7·1 answer
  • A piece of corroded steel plate was found in a submerged ocean vessel. It was estimated that the original area of the plate was
    14·1 answer
  • An assembly line has 3 fail safe sensors and one emergency shutdown switch.The line should keep moving unless any of the followi
    10·1 answer
  • F a black car and a white car are left in the Sun, the black car will tend to be hotter. This is because the black car's surface
    11·2 answers
  • Cho P1= XdaN, P2=3.X daN, P= 2.X (daN). a=1m, b=2m,MCN hình tròn d= (100+X)mm1/ Tính nội lực tại các mặt cắt cách ngàm 0,5m; 1m;
    15·1 answer
  • 8. Block A shown in the figure below weighs 2000 N. The chord attached to A passes over a
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!