Provide a brief definition of the following terms (in the interface
programming context):
Self-documenting
Global variable
Local variable
Scope
Syntax error
Runtime error
If you use a source (book or web site), cite your source. (The sites
http://whatis.techtarget.com/ and http://www.webopedia.com/ are decent
sources for technical definitions.)
Design a page like that shown in the screen captures
Use the drop-down select's on-select to change the image element's src so the picture changes
when the user chooses a new sweater type.
Have a Add to Cart button that determines the quantity and type of sweater.
From the type of sweater
determine the price (Prices: Crew $29.50; V-Neck $59.00; Cardigan $69.00; Zip-Front $39.50).
If the Tall checkbox is checked then add $5:00 to the price.
Add the item to the cart -- displaying the quatity, type and price.
Add any new amount (quantity * price) to an ongoing Total displayed at the bottom. (It's easier if the total cell has a 0
in the beginning rather than the cell being empty. Remember you may need to use parseFloat().)
Have a clear button that empties the cart cell and puts a 0 into the total cell.
Due: Sept. 29
Monday:
Subway_test.zip (old test -- not due just an opportunity to practice)
1. Entity Numbers Make a page like that shown above that allows the user to enter two numbers.
Make a loop that starts at the first number and ends at the second number. For each "iteration" (time
in the loop) it should put on the page the counting number followed by a period
and a space as well as another copy of the number which should be preceded by
an ampersand and a pound (number) sign and followed by a semicolon (this should
be interpreted by HTML as a symbol) and a break tag.
Make a page like that shown above. When the user changes the setting in the
drop-down select, the image should change accordingly. When the button is pressed
use a for-loop to write the sentence "All work and no play makes Jack a dull boy. "
a number of times (say 20). If the user clicks the button a second time. It should
add the new text to what is already there.