HW5 - CS2a/Sum09

Due: Thursday 6/11/2009

  1. Create a new template hw5template.servlet which defines a template that you will use for this homework. The template should have links in a menubar to the following files:
    hw5.servlet   this is simply an introduction page which explains what the homework is about
    hw5a.servlet
    
  2. hw5.servlet should contain a form that lets the user pick a semester from fall04 to spr08 and to pick a major. It will then send the info to hw5a.servlet.
  3. hw5a.servlet will generate a nicely formated list of the courses for that year and that major. The course data is stored in a set of lists named fall04, spr05, fall05, spr06, .... spr08. These lists have the following form (as shown by the first few lines defining the fall07 list:
    ; this contains list of all classes from fall07 with all registrar fields,
    ; in the following order:
    ; semester registarID department coursenumber section title maximumsize size waitlist signaturerequired? instructor
    
    (define classes '(
    ("fall04" "3061" "AAAS" "   5A" "sec. 1" "Introduction to African and Afro-American Studies" "999" "16" "0" "" "Bryant,Joan")
    ("fall04" "3063" "AAAS" "  70A" "sec. 1" "Introduction to Afro-American History" "999" "10" "0" "" "Bryant,Joan")
    ("fall04" "5139" "AAAS" " 115A" "sec. 1" "Introduction to African History" "999" "8" "0" "" "Sundiata,Ibrahim")
    ....
    ("spr08" "1742"  "YDSH"  "  20B" "sec. 1"  "Continuing Yiddish"  "18"  "6"  "0"  ""  "Kellman,Ellen"  )
    ("spr08" "3112"  "YDSH"  "  40B" "sec. 1"  "Advanced Intermediate Yiddish"  "18"  "3"  "0"  ""  "Kellman,Ellen"  )
    ))
    
    
    You are to use the "filter" and "map" procedures to generate the HTML from these lists...