Chris Pollett > Old Classes > CS267
( Print View )

Student Corner:
  [Grades Sec2]

  [Submit Sec2]

  [Class Sign Up Sec2]

  [
Lecture Notes]
  [Discussion Board]

Course Info:
  [Texts & Links]
  [Topics/Outcomes]
  [Outcomes Matrix]
  [Grading]
  [HW/Quiz Info]
  [Exam Info]
  [Regrades]
  [Honesty]
  [Additional Policies]
  [Announcements]

HW Assignments:
  [Hw1]  [Hw2]  [Hw3]
  [Hw4]  [Quizzes]

Practice Exams:
  [Mid 1]  [Mid 2]  [Final]

                           












HW2 Solutions Page

The in class graded problems for this homework were Exercise 2.8 and Exercise 3.1.

For the coding part, I used the same document test file as in Hw1. The queries I tested with were:

parent site cosine
site parent SquareTrade cosine
* site parent boolean
+ * site parent SquareTrade boolean
+ * site parent - SquareTrade boolean

I picked one of the better students' homeworks to be used as the homework solution. Each student that had their homework chosen will receive 1 bonus point after curving for having their homework selected. If you were chosen and would rather your homework not be used as the solution let me know and I will choose someone else homework and they will receive the bonus point instead. The only changes I made to the code were (1) modify the output from the code to conform more closely to the spec, (2) switch tab characters to 3 spaces, (3) change student names to SJSU Students.

[Coding Part Solution-ZIP]

Return to homework page.