1. (50 points) The Top 100 US Cities are shown to the left in a form named f1 in a textarea named t1. For each of the 100 cities downloads, the following data is shown:
1. rank (from 1 → 100) followed by a ";" 2. city name followed by a ";" 3. state name followed by a ";" 4. population followed by a ";" 5. website URL followed by a ";" 6. text for website link followed by a "*" (except the last one which does NOT end with a "*") 1. Create 100 row, 5 column table that contains:
When completed, place: (1) the 100 row 5 column table; (2) the total population count; and (3) the total Texas population in the DIV block with id="p1out". When the user clicks the "Execute p1" button, the javascript function named "p1" is executed. Show NO HTML. Write only the javascript for p1. Do NOT write a table heading row. This is the DIV with id="p1out" |
| 2. (50 points) The textarea named t2 shown to the left is in a form named f2. It contains the relative frequency of the 26 letters a → z in 14 different languages. For each of the 26 letters, there are 15 data items:
the letter followed by a ";"
The languages abbreviations are stored in a 14 element array named lname. Assume this array is available in your code (DO NOT write this array).
This is the DIV block with id="p2out"
|