Homework 5
CS520, Fall 2009


Due: Wednesday, November 18

Package all the source files of your project into a zip file using the zip Ant target you developed in Homework 1, and upload the zip file to CSNS. Note that file uploading will be disabled automatically after 11:59PM of the due date, so please turn in your work on time.

[Online Assignment for CSNS]

Continue to work on CSNS Online Assignment and implement the following functionality:

1. (30pt) Publish assignment and email notification.

Create a link or a button to allow an instructor to publish an online assignment immediately. An email should be sent to each student in the class to notify them that the assignment is published. The course code (e.g. CS520) and assignment name must be included in the email notification.

2. (30pt) Do assignment.

Implement the functionality that allows students to complete an online assignment. Note that students should only be able to access the assignment during the period between the publish date and the due date, and a student should be able to upload a file as the solution to a text question.

3. (40pt) Question reordering using Ajax.

On the view online assignment page, implement question reordering as shown below:

Sample Driver Written Test #1

This is a sample driver written test.

1. You may drive off of the paved roadway to pass another vehicle: [Down]

If the shoulder is wide enough to accommodate your vehicle
If the vehicle ahead of you is turning left.
Under no circumstances

2. You are approaching a railroad crossing with no warning devices and are unable to see 400 feet down the tracks in one direction. The speed limit is: [Up | Down]

10 mph
15 mph
20 mph
25 mph

3. Which of the following statements about blind spots is true? [Up]

They are eliminated if you have one outside mirror on each side of the vehicle.
Large trucks have bigger blind spots than most passenger vehicles.
Blind spots can be checked by looking in your rear view mirrors.

Specifically, when the user clicks Up, the corresponding question is moved up one position in the list, and when the user clicks Down, the question is moved down one position. This feature must be implemented using Ajax.

Extra credit of up to 15pt will be given if you implement question reordering using drag&drop instead of clicking Up/Down.

4. (+30pt) An extra credit exercise will be posted on CSNS under the assignment Homework 5.4. The questions in this exercise will be based on the midterm presentations. This assignment will be accessible from 8PM Wednesday 11/11 to midnight Friday 11/13.

[About Submission and Grading]

Before submitting your work, commit all the changes to your Subversion repository and create a tag.

If you use any libraries that are not in the original CSNS and are not included in your csns.zip, please upload the library jar files together with csns.zip when you submit your work.

To test your project, we will use the following SQL scripts in your csns.zip to create, populate, and then clear the database:

Please make sure that these scripts are up to date and can be run in their entirety without generating any errors. You can check out http://sun.calstatela.edu/~cysun/public/cs520-grading/instructions.txt for more details about the grading procedure.