Homework 2
CS520, Fall 2009

Due: Wednesday, October 14

Please upload your files to CSNS. The files should include all the source code, documentation (if any), and an HTML file hw2.html, which contains a link to your application on the CS3 server. Note that file uploading will be disabled automatically after 11:59PM of the due date, so please turn in your work on time.


[Readings]

[Quiz Creator]

For this assignment, you are going to implement a web application that creates online quizzes. An online quiz consists of a number of multiple-choice questions.

1. (15pt) When the application is requested without any parameter, it displays the list of existing quizzes, and a link to create a new quiz. For example:

Quizzes

Create A New Quiz

If there's no quiz yet, the application should display "No quiz has been created yet." instead of just showing an empty list/page.

2. (20pt) Clicking on a quiz should display the content of the quiz. For example:
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:

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:

10 mph
15 mph
20 mph
25 mph

3. The process of creating a quiz consists of at least three pages.

(a) (20pt) The first page, after a user clicks Create A New Quiz, asks the user for the name and the description of the quiz:

Create A New Quiz - Name and Description
Name:
Description:

(b) (15pt) After the user clicks Next, the application takes the user to the page where the questions of the quiz are displayed. For example:

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:

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

  

Clicking on Finish should complete the creation of the quiz and take the user back to the quiz list page.

(c) (30pt) Clicking on Add Question should take the user to a page where a new question can be created. A question consists of a question description, and one or more choices. Note that there is no upper limit on the numberof choices a question may have.

[Deployment on CS3]

To receive any credit at all for this assignment, you must deploy your application on the CS3 server. If you are using Dynamic Web Project in Eclipse, deployment only takes two simple steps:

Note that subfolders must be preserved during file transfer.