Chris Pollett > Old Classses >
CS174

( Print View )

Student Corner:
  [Grades Sec1]
  [Submit Sec1]
  [Class Sign Up Sec1]
  [
Lecture Notes]
  [Discussion Board]

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

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

Practice Exams:
  [Midterm]  [Final]

                           












HW2 Solutions Page

For this homework, I had the grader recommend some of the better assignments and I chose from them one to use as the homework solution. I received two assignments to pick from. One didn't have comment blocks on every function, and when I tested it, generated a lot of PHP notices, so I didn't pick it. The other one did have better documentation, but still had some issues, the easiest of which I tried to address before posting the solution below. Namely, the format of if blocks and space was not exactly the way I like, there were lines of 80 characters, tabs appeared in some of the documents, there was trailing white space on some lines, a couple of the views did not W3C validate, short close tags were not use on br and input tags, and one file had commented out code that had not been removed. I tried to address these issues and then I replaced the students names with SJSU students. 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.

[Hw2 Project-ZIP]

Return to homework page.