subject
Engineering, 09.11.2019 06:31 jaedabugg

Acertain robot can perform only 4 types of movement. it can move either up or down or left or right. these movements are represented 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".

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Fluids at rest possess no flow energy. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 18:20
Agas mixture consists of 8 kmol of h2 and 2 kmol of n2. determine the mass of each gas and the apparent gas constant of the mixture.
Answers: 3
question
Engineering, 04.07.2019 19:10
What is a monomer? how do they form a ploymer from the view point of chemical bonding?
Answers: 1
question
Engineering, 04.07.2019 19:10
What is the major difference between thermoplastics and thermosetting plastics from the polymerization structure point of view?
Answers: 2
You know the right answer?
Acertain robot can perform only 4 types of movement. it can move either up or down or left or right....
Questions
question
History, 05.07.2021 05:20
question
Mathematics, 05.07.2021 05:20
question
History, 05.07.2021 05:20
question
Mathematics, 05.07.2021 05:30
question
Physics, 05.07.2021 05:30
question
Arts, 05.07.2021 05:30
question
Mathematics, 05.07.2021 05:30
question
History, 05.07.2021 05:30
Questions on the website: 13722363