CSC 272
Homework 6
Assigned Apr 6, due Apr 18

This assignment is about Web programming. In principle, it could be done in any language, as long as it runs on a server where you have scripting privileges. However, I'd particularly like you to get used to continuation-based Web programming, and the only languages I know of that support that are Racket and Ruby on Rails. You can read about continuation-based Web programming in Racket here (this documentation is also in DrRacket's Help Desk under "Continue"), and about Ruby on Rails here.

  1. Write a Web page that displays as either "Good morning!", "Good afternoon!", or "Good evening!" depending on what time of day it is.

    Here's my answer in PHP

  2. Write a Web page that asks the user for his/her name and age (using an HTML form), then when the user clicks "Submit", displays another Web page that uses both of those pieces of information, e.g. to say whether the user is old enough to drink.

    Here's my answer in PHP

  3. Write a Web-based survey satisfying Dr. Krishnamurthi's web-programming assignment.

    Here's my answer in PHP

You are encouraged to do this in teams of two, both students working together on all parts of the assignment; if you do this, turn in one homework with both names on it. I would prefer that you switch partners from one homework to the next, so you get more experience working with different people and so that I have an easier time computing a grade :-)


Last modified: Mon Apr 19 15:18:58 EDT 2010
Stephen Bloch / sbloch@adelphi.edu