CSE31MS Assignment 1999
Due Date: 31 May 1999, at 9am
Assignment Policies and Plagiarism
Please see the Departmental handbook for full details on the
procedures related to the administration and return of assignments.
Plagiarism is the process of claiming that work done
by others has been done by you.
Please note that the Department has a policy on plagiarism in
assignments and you should consult the relevant Departmental handout
for full details.
Objectives
- Practice writing html files.
- Understand how to write simple CGI scripts using Perl.
- Practice writing a simple Java applet.
Problem Overview
You are required to develop a simple web page for a small business
that is going to sell products over the internet.
The homepage displays the company logo and snail mail and physical
shop address information. The homepage should also allow the user to
send mail to the company e-mail address. For the purposes of this
assignment the company e-mail address will be
company@pears.cs.latrobe.edu.au
The company Shop Location and Postal Address are;
Hunky-Dory Sports
55 Jessica St
Mont Albert
Victoria.
Hunky-Dory Sports
G.P.O. Box 3345
Melbourne 3001
The web home page should have links to other pages
which provide product information, pictures, and online
order forms. Online orders are processed by a cgi script
which formats the fields, and mails the form content to
the company e-mail address when they are submitted.
Specific Tasks
- Design a company logo using a graphics package or
paint program you have access to on your home computer
or on the department's NT server.
- Implement the the company home page in html.
In addition to the logo, address and email link,
provide a numbered list of links to the following services.
- Electronic Ordering
- Product Database Search
- Product Pictures
- Write a java applet which displays the company logo, and
plays a sound clip that you have found on the web.
- Write an html form that collects the following information
and uses your ordering Perl CGI script to store the contents of the form
to the company database, in a file "Orders.dat".
- Customer Name
- Up to five (5) Product Codes
- The customer e-mail address
- credit card number and expiry date.
- Write a second Perl CGI script that allows the user to enter
a key word, and which displays all the entries in a product database
which have that key word in their product description.
Assume that the product data fields are tab separated
and that each product record is stored on a single line of a text file.
A sample database file can be downloaded here .
- Write an html page to display three (3) thumbnail product images
that expand to a full size image when they are clicked on.
Each image should have an associated caption that gives
the product code, description and price.
You will find the full resolution and thumbnails
of the product pictures in here .
- Write a short report of not more than 3 typed pages which
discusses any difficulties you encountered during the project.
You should also discuss any security and design issues that
you think are particularly important in the context of electronic
commerce and the design of Web services of this type.
Submission
Submission will be electronically managed via the commands
submit and verify.
To submit your assignment create a directory called "ms".
Copy into the "ms" directory all your html files and
any images, sound files and all the files necessary for your Perl
CGI scripts.
Execute the command "submit MS ms" to send the
contents of the directory to the submission site.
You can check that the submission has been successful
by issuing a "verify" command.
If you make an incorrect submission resubmit using the
"submit" command again. This will overwrite your previous
submission.
If you have any difficulties with the operation of the " submit
" command you should use "man submit" to check that
you understand how to use the submit command.
Marking Scheme Outline
| Homepage and Links | [15 marks] |
| Java Applet | [15 marks] |
| Order form and Perl Script | [25 marks] |
| Product Enquiry Page and Perl Script | [30 marks] |
| Report | [15 marks] |