Assignments

Please write the pseudocode for creating a calculator given the following common interface. Groups of two. Time 30 minutes!


After 30 minutes I will hear the groups, and then we will code it together.

Please write some JavaScript code that prints the following texts at the very bottom of the page:

The background-color of this document is xxx
and the color is yyy.

The actual colors must come from reading the DOM. Make some tests showing that the printed colors change if you change them in the stylesheet. Make a simple page to test on, or use one of the pages from the first half of the course.

Please write the pseudocode for validating an email address, given that you are not allowed to use regular expressions. You must use the common format nn@mm.ll as the pattern for a valid address.

We shall dive into validation of input data next week, so we shall use the pseudo code then.