Programming and Problem Solving with Java

(やまだぃちぅ) #1
771

method parameters between, 72, 79
as operator, 448
and order of evaluation, 114–115, 120
for overriding order of evaluation in
Boolean expressions, 165
for overriding precedence rules, 141
pairing of, 166, 195–196
for statement parts within, 467
strings within, 66
parseDoublemethod, 135, 273
parseIntmethod, 230, 231
parsemethod, 140, 409
Partial (or sub) array processing, 501
Party planning/preparation case study,
30–32
Pascal, 113, 375, 480, 496
Pascal, Blaise, 2, 121, 496
Pascal, Etienne, 121
Pascalene, 2
Pascal’s box, 121
Pascal’s law, 121
Pascal’s theorem, 121
Pascal’s triangle, 121
passCount, 542
Passwords, 75
Payroll application, 138, 139, 154, 177
Payrollclass, 138, 139
Payroll program, possible data entry frame
for, 395
PC-DOS, 522
PDA.SeePersonal digital assistant
PDP-1, 269
Pentium chip, introduction of, 635
Period (.), 141, 273
Peripheral devices, 21
Personal computers, history behind, 478,
522
Personal digital assistant, 635
PET personal computer, 478
Philips, 580
Phone book, binary search of, 552, 553
Phoneclass, 290, 293, 314, 352
CRC card for, 289 , 291
extension of by BusinessPhoneclass, 349,
350
test plan for, 297
phoneOutfile, 298


Physical order, 221
Piracy, software, 301–302
Pixels, 378
Plagiarism, 302
PL/1, 113
PlusDriverclass, 363–364
CRC card for, 361
Plus operator (+), with concatenation, 61
Plus sign, and concatenation of strings, 88
Pointing devices, 21
Polymorphism, 337, 561
Polynomial expressions, 455
Polynomial time, 455
Polynomial-time algorithms, 455
Pong video game, 430
Portable (or machine-independent) code,
12
Position, array components accessed by,
485, 513
Positive exponents
coding using, 593
coding using negative exponents and,
594
Postfix operators, 112
Post-incrementation, 450, 451
Power function definition, 636–637
Power function implementation, 637–638
powermethod, 637, 638
Precedence of operators, 165–166
Precedence rules, 114–115, 119, 140, 141
Precision, 593, 596, 600
of floating-point types, 596
practical implications with limitations
of, 603
Predefined exceptions, 436
Prefix operators, 112
Pre-incrementation, 450, 451
Priming read, 226, 234, 239, 248, 256
and sentinel-controlled loops, 254
and while solution, 444
Primitive types, 100, 101 , 479, 480 , 488
assignment of versusobjects, 63
and Comparable interface, 571
components as, 501
passing as argument to parameter, 243
passing of, 243
Printers, 65
Free download pdf