Assignment #2 - Java Applet
COMP 2513 Introduction
to E-Commerce Technology
This assignment is to be done and submitted individually. It is based upon what you have learned in class and from Chapter 3 of Developing E-Commerce Sites by Sharma and Sharma.
There are two parts to this assignment, Part A is programming,
the purpose of which is to create a simple Java Applet using the skills you
have learned. Part B is theory and focuses
on knowledge of terms you have gained in this chapter.
Part A: (50%)
In class and during the Java IDE tutorial (see the course calendar) you learned to make a simple "Hello World" applet. This Part will use that existing applet and build upon it.
Beginning from one of the demo applets shown on the slides or in Sharma:
#1) Create an applet that displays two messages passed from the HTML, message A and B, each of which is 30 characters or less. Message B should fall under message A.
#2a) Draw a rectangle behind the output messages.
b) Set
the color of the rectangle to orange.
#3a) Draw a border around the rectangle.
b) Set the
color of the border to be green.
#4) Change the color of the first message, A, to blue and the color of message B to red.
#5) Ensure that the HTML page includes the heading and the title "Assignment #2".
#6) Add this applet as a link from your webpage you created in Assignment
#1.
Part B: (50%)
#1) Define the following terms and submit them as part of the submission email to your TA and myself. DO NOT COPY THESE DEFINITIONS! Use a reference but write them in your own words. Explain each, using complete sentences. For example, this would not be awarded full points: FTP = File Transfer Protocol, *we want to know what this actually means!*
DNS
HTTPS
JDBC
DBMS
DB2
Java Class
Javascript
Threads
JDK
Apache
Jar files
Cookies
#2) What are the major differences between Java Applets and Java Application programs? Explain.
#3) What would happen if you added the following lines to the Hello World program?
/* THIS PROGRAM CANNOT BE EXECUTED
WITHOUT PRIVILEGES */
Please Note:
---You may use Netscape
Composer/FrontPage or any other editor to do this assignment. (Remember you only
really need a simple text editor.)
--- If you feel you want to expand
on this assignment feel free, but ensure that the Core Requirements
Remain, as that is the basis of the marking scheme.
Submitting your Assignment:
#1 Place both your .class and .html file on your axe account and create a
link off of assignment#1, for running your applet.
#2 E-mail your TA a
working link to your .html file.
#3 E-mail your TA your .java file
(source code).
Marking Scheme
Part B - #1. 1 point for each definition (0.5 if only the full name and not a
description of the term is given)
#2. 1 point
#3. 1 point
For a maximum of 14 pts.
Up to 2 discretionary points may be deducted for poor spelling and grammar.