ROBOMIND
Chapter 1-Computational Thinking
IN BOOK:
I. Fill in the blanks:
1. Computational Thinking
2. IPO
3. Patterns
4. Decomposition
5. RoboMind
6. Model
7. Algorithms
8. Dryrun
9. Computational thinking and decomposition
III. Name the following flowchart symbols:
1. Decision
2. Start / Stop
3. Input / Output
4. Process
5. Connector
IN CW:
IV. Answer the following:
1. What is computational thinking?
Learning new ways of thinking and solving a problem is computational
thinking.
2. What does ‘Re-using code’ mean?
i. Re-using code is a benefit of decomposition.
ii. It allows programmers to easily copy and reuse repetitive necessary
blocks of codes for the other programs.
3. What is Abstraction?
Abstraction “displays” only the relevant attributes of objects and “hides”
the unnecessary details.
4. What is decomposition? Give one example.
The process of breaking down a problem into smaller manageable part is
known as decomposition.
Ex: Decomposition of a number747 = 700+40+7
5. Define an algorithm. Mention its uses.
i. An algorithm is a set of step-by-step instructions to solve a problem.
ii. Algorithms are used for calculations, data processing and automation.
Activities:
1. Decompose the following:
i. 682 = 600 + 80 + 2
ii. 537 = 500 + 30 + 7
2. Draw a flowchart for adding two numbers:
Start
Input number1,
number2
Sum= number1 + number2
Print sum
Stop
3. Write an algorithm and draw a flowchart for the following.
If a = 10 and b = 20, Find the sum of a and b and store in Sum.
Algorithm:
Step 1: Start
Step 2: Read 10, 20
Step 3: Sum = 10 + 20
Step 4: Print Sum
Step 5: Stop
Flowchart:
Start
Sum=0
Enter 10,20
Sum=10+20
Print Sum
Stop
4. Draw a flowchart to find the greatest of two numbers.
Start
Input a,b
Yes
No
Is
a>b?
Print “ B is greater” Print “A is greater”
Stop
Chapter 2–The Robo World
IN BOOK:
I. Label the panel in the following figure. Also name the entire environment.
World Panel
Script Panel
Run Panel
Message Panel
RoboMind Screen
III. State True or False.
1. False
2. True
3. True
4. False
IV. Fill in the blanks.
1. World
2. Insert
3. Script
4. Execute button.
5. program.
1
IN CW:
V. Answer the following:
1. What is a program?
A program is a set of instructions given to a computer to perform a specific task or
tasks is called as a program.
2. Write about features of Robomind.
Robomind is an essential programming language.
It forms a vast majority of Computer science.
The language consists of number of basic instructions.
3. Mention the tabs available in Robomind.
Edit Tab
View Tab
Run Tab
Help Tab
4. Name the commands to control a robot.
Move
Paint
Grab
See
5. Write the steps to launch a Robomind.
Click on the start button
Click on the all programs option
Click on the folder Robo
Click on the Robomind
6. Differentiate between World panel and message panel.
World Panel Message Panel
The current state of the robot is Compile errors will be received
in itsenvironment. here.
It is the entire environment in It is also the place where the
which the robot lives robot may notify certain events
2
VI. CODING:
1. Write a robomind program to draw alphabet A.
PROGRAM
paintWhite()
north(4)
east(2)
south(4)
stopPainting()
north(2)
paintWhite()
west(2)
stopPainting()
OUTPUT
2. Write a robomind program to draw a square.
Program Output
paintWhite()
forward(2)
right()
forward(2)
right()
forward(2)
right()
forward(2)
right()
stopPainting()
end
3
Chapter – 3 Think And Command
IN BOOK:
I. Choose the correct answer.
1. Map
2. stopPainting()
3. Black,White
4. Openarea
5. forward(3)
II. Match the following.
1. Robo Movement - world panel
2. Painting Command - paintBlack()
3. Direction Command - West(n)
4. Ash square box - Wall
5. Halt the execution - End Command
III. Explain the following terms.
1. south() - turns and moves the robo towards south
2. paintWhite() - starts painting with white color
3. forward() - move the robo forward
4. right() - Turns the robo to the right()
5. backward() - Robo moves 3 steps backward
IN CW:
IV. Answer the following:
1. Write the actions that the robo perform while using Grab command.
pickUp() - robo pick one beacon.
putDown() -robodrops thebeacon.
eatUp() - robo destroys the beacon.
2. Name the painting commands and explain
it.
paintWhite() - robo paints in white colour.
paintBlack() - robo paints in black colour.
stopPainting() - robo stops painting.
3. Write the direction commands of Robo.
east (number of steps)
west (number of steps)
north (number of steps)
south (number of steps)
V. Program
4
1. Write a Robomind program to draw a Black Square using Direction commands.
Coding: Output:
paintBlack()
north(4)
east(4)
south(4)
west(4)
stopPainting()
end
2.Write a Robomind script to pick and eat the beacons for the following map.
PROGRAM
east(3)
eatup()
east(1)
eatup()
east(1)
eatup()
east(1)
eatup()
east(1)
eatup()
east(1)
eatup()
east(1)
eatup()
east(3)
OUTPUT:
5
Chapter 4–Decisions & Loops
IN BOOK:
I. Fill in the blanks:
1. Insert
2. frontIsClear
3. 3 forms
4. Disco tiles
5. Looping statement
IN CW:
II. Answer the following.
1. Name the Monitor skins.
There are 3 monitor skins:
Desert skin
Grass skin
LEGO skin.
2. Write the general syntax of if…statement with example.
Syntax:
if(condition)
{
set of statements
}
Example:
if(frontIsBeacon)
{
pickUp()
end
}
3. Write the general syntax of if...elseif statement with example.
Syntax:
if (condition)
{
set of statements
}
elseif(condition)
{
set of statements
}
Example:
6
if(frontIsBeacon)
{
pickuUp()
}
elseif(frontIsClear)
{
forward(1)
}
4. Write any one syntax of repeat with example.
Syntax:
repeat (number of times)
{
statements to be repeated
}
Example:
repeat(4)
{
forward(4)
right()
}
III. Programs.
1. Write a Robomind program a white square using “repeat”.
Coding: Output:
paintWhite()
repeat(4)
{
forward(4)
right()
}
stopPainting()
end
2. Write a Robomind script to pick and eat the beacons for the following map.
Coding:
7
right()
repeatWhile(frontIsClear)
{
forward(1)
}
if(frontIsBeacon)
{
pickUp()
end
}
Output:
Chapter 5 – Your Maps
IN BOOK:
8
I. Answer in one word.
1. Show Grid
2. Show Radar
3. Robo
4. Map Editor Button
5. .map
6. Robo
7. x
II. Fill in the blanks:
1. left
2. beacon
3. comments
4. *
5. alphabets and characters.
Chapter 6 – Advanced Maps and LEGO
III. Fill in the blanks.
1. Concatenate function
2. Column
3. dots
4. LEGO robot version 2
5. export
IN CW:
IV.Answer the following.
1. What is radar?
Radar shows the miniature version of the map and is displayed at the left
corner of each map.
2. Write down two different ways to create map?
1. By clicking on Map Editor Button from the edit menu
2. Creating a map file with simple alphabets and characters typed in notepad
and saved as map file.
3. What is Paint command? Write its syntax.
The paint command can paint dots, horizontal and vertical single lines.
9
Syntax:
paint:
{(color, type, x position, y position)}
Example
paint:
{(w,.,16,4)}
It represents white color,dot,16,4 positions
4. Mention the sensor based Actions.
front-Is-Obstacle
front-Is-Clear
left-Is-Obstacle
left-Is-Clear
right-Is-Obstacle
right-Is-Clear
5. Write actions performed by the robot?
forward
backward
turn left
turn right
V. Programs
1. Create a map with only wall and a Robo.
Algorithm:
Step 1: Open Notepad.
Step 2: Type the coding.
Step 3: Save the file with the extension “.map”.
Step 4: Open Robomind software ->File ->Open map->select the file name -> Open
Step 5: Output will be displayed.
NOTEPAD CODING:
10
OUTPUT:
2. Create a map with beacons and a white dot.
Algorithm:
Step 1: Open Notepad.
Step 2: Type the coding.
Step 3: Save the file with the extension “.map”.
Step 4: Open Robomind software ->File ->Open map->select the file name -> Open
Step 5: Output will be displayed.
NOTEPAD CODING:
11
OUTPUT:
12