E-Matchmaker is an HTML document containing a registration form. The form contains two tables. In the first table the user inputs specific information about himself/herself. In the second table the user inputs general information about his/her ideal mate. Here's the top half of the web page:
Here's the bottom half of the web page:
When the user clicks the submit button, a JavaScript function in the web page validates the form. For example, the birth date should make sense. Birthdays like February 29, 1961 should cause an alert to appear, although February 29, 1960 is okay.
Another JavaScript function computes a general description of the user from the specific information. For example, age and astrological sign might be computed from birth date. Income level: poor, average, affluent can be computed from incomes. Physical characteristics such as fat, normal, or thin can be computed from height and width. You may make up your own ranges for these categories.
Finally, the general characteristics of the user are compared with the general characteristics of the ideal mate described by the user. A simple algorithm determines if the user is realistic or unrealistic in his/her request. A new window pops up summarizing this analysis:
You may decide what information the user must input, as long as it includes birth date, and a mixture of all of the form components. You may also invent the algorithm that decides if the user is being realistic or not.
You will be graded on the richness of your form and your JavaScript.