A22.0004 Computers in Principle and Practice

New York University: Spring 1998


This assignment is for the WINDOWS section only!


Assignment 6

Due: The week of April 27th

This assignment is to add a new page to your site which will include some JAVASCRIPT.


First, here are our two examples. You can both run the example, and see the code.

A. Repeat a Text Phrase typed in a prompt: RUN IT -- SEE THE CODE

B. Multiply two numbers typed in a prompt: RUN IT -- SEE THE CODE


Your extra credit assignment is very simple: Add a link to your web page to a new page. On that page, have two prompts: One for the person's name, and one for the person's age.

Then, using JavaScript, print out some html which will repeat the person's name at least twice, and computes what TWICE that person's age is! For extra, extra credit, also print the year in which the person will reach twice their present age, presuming that the current year IS 1998!


Email the grader account at pnpsps4@cs.nyu.edu when you are done.