MIDTERM
CS320, Fall 2004


Please upload your files using the online turnin server. The files should include all the source code, documentation, and an HTML file midterm.html which contains links to your JSP pages on the CS server. Note that file uploading will be disabled automatically after 3:10PM, and late turnin will not be accepted.


[Problem Description]

CS491B class presentations are graded according to a number of guidelines and evaluation criteria. In particular, a presentation is graded in nine different aspects, and each aspect receives a score from 1 to 5, with 5 being the highest. A presentation also receives an overall score from 1 to 10, with 10 being the highest. In this exam, you are going to help the instructor of CS491B, yours truly, implement a web application to record and analyze the grades for CS491B class presentations.

[Implementation]

Your application should consists of two JSP pages, EvalForm.jsp and Show.jsp, and one Java bean Records.java. No scripting element is allowed in the JSP pages.

EvalForm.jsp. You may use EvalForm.html as a template to create EvalForm.jsp. In particular, modify EvalForm.html such that
Show.jsp. Show.jsp shares the session scope bean Records with EvalForm.jsp, and when requested without any parameter, it displays two options:

Show Records
Show Statistics

When a user clicks on Show Records, Show.jsp displays the records currently stored in the bean, for example:

John
5
5
5
4
5
2
5
2
4
8
Joe
5
4
4
4
2
3
3
3
4
6
Jane
5
5
3
5
4
4
4
5
4
7

and when a user clicks on Show Statistics, Show.jsp displays the Max, Min, and Average scores in each category, for example:

Max
5
5
5
5
5
4
5
5
4
8
Min
5
4
3
4
2
2
3
2
4
6
Average
5
4.67
4
4.67
3.67
3
4
3.33
4
7

Records.java. The implementation of the bean is completely up to you, as long as the bean is sufficient to support the two JSP pages described above.

[Grading Criteria]