|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
v |
A
variable can be thought of as a “named container”
|
|
|
|
Variables
name computer memory locations, so the value of a
|
|
variable
is the quantity stored in its memory
|
|
|
v |
Variables
can take on different types of values
|
|
|
|
o |
Whole
numbers or integers: 2, -9, 1048576
|
|
|
o |
Character
sequences or strings: “2”, “&^%$#@”, “ ”
|
|
|
|
o |
Floating
point numbers or doubles: 2.0, 3.14159, -999.99
|
|
|
(numbers that can have some digits after the
|
|
|
decimal point)
|
|
|
v |
A
variable’s values have a specific type
|
|
|
v |
Variables
are declared and their type is specified
|
|
|
|
o |
Dim averageOverClass As Double
|
|