Computer Printots Chapter 3
Computer Printots Chapter 3
Computer Printots Chapter 3
Robo Programming
ANSWER KEY
Formative Assessment
5. You can paint in black and white colors using the robot. T
1
TECHNOS CHOOL Robo Programming
Summative Assessment
PaintWhite()
Forward(2)
3. Observe the sequence of pictures given below and find out the action that is carried out
by the robot. Name the command and its uses.
EatUp() Command – It banishes the beacon which was picked up and it can
never be put down again. It is like deleting the beacon and you cannot recover it
again.
2
TECHNOS CHOOL Robo Programming
Forward (2)
Repeat(4)
{
Right
Paintwhite
Forward (1)
Paintblack
Forward (1)
Paintwhite
Forward (1)
}
3
TECHNOS CHOOL Robo Programming
More Activities
StopPainting() PaintBlack()
EatUp()
Forward()
4
TECHNOS CHOOL Robo Programming
Robo Environment
1. How many white spots are there in the map shown above?
3. How many steps should the robo move to find the white spot that is at the
top right corner of the map?
11 Steps
4. What commands should be given to move the robo in front of the beacon?
Pickup() / Eatup()
5
TECHNOS CHOOL Robo Programming
This is a program to draw a black square. Observe the program and write scripts to
write the letter A and Z as shown.
Note: paintWhite() is the command to make the Robo paint in While color and
stopPainting() is the command to make the Robo stop painting.
6
TECHNOS CHOOL Robo Programming
Pick the beacons and eat them up thereby clearing the way towards the white spot.
❖ Open passbeacons.map
❖ You can see from the left, a Robo, then beacons and a white spot at the right.
❖ The task is to move the Robo from the left to the white spot on the right.
Output screen:
7
TECHNOS CHOOL Robo Programming
Controller
Each button in remote controller has been assigned with a letter or a number. Take a keen
look at the World Panel and write the appropriate letter/number that will cause the action in
World Panel starting from the white area.
forward(1)
forward(1) The letter/number that will help
paintWhite in creating S in World Panel is -
forward(1) BBGB1BBB1BB1BBB34BB3B
left BB3B
forward(1)
forward(1)
forward(1)
left
forward(1)
forward(1)
left
forward(1)
forward(1)
forward(1)
right
paintBlack
forward(1)
forward(1)
right
forward(1)
forward(1)
forward(1)
right
forward(1)
40
TECHNOS CHOOL Robo Programming
Coders
Write code in Robomind for the output given below.
paintwhite
backward (1)
right
forward (1)
left
Pearl Series
forward (2) Book 4
left
forward (2)
left
forward (3)
left
forward (3)
left 41
forward (4)
left
TECHNOS CHOOL Robo Programming
Beacons
The before and after picture of passBeacons.map suggest that the robo has deleted
all the beacons using one of the grab commands. Identify the command and write
code for the robo to perform the same action.
BEFORE AFTER
Right
Forward(2)
Repeat(7)
{
Eatup
Forward(1)
}
Forward(2)
42