2nd edition corrections

advertisement
CORRECTIONS TO
A WEB-BASED INTRODUCTION TO PROGRAMMING
2nd EDITION
LAST UPDATED: December 27, 2011
NOTE: The most recent reprint of the 2nd Edition has incorporated these
corrections.
Page 96: The third and fourth statements in the wage1.php algorithm near the top of
the page should be changed from:
hourlyWage = hourlyWage * hoursWorked
Display hourlyWage, hourlyWage, hourlyWage
to:
weeklyWage = hourlyWage * hoursWorked
Display hourlyWage, hoursWorked, weeklyWage
Page 180: 2nd and 3rd sentences in the paragraph: "open", "read", "close" and extract
should "opens", "reads", "closes"
Page 237: Last bullet at the bottom of page: "chained together another" should be
"chained together another".
Page 258: In wage8.php algorithm, the third ELSEIF statement: "hourlyWorked"
should be "hoursWorked".
Page 280: First paragraph, first sentence. "initial vale" should be "initial value"
Page 304: 3rd line at top of page: "test" should be "tested"
Page 314: Review Question 16, last line in code sample. "close ($someFile);" should be
"fclose ($someFile);"
Page 357: Question 12. Choice (a) and choice (b) are both missing "s" at end of
"statement", should be "statements"
Page 358: Question 13. Choice (a) and choice (b) are both missing "s" at end of
"statement", should be "statements"
Page 362: Exercise 3, first paragraph, second sentence. Double period at end of
sentence should be a single period.
Page 366: Second paragraph, second sentence. "to" is missing between "used" and
"store"
Page 373: First paragraph. third sentence. Missing "to" between "easy" and "find".
Page 405: Question 8. In choices (b), (c) and (e), "$sales[i]" should be "$sales[$i]" (so
three corrections)
Page 405: Question 10. "What, is " should be "What is "
Page 409: Exercise 1, third sentence. ‘weeklyReport1.html’ should be
‘weeklyReport.html’.
Page 417: Second paragraph, fourth sentence. Missing "to" between "want" and
"round"
Page 438: Third paragraph, second sentence. The closing parenthesis ")" at the end of
the sentence should be removed.
Page 442: "The Importance of OOP" section, first paragraph, third sentence. Missing
"to" between "application" and "operate".
Page 445: Second paragraph, fifth sentence. Missing "m" at end of "from" between
"hidden" and "direct".
Page 453: Exercise 5. "Chapter12" should be formatted as bold.
Page 452: Exercise 3, second paragraph. The period between "5" and "$trip" should be a
colon.
Page 488: Under the "Problems Using Your Web Server: section, second sentence.
"coding when" should be "coding problems when"
Page 513: Third paragraph. "total sales for ALL FIVE students" should be "total scores
for ALL FIVE students".
Download