1. (30 points) Show the HTML (one table -- NO frames) to produce:
Traditional Fuji Rambo Granny Smith Winesap |
Root Stock One Year Old Two years Old |
|
|
||
Use "VR" as the name of the radio buttons in the "Variety" column. Use "AG" as the name of the radio buttons in the "Tree Age" column.
2. (30 points) Using the HTML page above, write the VBScript which will produce the price quote when the "Price Quote" button is pressed. (i.e., the user selects Variety, Tree Age, then enters Quantity and Zip Code, then presses the "Price Quote" button and the calculated Price appears in the text box to the right of the button). The price is calculated by:
where Unit Price is chosen from the table below:
Traditional | $3.00 | $4.00 | $5.00 |
Premium | $4.00 | $4.50 | $6.00 |
and, the ShippingCost per unit is $0.45 if the Zip Code begins with the digit 0,1,2,3, or 4 or $0.65 if the Zip Code begins with the digit 5,6,7,8 or 9.
3. (40 points) Write the HTML and VBScript for the following three frames:
The HTML should create in the middle frame a text window with 3 rows of 40 characters each. When the user enters their quotation in the window and presses the "GO" button, the code should check the data that was entered. If the string contains the word "APPLE" or "DAY or "DOCTOR" or "AWAY", then recreate the bottom frame with the words "YOU WIN" otherwise recreate the bottom frame with the words "YOU LOSE". Hint: Use the ucase(string) function before examining the string.