Web Design and Programming II
search |
 
Overview
Syllabus
Schedule
Projects
Homework
Site Map
Resources
Q & A
Discussion
Notices

HOMEWORK ASSIGNMENTS for VCD Students

This is where VCD students check for new homework assignments. When you are done, send your CS homework by email to the CS instructor and TA Saleh Alshomrani (salshomr@cs.kent.edu). Send your VCD homework assignment to the VCD instructor not the TA. Please use a subject line such as "WDP-2: VCD HW1 for vcd" or "WDP-2: CS HW1 for vcd" It is important to have the correct email subject line..

If your homework involves html coding, please note that you need to get around the PHP enabled Web server by replacing the first line of your XHTML file with

<? print('<?xml version="1.0" encoding="UTF-8"?>'); ?>

CS HW1, due 1/31

  1. Part one: Visit the PHP part in the course site resources page. Go to the PHP manual and the PHP function documentation. Find out how the PHP date function works. Explain in your own words how to find any information about PHP from this information source. Write a page mydates.php and display date in at least four different forms. Place mydates.php under your public_html, test it and send the URL and the file source to the TA by email.

  2. Part two: Write a php function

    function gen_table($data)
    

    code for generating a table in XHTML. The data is an array whose first entry is an array of table headers:

    ("Name", "Email", "Phone")
    
    and the remaining entries are arrays each looking like

    ("Paul S. Wang", "pwang@cs.kent.edu", "330-672-9051")
    

    In the generated table, each name is also a hyperlink for sending email to the person:

    <a href="mailto:...">name</a>
    

    Test your function with various data arrays with different number of rows and columns. When you send your homework to the grader, he will test it using his test data array.

    For those needing extra help see hints.

    For extra credits, make the function receive additional args that control the table attributes such as width, cellspacing, etc. Make sure your page is XHTML strict compliant. (See chapter 2, WDP textbook.)

When you submit your homework, send the source code for the gen_table function and a link to your working mytables.php page.

(Note: If you have trouble accessing or setting up your CS account or have access permission problems to the web page you created, please see this file for help.)

VCD HW1, Due 2/11

VCD Homework 1 is located in Sanda's notes section. Please download all three files to see how to do the homework:

  1. hw1
  2. marsSch_usgs.gif
  3. vcdhw1-structure.psd

CS HW2, Due 2/15

Take the Cray Pizza Shop hands-on example and add graphical design to it. Make it look like an online pizza shop and ingredients are also graphically displayed for choosing. The point is to have designer work with PHP pages to make them look good. The design must not preserve the original function of the Pizza Shop.

CS HW3, due 2/28

Follow the hands-on experiment ``MySQL access from PHP'' and write a PHP function displayRows($resultSet). The function is passed a result set, from a SELECT query, and returns a string representing table rows in an HTML table (the parent <table> element is not part of the string). This returned string can be empty if the result set contains nothing. Write the function so it works in general for any incoming result set. Write a testTable.php page to test your function.

Hint: See this file and see this file.

CS HW4, due 4/14

Take the Visit Detroit example (with all the images and scripts there), and improve on it. Make the panning control work with two buttons (left and right arrows). The action keeps going as long as the button is pressed and stops when it is released. Then add double-arrow buttons for faster panning. Make the Flash using Flash CS3 and ActionScript 3.0.