INDEX 243
BMI(BodyMassIndex), 120
Boolean
algebra(logic), 134
expression,106, 131
operator, 132
values, 106
breakstatement, 136
implementingpost-testloop, 136
styleconsiderations, 137
Brooks,Fred, 208
bug, 13
butterflyeffect, 11
Button
classdefinition, 175
description, 173
methods, 174
button.py, 175
bytecode, 8
Caesarcipher, 61
calculator
problemdescription, 194
program, 197
cannonball
algorithm, 162
graphicaldisplay, 180
problemdescription, 162
program,164,169, 172
Projectileclass, 169
card,playing, 181
cball1.py, 164
cball3.py, 169
cball4.py, 172
Celsius, 13
changecounter
program,27, 54
change.py, 27
change2.py, 54
chaos
discussion,10–11
program, 7
chaos.py, 7
chr, 46
Christmas, 85
cipher, 50
ciphertext, 50
Circle
constructor, 82
methods, 82
circle
areaformula, 38
intersectionwithline, 85
class,66, 161
classstanding, 120
classstatement, 167
classes
Button, 175
Calculator, 197
Dice, 217
DieView, 176, 193
GraphicsInterface, 225
MSDie, 166
Player, 213
PokerApp, 219
Projectile, 169
Projectileasmodulefile, 171
RBallGame, 211
SimStats, 210
TextInterface, 221
client, 207
clone,70, 82
close
GraphWin, 81
cmp, 203
codeduplication
infuturevaluegraph, 91
maintenanceissues, 88
reducingwithfunctions, 88
coffee, 39
Collatzsequence, 140
color
changinggraphicsobject, 75
changingGraphWin, 75
fill, 75
outline, 75
specifying, 84
colorrgb, 84
comments, 9
compareItems, 203
compiler, 4
diagram, 5
vs.interpreter, 5
compoundcondition, 115
computer
definitionof, 1
functionalview, 3
program, 1
computerscience
definitionof, 2
methodsofinvestigation, 2
concatenation
list, 185
string, 43
condition, 105
compound, 115
designissues, 115
fortermination, 134
syntax, 105