Assignment 3

Due Mon., October 11, 2010

Summary

In this assignment, you will write JavaScript code to generate a list of numbers and process them. As a result, you will modify the HTML document that is associated with the JavaScript in order to display some results. This will look very much like the JavaScript examples you have seen in class already.

What To Do

When you are done, it should generate a page that looks like this.

HINT: To test if a number is odd or even, use the modulo operator '%' with 2 and test if the result is 1 or 0. For example, if the number you want to test is in the variable num, then the expression num%2 will be 1 if the number is odd and 0 if the number is even.