subject

The Beaverhotel has 5 floors with 8 rooms each.

The robot that cleans them follows the instructions below:

Letter C: look for any uncleaned room on your floor and clean it,

Letter U: go up one floor,

Letter D: go down one floor,

A number n followed by round brackets () means you should repeat everything between the brackets n times.

For example, if you want the robot to clean two uncleaned rooms on the same floor, then type 2(C).

If you want the robot to go down one floor afterwards, type 2(C) D.

In order to clean all the rooms, the robot starts on the ground floor and after it is finished it must return to the ground floor.

Which of the following instructions is the correct one to clean all the rooms and during the work never leave the five mentioned floors?

ansver
Answers: 2

Other questions on the subject: Social Studies

image
Social Studies, 21.06.2019 15:40, cicip7209
What does serving the court mean in civics
Answers: 3
image
Social Studies, 22.06.2019 03:00, jor66
How is government in the united states like that of ancient athens?
Answers: 2
image
Social Studies, 22.06.2019 22:00, Hiadamcom
Which us president proposed a decimal based measurement system for the us
Answers: 1
image
Social Studies, 23.06.2019 09:00, EMQPWE
Quantitive data can be measured quantitatively
Answers: 1
You know the right answer?
The Beaverhotel has 5 floors with 8 rooms each.

The robot that cleans them follows the in...

Questions in other subjects:

Konu
Mathematics, 20.07.2019 01:30