Homework 2
Due: Monday, June
Add the following to your hw1
project. It should be linked from your first assignment.
Create a page (named hw2.htm)
that has a form that allows someone to join your organization.
The form should have information
like name, address, and so on. The form should also have a text field where
someone can enter the number of years they wish to join for. Assume the rate is
$25 for one year, $40 for two years, $55 for three
years. If the number of years is at least 4, they owe $15 per year.
There should also be other
types of form elements on this page (radio buttons, checkboxes, and selects
must be there). These form elements are for added features to the membership;
and add a certain amount to the cost of the membership.
There should be a text field
on the form that displays what kind of a membership the person has (make up the
categories). Initially, the membership type is Basic. But, as the user makes
changes in the membership (see the previous paragraph), the membership type
will change.
Finally, there should be a
button on the form. When the user clicks the button, the program should check
to see if the number of years field and the other
informational fields are empty. If any are empty, an alert should be
printed. Otherwise, a new window opens.
All information that had been entered in the form is displayed, including the
total cost of membership.
New stuff:
#1) Add an external stylesheet for your main page. You must set a property not
discussed in class.
#2) Add
another form element to the page that modifies the style property of some
object on the page.
#3) Make
a new page, hw2a.htm, where you have a game. Add a moving graphic which when
clicked on gets you points. Have the movement be something other than what I
did in class.
When you are finished, send
me an email.