Special Features Math and Coding Binary Number System. . . . . . . . . .10 Algorithm for Averages . . . . . . . . .32 Slope of a Line. . . . . . . . . . . . . . . . . .51 Distance Between Sprites . . . . . . .75 Linear Equations. . . . . . . . . . . . . . 113 Regular Polygons . . . . . . . . . . . . . 138 Multiple Dice Rolls . . . . . . . . . . . . 160 Data Graphs . . . . . . . . . . . . . . . . . . 183 Relationship Between Music and Math . . . . . . . . . . . . . . . . . . 201 Animating Sprites with Math Functions . . . . . . . . . . . . 228 Tracking Cards in a Game . . . . . 257 Two-Way Tables. . . . . . . . . . . . . . . 303 Coordinates in Three Dimensions. . . . . . . . . . 332 Spherical Calculations . . . . . . . . 377 Science and Coding Earth’s Systems . . . . . . . . . . . . . . . . .15 Algorithm for Tree Age. . . . . . . . . .34 Animal Ecosystems . . . . . . . . . . . . .57 Temperature Conversion . . . . . . . .89 Elements . . . . . . . . . . . . . . . . . . . . . 116 Water Cycle. . . . . . . . . . . . . . . . . . . 132 Force and Gravity . . . . . . . . . . . . . 156 Respiration and Depth . . . . . . . . 181 Sound and Temperature . . . . . . 207 Simulating an Orbiting Satellite . . . . . . . . . . . . . . . . . . . 233 Gravity in Video Games . . . . . . . 272 Litmus Test . . . . . . . . . . . . . . . . . . . 293 Biomes . . . . . . . . . . . . . . . . . . . . . . . 337 Educating People with Diabetes. . . . . . . . . . . . . . . . . . . 373 Cooperative Coding Writing Instructions. . . . . . . . . . . . .17 Writing Algorithms . . . . . . . . . . . . .37 Writing an Interactive Tutorial . . .63 Working with Random Numbers . . . . . . . . . . . . . . . . . . . .93 Programming Nested Decisions . . . . . . . . . . . . . . . . . . 119 Programming a Simple Game . . . 141 Generating Pythagorean Triples . . . . . . . . . . . . . . . . . . . . . 167 Calculating Pressure . . . . . . . . . . 189 Recording Voices . . . . . . . . . . . . . 211 Evaluating Life Movement . . . . 245 Game Development . . . . . . . . . . 275 App Gaming. . . . . . . . . . . . . . . . . . 313 Landscape Design . . . . . . . . . . . . 343 Creating a Website. . . . . . . . . . . . 379 Coding Conundrum Numbering Systems . . . . . . . . . . . .11 Patterns . . . . . . . . . . . . . . . . . . . . . . . .29 Deconstruct Code . . . . . . . . . . . . . .59 Order of Operations . . . . . . . . . . . .77 Program Flexibility. . . . . . . . . . . . 105 Loops with Sound . . . . . . . . . . . . 131 Custom Blocks. . . . . . . . . . . . . . . . 151 Event Errors . . . . . . . . . . . . . . . . . . 186 Audio Error . . . . . . . . . . . . . . . . . . . 204 Animated Costumes . . . . . . . . . . 220 Sound Timing . . . . . . . . . . . . . . . . 253 Entry Error. . . . . . . . . . . . . . . . . . . . 302 Movement and Spatial Relationship Errors. . . . . . . . . 339 Web Page Not Displaying an Image . . . . . . . . . . . . . . . . . . 359