SWE 432 Assignment 6
Fall 2009
JavaScript: Due October 15


The purpose of this assignment is to make you familiar with Cascading Style Sheets and JavaScript. The background for this assignment is Sebesta Chapters 3 and 4. The sample programs in Sebesta (see Blackboard for access to the source) should make this assignment very easy. Another good source of information is W3 Schools.

For this week, use JavaScript to read a string (with prompt), split the string into words (based on spaces as separators), reverse the order of the words in the string, and print the words back out, one per line.

You should add a style sheet to format your page in some way. You can format some text describing what the JavaScript does. Or, you can format the output of the JavaScript. Either approach is fine.

Your program should use an external style sheet and an external javascript. Link these explicitly on your website so that the GTA can easily see them.

Grading: Nonworking implementations will not receive any credit. Getting the Javascript functionality is worth 5 points. Getting the CCS functionality is worth 2 points. Making everything easily accessible to the GTA is worth 2 points. Turning in a paper copy (unless you are absent from class) is worth 1 point.