Assignment 2 for ECMM6010 Fall 2006 due Thursday September 29 by 6pm

Write, test, and debug (if necessary) XHTML files that include JavaScript scripts for the following problems.

1. Output: A table of numbers from 5 to 15 and their squares and cubes, using alert.

2. Output: The first 20 Fibonacci numbers, which are defined as in the following sequence

1,2,3,4,...

where each number in the sequence after the second is the sum of the two previous numbers. You must use document.write to produce the output.

3. Input: Three numbers, using prompt to get each. Output: The largest of the three input numbers.

Submit your assignment by sending an email with the link to your pages to tt@cs.dal.ca with the subject line `ECMM601006A2'.