Page 117 - Computer Genius Class 05
P. 117
Turtle name Radius
Select the turtle that is supposed to draw the circle. Enter radius in the space given.
Designing a Half Moon
To create a white half moon with black background in AI Connect, do the following coding
and click on run button:
Values
In computer programming, variables are used as empty boxes that we can name and assign
a value to use as subjects in our code. As all things are different from one another, to
store or work we use different methods. Similarly, to store different type values different
variables are used. The value that we assign to a variable can be anything from a measure
of its weight, height, length, or its number count to even its colour, a question, a response
or some other property of its nature.
Types of Values
Since anything can be a value for a variable, there are a few set types of values that help us
de ne hat they represent. The ollo ing are the types o alues that e can enter in coding.
Integers (Int)
Integers are whole numbers that can be positive, negative or 0, for example: 1, 2, 4, 0, 67,
45, -89, -132 etc.
As it can be both positive or negative, they can be used to show an increase or decrease of
a variable, for example: etc. temperature, sea level, speed limit, etc.
Angles and Value Conversion 115

