Homework Assignment 0

Deadline: 17/1 (before class)

1. Send me an email.

For this "exercise" you have to send an email to the instructor containing the following information:

  1. Your name
  2. The name of the person you will collaborate with for the course homeworks (if any)
Note that I expect to receive such an email message from BOTH members of each team.
Value: 1 point.

2. A basic HTML page.

Design a simple HTML page with the following elements.

Try to validate your page here.

Value: 2 points.

3. Fibonacci.

Write a javascript program that calculates the n-th Fibonacci number. Remember that the sequence of Fibonacci numbers is 1,1,2,3,5,8,13,21,... In general, each number is the sum of the two previous numbers in the sequence.

The program should ask the user (with a prompt) to supply the index n of the number to be calculated. Give two versions of your solution, one which works with a loop and one which works recursively. Which is better?

Value: 2 points.