Problem Set 4
Fall 2008
Due: Beginning of class, Monday, 29 September.
Reference: Slides on Javascript
Create an html page that meets the following criteria:
- The page must have a header and footer that are included with SSI. You must
include the date that the page was last modified using SSI.
- Put the assignment number at the top of the page together with the course
name and your name.
- Next create a form with the following elements:
- There must be a text box for the user's name.
- There must be a text box for the number of hours worked.
- Next, put a text box for the possible wage rate.
- Finally, put a button that, when clicked, calls a javascript function
that calculates the users wages based on the number of hours in the text box
and the wage rate clicked in the radio button. Then subtract 10% tax from
the resulting wage. The java script function
must put up and alert box that says something like "Name you earned $X this
week by working $Y hours at a rate of $Z/hour and paying $A of tax" where
Name, A, X, Y, and Z are the actual values.
- Now create a second form with the following elements:
- There must be a text box for the temperature in Fahrenheit.
- There must also be a button that, when clicked, calls a javascript function.
This function must put up a prompt box that asks for the user's name. It
will then convert the temerature in the form text box to Celsius and display
an alert box that says "Name, X degrees Fahrenheit is Y degrees Celsius" where
Name, X, and Y are the appropriate values. To convert Fahrenheit to Celsius
subtract 32 from the Fahrenheit temperature and then multiply the remainder by .55
Revision History
| Date |
Revision |
| 16 September |
Posted Project |
|
|
|
 |