Loyola College in Maryland

CS 201 - Computer Science I
Fall 2008


Loyola College > Department of Computer Science > Dr. James Glenn > CS 201 > Homework
Homework Due Date Reading Assignment
1 9/4/2008   Write a set of instructions for making a peanut butter and jelly sandwich.
2 9/10/2008 Java 6 Illuminated: § 1.1, 1.4-1.6
Computer Science: Ch. 0
  • J6: § 1.7 (pp. 35-40): Exercises 9, 11, 12, 27
  • CS: § 0.6 (pp. 16-18): Social Issues 1, 12
  • Write pseudocode for determining if four points form a square. Assume that each point is given by its x- and y-coordinates and that the points are given in clockwise order. Your pseudocode should identify squares even if the sides are not parallel to the axes.
  • Among the several errors encountered during Lab 1, indicate one that is a compiler error, one that is a run-time error, and one that is a logic error.
3 9/17/2008 Java 6 Illuminated: Ch. 2; § 3.11, 3.13
  • J6: § 2.7 (pp. 85-92): Exercises 1, 2, 3, 7, 10, 12, 13, 16, 17, 27, 28, 33, 41, 42, 43
  • J6: § 3.19 (pp. 162-173): Exercises 18, 23, 34, 42
4 9/24/2008 Java 6 Illuminated: § 3.1-3.7
Computer Science: § 1.3 - 1.7
  • J6: § 3.19 (pp. 162-173): Exercises 1-4, 8-10, 14-16, 55, 56
  • CS: Ch. 1 (pp. 73-77): Exercises 6, 7, 15, 20, 26a-c, 27a-c
5 10/2/2008 Computer Science: § 1.6, 1.7, 2.1-2.3; App. C
  • CS: Ch. 1 (pp. 73-77): Exercises 30a-c, 31a-c, 34a-c, 35a-c, 36ab, 37ab, 40
  • CS: Ch. 2 (pp. 113-119): Exercises 2, 3, 4, 6, 8
6 10/8/2008 Computer Science: § 2.1-2.3; App. C html
Exam #1 Practice 10/8/2008 (but not to hand in) Java 6 Illuminated: Ch. 1-3
Computer Science: Ch. 0-2
html (solutions)
7 10/15/2008
10/22/2008
Java 6 Illuminated: Ch. 4
Computer Science: Ch. 10
J6: § 4.7 (pp. 200-206): 2, 5, 6, 7, 11, 12, 13, 16, 18, 20, 23, 24
CS: Ch. 10 (pp. 498-501): 6, 12, 15, 27
8 10/29/2008 Java 6 Illuminated: Ch. 5
J6: § 5.14 (pp. 266-278): 2, 7, 9, 15, 16, 17, 19, 22, 24, 27, 29, 35, 36, 39, 42, 47
9 11/5/2008 Java 6 Illuminated: Ch. 6
J6: § 6.14 (pp. 357-370): 2, 4, 5, 11, 15, 16, 17, 21, 27, 32, 34, 41, 43, 47, 52
10 11/12/2008 Java 6 Illuminated: Ch. 6
html
Exam #2 Practice 11/12/2008 (but not to hand in) Java 6 Illuminated: Ch. 4-6
Computer Science: Ch. 10
html (solutions)
11 11/24/2008 Java 6 Illuminated: § 7.1-7.11, 7.16-7.17
  • J6: § 7.18 (pp. 446-462): 1-6, 17, 18, 25, 30, 32 (do one), 33 (do one), 36, 38, 43, 56
  • (Extra Credit) Participate in this study and write down the random code you are given at the end. The study is designed to take about 10-15 minutes to complete.
Lab Exam Practice 12/4/2008 (but not to hand in) Java 6 Illuminated: Ch. 1-6
html (solutions)
12 12/10/2008 Java 6 Illuminated: Ch. 8
J6: § 8.10 (pp. 545-564): 1, 5, 7, 8, 13, 15, 18, 22, 27, 28, 41, 48
Final Exam Practice 12/10/2008 (but not to hand in) Java 6 Illuminated: Ch. 1-8
Computer Science: Ch. 0, 1, 2, 7, 10
html (solutions)