COS 126 Errata, Spring 2006

Intro to Programming, p. 19
Printed: 1234 + 99 = 1243
Fixed: 1234 + 99 = 1333
Reported by Kevin Kung, 06-Feb-06.

Intro to Programming, p. 27
Printed: Program 2.2.3
Fixed: Program 1.2.3
Reported by Kevin Kung, 07-Feb-06.

Intro to Programming, p. 21, Program 1.2.2
Printed: 1234 * 99 = 1221661
Fixed: 1234 * 99 = 122166
Reported by Kevin Kung, 06-Feb-06.

Intro to Programming, p. 38, Exercise 1.2.19
Printed: y = ln (1 + sin φ) (1 - sin φ)
Fixed: y = 1/2 ln ((1 + sin φ) / (1 - sin φ))
Reported by Kevin Wayne, 02-Feb-06.

Intro to Programming, p. 41
Printed: Program 1.1.4
Fixed: Program 1.2.4
Reported by Jae-Young Lee, 14-Feb-06.

Intro to Programming, p. 44
Printed: Program 2.3.2
Fixed: Program 1.3.2
Reported by Karen Winterhof, 13-Feb-06.

Intro to Programming, p. 47, table
Printed: 31 0 false
Fixed: 31 -2147483648 false
Reported by Kevin Kung, 13-Feb-06.

Intro to Programming, p. 53, Program 1.3.5
Printed: about ln(N) + 0.57721 for large
Fixed: about ln(N) + 0.57721 for large N.
Reported by Kevin Kung, 13-Feb-06.

Intro to Programming, p. 56, Program 1.3.7
Printed: 11001010
Fixed: 1101010
Reported by Jae-Young Lee, 14-Feb-06.

Intro to Programming, p. 83, Exercise 1.3.21
Printed: N(N-1)/2
Fixed: lg N + lg (N-1) + ... + lg 1
Reported by Oliver Yang, 25-Feb-06.

Intro to Programming, p. 86
Printed: deck[4] and deck[1]
Fixed: deck[1] and deck[4]
Reported by Kevin Kung, 14-Feb-06.

Intro to Programming, p. 91, table
Printed: 2 0 4 0 1 2 5 3 1 3
Fixed: 2 0 4 0 1 2 5 0 1 3
Reported by Kevin Kung, 16-Feb-06.

Intro to Programming, p. 97, figure
Printed: column 3 and c[1][3]
Fixed: column 2 and c[1][2]
Reported by Kevin Wayne, 16-Feb-06.

Intro to Programming, p. 100, 102
Printed: p[0][0] = .92, and p[0][1] = .02
Fixed: p[0][0] = .02, and p[0][1] = .92
Reported by Kevin Kung, 14-Feb-06.

Intro to Programming, p. 103
Printed: Program 1.4.5
Fixed: Program 1.4.3
Reported by Oliver Yang, 23-Feb-06.

Intro to Programming, p. 105
Printed: The latter is how arrays are declared in C. The former
Fixed: The former is how arrays are declared in C. The latter
Reported by Oliver Yang, 20-Feb-06.

Intro to Programming, p. 108, Exercise 1.4.19
Printed: between 0 and i
Fixed: between i and N-1
Reported by Kevin Wayne, 02-Feb-06.

Intro to Programming, p. 160
Printed: .48381 and .4956100999
Fixed: 0.48381 and 0.4956100999
Reported by Kevin Wayne, 05-Feb-06.