|
3a.1
3a.2
3a.3
3a.4
3a.5
3a.6
|
Introduction . . . . . . . . . . . . . . . . . .
The NXT Variable Block . . . . . . . . . . . . . .
Using Data Wires to transfer Data Values . . . . . . .
Binary Operations with the Math Block . . . . . . . .
String Concatenation with the Text Block . . . . . . .
The NXT Constant Block . . . . . . . . . . . . .
|
126
127
131
136
140
144
|
IIIb Java Simple Data Types |
3b.1
3b.2
3b.3
3b.4
3b.5
3b.6
3b.7
3b.8
3b.9
3b.10
3b.11
3b.12
|
Introduction . . . . . . . . . . . . . . . . . .
Storing Data Information . . . . . . . . . . . . .
Declaring Variables in Java . . . . . . . . . . . .
The int Data Type . . . . . . . . . . . . . . . .
The double Data Type . . . . . . . . . . . . . .
The String Data Type . . . . . . . . . . . . . . .
The char Data Type . . . . . . . . . . . . . . .
The boolean Data Type . . . . . . . . . . . . . .
Declaring Constants in Java. . . . . . . . . . . . .
Documenting Your Programs . . . . . . . . . . . .
Mathematical Precedence . . . . . . . . . . . . .
NXT and Java Comparison . . . . . . . . . . . .
|
150
151
152
155
159
161
163
164
165
166
170
173
|
|
4a.1
4a.2
4a.3
4a.4
4a.5
4a.6
|
Introduction . . . . . . . . . . . . . . . . . .
Using Math Block Functions . . . . . . . . . . . .
The Random Block . . . . . . . . . . . . . . .
Graphics and Coordinate Geometry . . . . . . . . .
The Display Block Revisited . . . . . . . . . . . .
The Sound Block . . . . . . . . . . . . . . . .
|
184
186
191
196
197
201
|
IVb Java Program Organization |
4b.1
4b.2
4b.3
4b.4
4b.5
4b.6
4b.7
4b.8
4b.9
4b.10
4b.11
|
Introduction . . . . . . . . . . . . . . . . . .
Java Program Components . . . . . . . . . . . .
Using the Math Class . . . . . . . . . . . . . .
Introduction to the Expo Class . . . . . . . . . . .
Graphics and Coordinate Geometry . . . . . . . . .
Drawing Methods . . . . . . . . . . . . . . . .
Fill Methods and Graphics Colors . . . . . . . . . .
The random Method . . . . . . . . . . . . . . .
Drawing Polygons . . . . . . . . . . . . . . . .
Expo Class Reference Information . . . . . . . . . .
NXT and Java Comparison . . . . . . . . . . . .
|
204
205
208
216
217
223
230
234
237
242
244
|
|
5a.1
5a.2
5a.3
5a.4
5a.5
5a.6
5a.7
5a.8
5a.9
|
Introduction . . . . . . . . . . . . . . . . . .
Fixed Repetition with the Loop Block . . . . . . . . .
Using the Loop Control Variable . . . . . . . . . . .
Using the Loop Block with Wait . . . . . . . . . . .
Nested Looping . . . . . . . . . . . . . . . . .
Nested Loops and Data Wires . . . . . . . . . . .
Using Sound in a Loop Block . . . . . . . . . . . .
Conditional Looping . . . . . . . . . . . . . . .
Using the Loop Block with Graphics . . . . . . . . .
|
252
253
256
258
259
262
264
266
269
|
Vb Java Repetition |
5b.1
5b.2
5b.3
5b.4
5b.5
5b.6
5b.7
5b.8
5b.9
5b.10
5b.11
5b.12
|
Introduction . . . . . . . . . . . . . . . . . .
Fixed Repetition with for. . . . . . . . . . . . . .
Using the Loop Control Variable . . . . . . . . . . .
Nested Loops . . . . . . . . . . . . . . . . .
Keyboard Input with Expo.enterInt . . . . . . . . . .
Conditional Repetition with do…while . . . . . . . . .
Repetition and Graphics. . . . . . . . . . . . . .
Displaying Graphics Characters . . . . . . . . . . .
Drawing Regular Polygons . . . . . . . . . . . . .
Creating New Colors . . . . . . . . . . . . . . .
Using Random Numbers with graphics in a Loop . . . . . NXT and Java Comparison . . . . . . . . . . . .
|
272
274
278
281
286
287
291
297
301
305
308
315
|
|
6a.1
6a.2
6a.3
6a.4
6a.5
6a.6
6a.7
6a.8
6a.9
|
Introduction . . . . . . . . . . . . . . . . . .
Creating Simple Program Blocks . . . . . . . . . .
Program Blocks with Input Information . . . . . . . .
Program Blocks with Multiple Input Information . . . . .
Program Blocks with Output Information . . . . . . . .
Program Blocks with Input & Output Information . . . . .
Using My Blocks to Create a My Block . . . . . . . .
User Input with the EnterIntNXT My Block . . . . . . .
Creating a Practical Program with Just a Few My Blocks . .
|
326
328
339
344
351
355
359
372
376
|