(syllabus | grading)

Assignment 4:

Purpose To practice modularizing code through use of classes and functions

The assignment: You are to rewrite your assignment from last week into a modularized page based on the example of chapter 6 from our book. Modify the page.inc Page Class of listing 6.1 (pages 175-178) to create a generic template for a site. Your page class should have a display function; functions to display banner, navigation, and content, and to check for the current page and modify page navigation for the current page only (eliminate the current page from the navigation or give it a visually distinct look and non-responsive CSS hover state. In all other regards, the page should look and function indistinguishably from the previous assignment.

Grading: This assignment is worth 5 points. Each of the following are required; each is worth 1 point. One point will be deducted if the assignment is not done by the due date.