Concepts in Computing
CS4 - Winter 2007
Instructor: Fabio Pellacini

HW 3, due Monday, Jan 29

Instructions

The first part of this homework involves writing HTML. Follow the same instructions as in HW 2 -- write HTML by hand, make it easy to read, print it from the text editor, timestamp it, and upload it to your private folder.

The second part of this homework is a set of written questions. You are not required to write your answers in HTML. However, you should still upload them to your private directory and provide a printout. Upload your file in a format we can read -- plain text, HTML, PDF, Word, or RTF. No timestamp is required.

Problems

  1. Written Problems [30 points]
    1. Give two examples of real-world conditionals and two examples of real-world loops, beyond those discussed in class or in the book, and not from the world of cooking.
    2. Using the notation introduced in class, write a program that computes the product of all numbers between 1 and target skipping the ones that are multiples of 3 and 5.
  2. HTML Problem [70 points]

    In this part you have the choice of either (a) creating a webpage for a fictional organization of your on creation or (b) create your very own webpage (you should not have one already, obviously). Here's an example order form for a pizza restaurant:

    screenshot

    Some specific requirements are given below, but part of the point of this assignment is to give you some freedom to be creative. Have fun with it! The look and feel are up to you. As long as you meet the requirements, the content is up to you. Remember forms are also useful for volunteer sign-up, web-based email, getting driving directions, etc. The form must be something you create. You are not limited to only the required features, and may earn extra credit by doing an outstanding page (you must meet the requirements to be eligible).

    Requirements:

    1. Use a table (or tables) to specify the layout.
    2. Use an embedded stylesheet to specify the physical appearance, including at least a font and color specification.
    3. Have at least one form whose submit action is either echoed using by the echo page, or invokes another webservice (like the google query shown in class). Also give enough textual instructions for the reader of your page to understand what to input.