CSC 390 - Special Topics: Web Programming

Dr. R. M. Siegfried

Assignment #5 - p. 192/Exercises 4.1, 4.3, 4.6

Due Friday, February 27, 2015

Write, test and debug (if necessary) XHTML files and Java Scripts scripts for the following problems. When required to write functions, you must include a script to test the function with at least two different data sets:

4.1

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

4.3

Input:Three numbers, using prompt to get each.

Output:The largest of the three input numbers.

Hint:use the predefine function Math.max()

4.6

Input:A line of text, using prompt.

Output:The words of the input text, in alphabetical order.

For each exercise, also submit the input and output.

Submit your assignment by e-mail (to siegfrie@adelphi.edu).

[Back to the Assignments List]