/** * @subject Homework Assignment #1 * @source http://iat.ubalt.edu/courses/cosc416.101_fa09/assignments/COSC_416_Assignment_01.txt * @date 2009-09-23 */ ASSIGNMENT - Due Monday Sep 28, 2009 1. Download the Zip archive from the following Url http://iat.ubalt.edu/courses/cosc416.101_fa09/exercises/COSC-416-ClassWork-2009-09-21.zip and expand its contents to your drive. 2. Make sure the path to the uncompressed folder mathes the pattern "YOUR_PORTABLE_DRIVE:\xampp\htdocs\exercises\20090921" 3. Open and read the comments in the four new files. 4. Expand the content of the web page by adding two paragraph elements and one image element. HINT: This step requires you to (a) define three new variables, one for each new element; (b) assign appropriate string data to the new variables; (c) add to the HTML template corresponding tags for each new element; (d) embed within each tag the corresponding variable name. 5. Test your expanded page to insure it loads and renders correctly. The URL to your page should be http://localhost/exercises/20090921/ NOTE: You do not need to explicitly declare "index.php" in the URL since the filaname "index.php" is defined as a default document within your http server configuration. 6. Make three copies of your updated file "data.model". Name the copies "a.content", "b.content", and "c.content" respectively. 7. Let "a.content" retain the original data inherited from "data.model". In "b.content" and "c.content", change the data values so a, b, and c are clearly distinct from each other. NOTE: Do not change the variable names. Only alter the contents of the data assigned to each variable. 8. Think about what operations might be required in "event.controller" and "data.model" to satisfy the following two use cases: Use Case #1 User requests Url http://localhost/exercises/20090921/ Server returns web page with default content. Use Case #2 User requests Url http://localhost/exercises/20090921/?page=b Server returns web page with content stored in text data file "b.content". 9. Represent your solution by applying comments, using simple declarative statements, to "event.controller" and "data.model" indicating the required operations and suggested order. EXTRA CREDIT 10. Write the code to produce a working model.